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

Cannot use OpenRouter's free models #245

Open
shiyi-jiaqiu opened this issue Dec 30, 2024 · 16 comments
Open

Cannot use OpenRouter's free models #245

shiyi-jiaqiu opened this issue Dec 30, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@shiyi-jiaqiu
Copy link

Which API Provider are you using?

OpenRouter

Which Model are you using?

google/gemini-2.0-flash-exp:free

What happened?

image
Display this model as invalid, please allow custom model names in the openrouter api provider

Steps to reproduce

Relevant API REQUEST output

No response

Additional context

No response

@shiyi-jiaqiu shiyi-jiaqiu added the bug Something isn't working label Dec 30, 2024
@shiyi-jiaqiu shiyi-jiaqiu changed the title 不能使用openrouter的免费模型 Cannot use OpenRouter's free models Dec 30, 2024
@samhvw8
Copy link

samhvw8 commented Dec 30, 2024

image

i don't have your error, what your roo-cline version, how to reproduce your bug ?

@shiyi-jiaqiu
Copy link
Author

v2.2.34; I found that when using cline or Roo-cline on Windows, a selection box can appear for model selection.
image
But in WSL2 (Ubuntu 22.04), both cline and Roo-cline encounter the above issues, with no selection box, only claude as an option.
image

@tonygao2k
Copy link

same issue on my side (Mac), cannot select other models but claude-3.5-sonnet when using OpenRouter.

@mrubens
Copy link
Collaborator

mrubens commented Jan 8, 2025

Hmm, it seems like it might be an issue with this API call failing. Any chance you have a firewall or something that would be blocking this?

const response = await axios.get("https://openrouter.ai/api/v1/models")

@samhvw8
Copy link

samhvw8 commented Jan 8, 2025

in some case, ipv6 setup not correctly in wsl, you can try to disable ipv6 to test it again

@tonygao2k
Copy link

Hmm, it seems like it might be an issue with this API call failing. Any chance you have a firewall or something that would be blocking this?

const response = await axios.get("https://openrouter.ai/api/v1/models")

Yes, I have VPN on my side, but i tried curl "https://openrouter.ai/api/v1/models" on terminal, it can get correct response.

@tonygao2k
Copy link

error
DEBUG info, seems network issue but why "curl 'https://openrouter.ai/api/v1/models'" can get correct response on vscode terminal.

@mrubens
Copy link
Collaborator

mrubens commented Jan 8, 2025

@tonygao2k anything interesting in the network tab of the developer tools?

@tonygao2k
Copy link

@tonygao2k anything interesting in the network tab of the developer tools?
error2

it's blank

@mrubens
Copy link
Collaborator

mrubens commented Jan 8, 2025

Which editor are you using?

@tonygao2k
Copy link

tonygao2k commented Jan 8, 2025

I am using vscode.

Version: 1.96.2 (Universal)
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Date: 2024-12-19T10:22:47.216Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin x64 24.2.0

@tonygao2k
Copy link

ddd

I have just to delete the model text field but still failed to see other models but only claude-sonnet-3.5

@samhvw8
Copy link

samhvw8 commented Jan 9, 2025

@tonygao2k can you give us screenshoot of reponse

curl -6 https://openrouter.ai/api/v1/models

curl -4 https://openrouter.ai/api/v1/models

@tonygao2k
Copy link

tonygao2k commented Jan 9, 2025

@tonygao2k can you give us screenshoot of reponse

curl -6 https://openrouter.ai/api/v1/models

curl -4 https://openrouter.ai/api/v1/models

image

curl-4.json
curl-6.json

Please find attachment, these two commands can return correct result on vscode terminal.

As i said, i am using VPN on my side otherwise "https://openrouter.ai/" is unreachable. Can you please check if Roo-Cline applied "http_proxy" correctly from environment variable or settings.json?

@tonygao2k
Copy link

tonygao2k commented Jan 9, 2025

image

@samhvw8 @mrubens , I made a workaround to solve this issue on my side, Proxy support has been added to the following HTTP request methods: refreshGlamaModels(), refreshOpenRouterModels()

@Thibault00

This comment was marked as spam.

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

No branches or pull requests

5 participants