Skip to content
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

Open
5 of 6 tasks
cvladan opened this issue Dec 5, 2024 · 5 comments
Open
5 of 6 tasks

🐞 Bug Report: OpenRouter AI #743

cvladan opened this issue Dec 5, 2024 · 5 comments
Labels
bug Something isn't working PR wanted

Comments

@cvladan
Copy link

cvladan commented Dec 5, 2024

Please confirm the following:

  • Be sure to check out FAQ
  • I have carefully read the README
  • I have searched through the issues page but couldn't find a solution.(Including issue that has been closed)
  • Easydict has been upgraded to the latest version
  • I understand and agree to the above, and understand that the project maintainer has limited energy, issues that do not follow the rules may be ignored or closed directly

Problem description

It is not possible to set the OpenRouter AI as a custom provider, I don't know why.

image image

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?

  • I'm willing to submit a PR to fix this issue
@cvladan cvladan added the bug Something isn't working label Dec 5, 2024
Copy link

github-actions bot commented Dec 5, 2024

Hello cvladan, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented Dec 8, 2024

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.

@cvladan
Copy link
Author

cvladan commented Dec 8, 2024

"another OpenAI standard API service"
... I am not aware of any

@cvladan
Copy link
Author

cvladan commented Dec 8, 2024

Ah, you mean - you won't make it work with OpenRouter?
Ok. Thanks

@tisfeng
Copy link
Owner

tisfeng commented Dec 9, 2024

It may not be that easy to fix this, so if someone can come PR I'd be happy to take it.

GitHub and Groq provide standard OpenAI APIs that work well with Easydict, and they both have free credits you can try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR wanted
Projects
None yet
Development

No branches or pull requests

2 participants