Skip to content

Conversation

@chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Nov 22, 2025

Q A
Bug fix? no
New feature? yes
Docs? needed, still open
Issues Fixes #114
License MIT

We need a short term solution for this issue to unblock merging #871 without destroying a couple of bridges that are currently coupled to that "de facto standard" of OpenAI-based contracts.

This also will make it more obvious that our current ModelCatalog + Model class + neglected Capabilities need some love.

Introducing

  • Explicit base models Symfony\AI\Platform\Model\CompletionsModel and Symfony\AI\Platform\Model\EmbeddingsModel
  • Moving ResultConverterInterface into new Symfony\AI\ResultConverter namespace
  • Moving ModelClientInterface into new Symfony\AI\ModelClient namespace
  • Introducing default, OpenAI-based
    • Symfony\AI\Platform\ModelClient\CompletionsModelClient
    • Symfony\AI\Platform\ModelClient\EmbeddingsModelClient
    • Symfony\AI\Platform\ResultConverter\CompletionsResultConverter
    • Symfony\AI\Platform\ResultConverter\EmbeddingsResultConverter

Leads to removal of unspecific usage of OpenAI bridge implementations and basic Model subclasses in favor of specific ones if possible.

@chr-hertel chr-hertel added Platform Issues & PRs about the AI Platform component Status: Waiting feedback labels Nov 22, 2025
@chr-hertel chr-hertel force-pushed the default-platform branch 2 times, most recently from ef1d230 to 8d30c6a Compare November 23, 2025 21:50
@chr-hertel chr-hertel added BC Break Breaking the Backwards Compatibility Promise and removed Status: Waiting feedback labels Nov 23, 2025
@chr-hertel
Copy link
Member Author

Alternative namespace structure could be

  • Symfony\AI\Platform\Completions\{Model, ModelClient, ResultConverter}
  • Symfony\AI\Platform\Embeddings\{Model, ModelClient, ResultConverter}

@chr-hertel chr-hertel force-pushed the default-platform branch 3 times, most recently from 750c161 to 6cfa831 Compare November 23, 2025 22:38
OskarStark added a commit that referenced this pull request Nov 25, 2025
This PR was merged into the main branch.

Discussion
----------

 Ease LiteLLM setup for examples

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Docs?         | no
| Issues        |
| License       | MIT

Trying to get this started as example for #938.

`@welcoMattic` does that make sense to you? was just wondering if there's a different way than another postgres container

Commits
-------

67637b9 Ease LiteLLM setup for examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC Break Breaking the Backwards Compatibility Promise Platform Issues & PRs about the AI Platform component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom URL ability or generic bridges?

2 participants