mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-06 19:11:09 +08:00
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 |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| miniWindow.html | ||
| selectionAction.html | ||
| selectionToolbar.html | ||
| traceWindow.html | ||