You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Method chat/completions/chat/completions not found" error suggests the endpoint path may be duplicated in the request, which could indicate a configuration issue with how the Abacus provider URL is being constructed.
Feel free to ignore if none of these address your specific case.
EDIT: The expected structure seems to be different, as some models seems to work only a few times after some retries. I just tested GPT-5, Claude and route-llm in Plan mode.
I can confirm that GLM-4.7 worked at first try, so it should be someting regarding the structure accepted by abacus.
Parameters
Our API follows the [OpenAI Chat Completions API spec](https://platform.openai.com/docs/api-reference/chat/create), with a few limitations outlined below:
• We only support the following parameters:
model
messages
max_tokens
stream
temperature
stop
n
presence_penalty
frequency_penalty
logprobs (not supported for gpt-5)
response_format (only {"type": "json"})
GLM-4.7 responded with "Bad Request: Invalid role "tool" in messages. Must be one of user, assistant, or system.", so confirming the missing parameter.
how can I make it work with all the models of abacus ai ?
Currently the main issue that it sends this twice: Not Found: Method chat/completions/chat/completions not found.
Looks like someone messed up in the app code and wrote twice /chat/compilations in the request and that's why it fails.
how can I make it work with all the models of abacus ai ? Currently the main issue that it sends this twice: Not Found: Method chat/completions/chat/completions not found. Looks like someone messed up in the app code and wrote twice /chat/compilations in the request and that's why it fails.
Activity
github-actions commentedon Jan 4, 2026
This issue might be a duplicate of existing issues. Please check:
The "Method chat/completions/chat/completions not found" error suggests the endpoint path may be duplicated in the request, which could indicate a configuration issue with how the Abacus provider URL is being constructed.
Feel free to ignore if none of these address your specific case.
dantoac commentedon Jan 10, 2026
Seems the BaseURL for the provider is wrong. You can overload it in
.config/opencode.jsonExample:
EDIT: The expected structure seems to be different, as some models seems to work only a few times after some retries. I just tested GPT-5, Claude and route-llm in Plan mode.
I can confirm that GLM-4.7 worked at first try, so it should be someting regarding the structure accepted by abacus.
FWIW, in https://abacus.ai/app/route-llm-apis says:
dantoac commentedon Jan 10, 2026
GLM-4.7 responded with "Bad Request: Invalid role "tool" in messages. Must be one of user, assistant, or system.", so confirming the missing parameter.
meirm commentedon Jan 10, 2026
This worked for me
cat .config/opencode/opencode.json
InSelfControll commentedon Jan 13, 2026
how can I make it work with all the models of abacus ai ?
Currently the main issue that it sends this twice: Not Found: Method chat/completions/chat/completions not found.
Looks like someone messed up in the app code and wrote twice /chat/compilations in the request and that's why it fails.
dantoac commentedon Jan 15, 2026
Hi, you need to use the "baseURL": "https://routellm.abacus.ai/v1/" solution proposed above, in your ~/.config/opencode/opencode.json
rekram1-node commentedon Jan 15, 2026
Btw models.dev is the models api we source from and maintain, PRs to fix or update or add are always welcome.
rekram1-node commentedon Jan 15, 2026
Thanks for providing work around tho @dantoac ill update models.dev
rekram1-node commentedon Jan 15, 2026
you should be able to remove it from your config if you run:
opencode models --refreshAnd then rm from cfg
And then try again
Caches refresh automatically but this will force it