cherry-studio/src/renderer
George·Dong cea36d170b
fix(qwen-code): format baseUrl with /v1 for OpenAI-compatible tools (#12418)
The Qwen Code tool was failing with 'Model stream ended without a finish reason'
because the OPENAI_BASE_URL environment variable was not properly formatted.

This fix adds /v1 suffix to the baseUrl when it's missing for OpenAI-compatible
tools (qwenCode, openaiCodex, iFlowCli).

Changes:
- Import formatApiHost from @renderer/utils/api
- Use formatApiHost to format baseUrl before passing to environment variables
- Add unit tests for the URL formatting behavior
2026-01-12 13:41:27 +08:00
..
src fix(qwen-code): format baseUrl with /v1 for OpenAI-compatible tools (#12418) 2026-01-12 13:41:27 +08:00
index.html feat: refactor Knowledge Base (#8384) 2025-09-04 17:23:31 +08:00
miniWindow.html feat: Use different window name for Quick Assistant (#9217) 2025-08-16 11:21:29 +08:00
selectionAction.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
selectionToolbar.html style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
traceWindow.html refactor: streamline system prompt handling and introduce built-in tools (#7714) 2025-07-23 17:27:39 +08:00