mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
This commit is contained in:
@@ -87,7 +87,7 @@ export class QwenExecutor extends DefaultExecutor {
|
|||||||
|
|
||||||
transformRequest(model, body, stream, credentials) {
|
transformRequest(model, body, stream, credentials) {
|
||||||
let next = body && typeof body === "object" ? { ...body } : body;
|
let next = body && typeof body === "object" ? { ...body } : body;
|
||||||
if (stream && next?.messages && !next.stream_options) {
|
if (stream && next?.messages && !next.stream_options && !next.thinking && !next.enable_thinking && next.stream !== false) {
|
||||||
next.stream_options = { include_usage: true };
|
next.stream_options = { include_usage: true };
|
||||||
}
|
}
|
||||||
next = sanitizeQwenThinkingToolChoice(next);
|
next = sanitizeQwenThinkingToolChoice(next);
|
||||||
|
|||||||
Reference in New Issue
Block a user