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

Cant use openrouter with chatbox firefox #795

Open
stone-w4tch3r opened this issue Oct 2, 2024 · 2 comments
Open

Cant use openrouter with chatbox firefox #795

stone-w4tch3r opened this issue Oct 2, 2024 · 2 comments

Comments

@stone-w4tch3r
Copy link

Describe the bug
问题描述
I configured openrouter + claude as Custom Model, but in chat error 405 appears each time I try to ask model. Same issue with gpt-4o model. I checked that model name is correct

To Reproduce
如何复现
Steps to reproduce the behavior:

  1. Go to extension settings
  2. Set API Mode to Custom Model
  3. Configure OpenRouter's endpoint, model and key
  4. Go to chat window
  5. Send any text
  6. Error 405 occurs

Expected behavior
期望行为
Normal response

Screenshots
截图说明
Screenshot_20241002_180809
Screenshot_20241002_180901

Please complete the following information):
请补全以下内容

  • OS: Linux, Fedora 40 KDE
  • Browser: Firefox 130.0.1 (64-bit)
  • Extension Version: 2.5.8 (Latest)

I double checked that model-key-endpoint are fine via pure python request

@josStorer
Copy link
Owner

the api url should be complete (with /chat/completions)
https://openrouter.ai/api/v1/chat/completions

@stone-w4tch3r
Copy link
Author

Oh, I see! Thanks

I checked, there was a default value with completions endpoint, but I overlooked it once pasted my url

Maybe we can add a hint here?
src/_locales/en/main.json:

{
  "Custom Model API Url": "Custom Model API Url (chat completions endpoint)",
}

I can create a PR if you find this useful

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

2 participants