[Bug] OpenAI-compatible driver fails to populate 'messages' array in request payload for local endpoints
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by tracing how the OpenAI-compatible driver builds chat completion requests and how the configured model and user input reach that code. Reproduce with a local OpenAI-compatible endpoint and inspect the outgoing JSON payload. Done means the request includes the user's text in the messages array and the endpoint accepts it.
由索引模型根據 Issue 內容生成。
描述
Description
When using a local, OpenAI-compatible server (e.g., Ollama) via the openai provider in waveai.json, the client fails to include the user's text input in the JSON request payload. This results in an empty messages array being sent to the endpoint, triggering a 400 Bad Request from the server.
Steps to Reproduce
- Configure
waveai.jsonto useai:provider: "openai"with a local endpoint (e.g.,http://localhost:11434/v1/chat/completions). - Set a dummy
OPENAI_KEYin the Secrets menu to bypass client-side validation. - Open a new chat session using the configured model.
- Type a valid text string (e.g., "Hello!") and attempt to send.
Expected Behavior
The client should package the user input into a standard OpenAI chat completion payload:
{"model": "...", "messages": [{"role": "user", "content": "Hello!"}]}
- 主要語言
- Go
- 星號
- 22.7k
- 分支
- 1.2k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
wavetermdev/waveterm 的其他 Issue
-
bug triage
難度 2/5 1-3 小時 新手友好度 66/100
wavetermdev/waveterm#3587 ·
維護者通常 1 天內回覆
-
bug triage
難度 2/5 1-3 小時 新手友好度 75/100
wavetermdev/waveterm#3568 ·
維護者通常 1 天內回覆
-
pwsh: encodeEnvVarsForPowerShell rejects Windows-standard env var names like ProgramFiles(x86), breaking wsh token on every pwsh block可能已有人在做 @vortsghost2025 於 63 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
wavetermdev/waveterm#3481 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
wavetermdev/waveterm#3435 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
wavetermdev/waveterm#3432 ·
維護者通常 1 天內回覆
查看 wavetermdev/waveterm 的全部 Issue
相似的 Issue
-
area/installation kind/bug
難度 2/5 1-3 小時 新手友好度 78/100
vllm-project/aibrix#3456 · 1 則留言 ·
維護者通常 1 天內回覆
-
go good first issue help wanted up-for-grabs
難度 2/5 1-3 小時 新手友好度 84/100
andrewsiah/agentswarm-data-tasks#236 ·
維護者通常 1 天內回覆
-
kind/bug
難度 2/5 1-3 小時 新手友好度 65/100
cadence-workflow/cadence#8745 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 79/100
charmbracelet/crush#4271 ·
維護者通常 1 天內回覆
-
bug in-progress needs-triage P1 tier:2-standard
難度 2/5 1-3 小時 新手友好度 78/100
krakenhavoc/cmd_and_ctrl#5693 ·
維護者通常 1 天內回覆