-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 Bug Report: OpenRouter AI #743
Comments
Hello cvladan, Thank you for your first issue contribution 🎉 |
Because OpenRouter's stream response has some special data that is different from the standard OpenAI stream API, Easydict parses the data with an error. We are using a third-party OpenAI library to parse the data, which is a bit more strict about the data format. If you can, try using another OpenAI standard API service. |
"another OpenAI standard API service" |
Ah, you mean - you won't make it work with OpenRouter? |
Because OpenRouter's streaming response includes comment which causes OpenAI to fail to parse the data correctly, I've just fixed it and submitted a PR upstream MacPaw/OpenAI#243 . We've fixed this issue, and the next version of Easydict will support OpenRouter.
|
2.11.1 version has fixed this issue. |
Please confirm the following:
Problem description
It is not possible to set the OpenRouter AI as a custom provider, I don't know why.
Is the issue consistently reproducible?
Reproducible
Steps to Reproduce
Explained
Screenshot
I did
Runtime log(zip file)
none
Expected result
To work
Proposed solution (optional)
Fix
Device type and OS version
Apple M1 Pro
Are you willing to submit a PR to fix this issue?
The text was updated successfully, but these errors were encountered: