fix: provider proxy_url set null when disabled

This commit is contained in:
jialin
2026-02-24 11:07:53 +08:00
parent 04092c3fa5
commit 0824f0c13b
5 changed files with 36 additions and 11 deletions
@@ -53,9 +53,9 @@ export default function useChatCompletion(
}
const deltaReasoningContent =
_.get(chunk, 'choices.0.delta.reasoning_content', '') === null
? ''
: _.get(chunk, 'choices.0.delta.reasoning_content', '');
_.get(chunk, 'choices.0.delta.reasoning_content', '') ||
_.get(chunk, 'choices.0.delta.reasoning', '') ||
'';
const deltaContent =
_.get(chunk, 'choices.0.delta.content', '') === null