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

[SUGGESTION] Support OpenRouter Endpoints? #592

Open
ibehnam opened this issue Jun 2, 2024 · 2 comments
Open

[SUGGESTION] Support OpenRouter Endpoints? #592

ibehnam opened this issue Jun 2, 2024 · 2 comments

Comments

@ibehnam
Copy link

ibehnam commented Jun 2, 2024

I love this project! The only suggestion I have is to support adding https://openrouter.ai/api/v1/chat/completions endpoint which lets us use almost every model out there. The models are prefixed like openai/gpt-4o, anthropicai/claude-opus, etc. It would be great to have this endpoint as well as OpenAI and Ollama.

I tried to do it myself but since TypeScript is not my main language, my version of the code would not work properly when selecting a non-OpenAI model (even though I was able to make the app use openrouter.ai endpoint).

I'd appreciate it if the maintainers could add this feature to the app and increase its usability! Thanks!

@ibehnam ibehnam changed the title Support OpenRouter Endpoints? [SUGGESTION] Support OpenRouter Endpoints? Jun 2, 2024
@ghominejad
Copy link

OpenRouter already supports the OpenAI standards. you only need to set https://openrouter.ai/api/v1/chat/completions and the token.

I have tested via http://bettergpt.chat and everything was fine but when I test with recent source from Github it has a formatting text issues and even with in-completed response.

I think the newly changes might cause this issue.

By the way for OpenAI models you don't have to set "openai/" as prefix but other companies same as Anthropic it's necessary.

@jakemkc
Copy link

jakemkc commented Jul 11, 2024

I observed the same issue as ghominejad. I hope betterchatgpt can get full support to openrouter soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants