fix: deepseek-v4-pro 不支持 tool_choice#204
Conversation
🔍 PR Test Report🧪 Test Results❌ Some tests failed
📊 Coverage Report
Coverage Thresholds
Generated at 2026-05-04T15:14:59.318Z |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f568ce4759
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const model = _.get(generate_data, 'model', '') as string; | ||
| if (generate_data.tools !== undefined && _.size(generate_data.tools) > 0 && !model.includes('deepseek')) { |
There was a problem hiding this comment.
Detect DeepSeek model from custom_api config
This guard only inspects generate_data.model, but extra-model requests in custom source mode set the model at generate_data.custom_api.model (see src/function/update/invoke_extra_model.ts). In that common path, model resolves to '', so the condition still sets tool_choice = 'required' and the DeepSeek compatibility fix does not apply, which can keep failing requests for DeepSeek v4-pro behind custom/OpenAI-compatible endpoints.
Useful? React with 👍 / 👎.
|
唐了,酒馆后端的问题,这里删掉没用 |
No description provided.