Skip to content

Conversation

@lochmueller
Copy link
Contributor

@lochmueller lochmueller commented Nov 21, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #909
License MIT

Same as https://github.com/symfony/ai/blob/main/src/platform/src/Bridge/AiMlApi/Completions/ResultConverter.php#L27 I changed the ResultConveter of OpenRouter to the openAI integration. As soon there is a generic contract/bridge #114 I think this is the best/easiest solution yet.

So the OpenRouter result get some new features and one of them is streams are working :)

@carsonbot carsonbot added Status: Needs Review Bug Something isn't working labels Nov 21, 2025
@carsonbot carsonbot changed the title feat: Allow streaming for OpenRouter based on ChatGPT ResultConverter feat: Allow streaming for OpenRouter based on ChatGPT ResultConverter Nov 21, 2025
@lochmueller lochmueller changed the title feat: Allow streaming for OpenRouter based on ChatGPT ResultConverter [Platform][OpenRouter] Allow streaming for OpenRouter based on ChatGPT ResultConverter Nov 21, 2025
@chr-hertel chr-hertel added Feature New feature and removed Bug Something isn't working labels Nov 21, 2025
@carsonbot carsonbot changed the title [Platform][OpenRouter] Allow streaming for OpenRouter based on ChatGPT ResultConverter [OpenRouter] Allow streaming for OpenRouter based on ChatGPT ResultConverter Nov 21, 2025
@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Nov 21, 2025
@carsonbot carsonbot changed the title [OpenRouter] Allow streaming for OpenRouter based on ChatGPT ResultConverter [Platform][OpenRouter] Allow streaming for OpenRouter based on ChatGPT ResultConverter Nov 21, 2025
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge it to unblock, but this kind of coupling is not going to work long time.
See #871 for example - will need some default contract handling

@chr-hertel chr-hertel force-pushed the feature/openrouter-stream branch from 839c845 to 2f65ed1 Compare November 21, 2025 23:29
@chr-hertel
Copy link
Member

Thank you @lochmueller.

@chr-hertel chr-hertel merged commit 50341fe into symfony:main Nov 21, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Platform Issues & PRs about the AI Platform component Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Platform][OpenRouter] Streaming doesn't work

3 participants