Eca does not work with OpenCode via the openai-responses, nor with openai-chat
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
The payload names no source file or test. Start with the provider configuration in the report (api set to openai-responses, url https://opencode.ai/inference/) and the request path /inference/v1/responses in the OpenCode log, which show what ECA sends. Done would mean the request is accepted by OpenCode with a documented provider setup, or a clear explanation of why the model rejects this protocol.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
When using eca-emacs with OpenCode I get the error message:
Short description
[OPENAI] Unexpected response status: %s body: %s 400 {"type":"error","error":{"type":"ModelProtocolUnsupported","message":"Model does not support this protocol."}}
To reproduce
- Start eca (eca-desktop or eca-emacs) with the following configuration. The session-id is hardcoded just to see if it works
{
"providers": {
"opencode": {
"api": "openai-responses",
"url": "https://opencode.ai/inference/",
"key": "<my-token>",
"extraHeaders": {
"User-Agent": "eca-emacs/1.0",
"x-opencode-session": "e64b8abe-c1d6-4ac9-89c2-8f5ac9a3886c"
},
"models": {
"big-pickle": {}
}
}
}
}
- The model list is updated. Select a model e.g. claude-sonnet-5.5
- Type in a small prompt like "Summarize current project".
The above error appears. The session id and all the data appear correctly in the logs on OpenCode. The error message there is
{
"event": {
"id": "<id>",
"requestID": "<id>",
"workspaceID": "org_<workspace id>",
"startedAt": 1792165205881,
"finishedAt": 1792165206017,
"durationMs": 136,
"outcome": "rejected",
"category": "inference",
"protocol": "openai-responses",
"product": "standard",
"path": "/inference/v1/responses",
"method": "POST",
"stream": true,
"sessionID": "e64b8abe-c1d6-4ac9-89c2-8f5ac9a3886c",
"userAgent": "eca-emacs/1.0",
"userID": "user_<my-user-id>",
"requestedModel": "claude-sonnet-5-5",
"model": "claude-sonnet-5-5",
"provider": "opencode",
"statusCode": 400,
"errorCode": "inference_failed",
"errorMessage": "The inference request failed.",
"reasoningMode": "effort",
"reasoningEffort": "medium",
"country": "CZ",
"region": "Plzeň Region",
"city": "Pilsen",
"requestHeaders": {
"content-length": "26163",
"content-type": "application/json",
"user-agent": "eca-emacs/1.0",
"x-opencode-session": "e64b8abe-c1d6-4ac9-89c2-8f5ac9a3886c"
},
"metadata": {},
"attemptCount": 0,
"attempts": []
}
}
Expected behavior
I expect the assistant to respond with the project summary.
Doctor
ECA version: 0.165.0
Server cmd: /home/joh/.emacs.d/eca/eca server
Workspaces: /home/joh/Devel/Lights/lumio
Default model: opencode/big-pickle (API key (oc_**********XtS))
Logged providers: None
Relevant env vars:
XDG_ACTIVATION_TOKEN=kwi*****-79
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
Additional notes
- Maybe this is related to #649.
- I tried also to use openai-chat. The setup above was the only one that let me discover the available models.
- Lingua principale
- Clojure
- Stelle
- 1k
- Fork
- 82
- Merge medio
- 3g 39m
- PR unite (30g)
- 15
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di editor-code-assistant/eca
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
editor-code-assistant/eca#655 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
editor-code-assistant/eca#648 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
editor-code-assistant/eca#644 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Add the ability to see what changed in the system promptForse già presa @zikajk l’ha presa 8 giorni fa. Apertaenhancement
editor-code-assistant/eca#642 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
editor-code-assistant/eca#629 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di editor-code-assistant/eca
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
IOP MCP
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
calcit-lang/calcit#2133 ·
I maintainer di solito rispondono entro 1 giorno
-
worker/start rejects middleware supplied as a VarForse già presa @rajp152k l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Profiler (Remotery) leaks a socket for every connection that fails the WebSocket handshakeForse già presa @rthery l’ha presa 3 giorni fa. Apertatriage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno