Eca does not work with OpenCode via the openai-responses, nor with openai-chat
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Clojure
- Sterne
- 1k
- Forks
- 82
- Ø Merge
- 3 T. 39 Min.
- Gemergte PRs (30 T.)
- 15
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus editor-code-assistant/eca
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
editor-code-assistant/eca#655 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
editor-code-assistant/eca#648 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
editor-code-assistant/eca#644 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Add the ability to see what changed in the system promptEvtl. vergeben @zikajk hat das vor 9 Tagen übernommen. Offenenhancement
editor-code-assistant/eca#642 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
editor-code-assistant/eca#629 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in editor-code-assistant/eca
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
NoahTheDuke/splint#57 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
IOP MCP
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
calcit-lang/calcit#2133 ·
Maintainer antworten meist innerhalb von 1 Tag
-
worker/start rejects middleware supplied as a VarEvtl. vergeben @rajp152k hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100