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

Openrouter does not work with Cody #6109

Open
githubdebugger opened this issue Nov 12, 2024 · 6 comments
Open

Openrouter does not work with Cody #6109

githubdebugger opened this issue Nov 12, 2024 · 6 comments
Assignees
Labels
bug Something isn't working repo/cody

Comments

@githubdebugger
Copy link

githubdebugger commented Nov 12, 2024

Version

v1.41.1731027960

Describe the bug

Openrouter does not work with Cody

Added this config in settings.json:

{
"provider": "groq", // keep groq as provider
"model": "qwen/qwen-2.5-coder-32b-instruct",
"inputTokens": 128000,
"outputTokens": 8192,
"apiKey": "<api_key>",
"apiEndpoint": "https://openrouter.ai/api/v1/chat/completions"
},

Using groq as the provider with openrouter endpoint (as groq is the provider which needs to be used for OpenAI compatible API).

And this is the response:

Request Failed: HTTP 400 Bad Request: {"error":{"message":"qwen-2.5-coder-32b-instruct is not a valid model ID","code":400}}

Seems like Cody is sending the model as qwen-2.5-coder-32b-instruct instead of qwen/qwen-2.5-coder-32b-instruct ?

Expected behavior

Seems like Cody is sending the model as qwen-2.5-coder-32b-instruct instead of qwen/qwen-2.5-coder-32b-instruct ? and the expected behaviour is to get a response from the endpoint.

Additional context

No response

@githubdebugger githubdebugger added bug Something isn't working repo/cody labels Nov 12, 2024
Copy link

linear bot commented Nov 12, 2024

@PriNova
Copy link
Collaborator

PriNova commented Nov 26, 2024

Hey @githubdebugger

Since providing own models via Ollama or third-party services is an experimental feature it might work unexpected.
This ticket is forwarded to the eng team and they will have a look at it.

Sorry for the inconvenience.

@PriNova PriNova self-assigned this Nov 26, 2024
@Kynlos Kynlos closed this as completed Jan 23, 2025
@githubdebugger
Copy link
Author

This will be available in the next Cody pre-release?

@githubdebugger
Copy link
Author

Any updates on this? Will this be available in the official?

@PriNova
Copy link
Collaborator

PriNova commented Jan 27, 2025

@githubdebugger So far I can't share an update. I am also not aware of any ETA.

Sorry

@Kynlos Kynlos reopened this Feb 1, 2025
@tech-and-ai
Copy link

Please raise the severity, this is an issue that needs attention!

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

No branches or pull requests

4 participants