chore: revert change to skip user-agent for openrouter#169
Merged
andreynering merged 4 commits intomainfrom Mar 19, 2026
Merged
chore: revert change to skip user-agent for openrouter#169andreynering merged 4 commits intomainfrom
andreynering merged 4 commits intomainfrom
Conversation
andreynering
added a commit
that referenced
this pull request
Mar 19, 2026
The OpenAI SDK has a bug on dealing with SSE events. This was affected OpenRouter, but we made a workaround for it. See: * #166 * #169 We made a fix for the SDK, but it wasn't merged yet: * openai/openai-go#621 In the meantime, an user reported that Avian has the same issue, but it's impossible for us to workaround it. Because of this, we had to fork the SDK. We're pinning the `fantasy` branch from our fork: * https://github.com/charmbracelet/openai-go/tree/fantasy
andreynering
added a commit
that referenced
this pull request
Mar 19, 2026
The OpenAI SDK has a bug on dealing with SSE events. This was affected OpenRouter, but we made a workaround for it. See: * #166 * #169 We made a fix for the SDK, but it wasn't merged yet: * openai/openai-go#621 In the meantime, an user reported that Avian has the same issue, but it's impossible for us to workaround it. Because of this, we had to fork the SDK. We're pinning the `fantasy` branch from our fork: * https://github.com/charmbracelet/openai-go/tree/fantasy
7343902 to
877b7a0
Compare
Make it shorter (one per major provider) and favor smaller models.
877b7a0 to
a20fcb8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This depends on the following fix for the OpenAI SDK:
Keeping this PR as a draft for now.
Wait for the fix in the SDK to be merged.Ensure it's updated here.