Eca does not work with OpenCode via the openai-responses, nor with openai-chat
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Clojure
- スター
- 1k
- フォーク
- 82
- 平均マージ
- 3日 39分
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
editor-code-assistant/eca のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
editor-code-assistant/eca#655 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
editor-code-assistant/eca#648 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
editor-code-assistant/eca#644 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Add the ability to see what changed in the system prompt対応中かも @zikajk が 9 日前に担当しました。 オープンenhancement
editor-code-assistant/eca#642 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
editor-code-assistant/eca#629 ·
メンテナーはふだん 2 日以内に返信
editor-code-assistant/eca の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NoahTheDuke/splint#57 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
IOP MCP
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
calcit-lang/calcit#2133 ·
メンテナーはふだん 1 日以内に返信
-
worker/start rejects middleware supplied as a Var対応中かも @rajp152k が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100