mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 07:03:25 +00:00
feat(coding-agent): add Qwen CLI OAuth provider
This commit is contained in:
parent
c27168840c
commit
993c45a059
9 changed files with 380 additions and 5 deletions
|
|
@ -442,6 +442,9 @@ function buildParams(model: Model<"openai-completions">, context: Context, optio
|
|||
// Z.ai uses binary thinking: { type: "enabled" | "disabled" }
|
||||
// Must explicitly disable since z.ai defaults to thinking enabled
|
||||
(params as any).thinking = { type: options?.reasoningEffort ? "enabled" : "disabled" };
|
||||
} else if (compat.thinkingFormat === "qwen" && model.reasoning) {
|
||||
// Qwen uses enable_thinking: boolean
|
||||
(params as any).enable_thinking = !!options?.reasoningEffort;
|
||||
} else if (options?.reasoningEffort && model.reasoning && compat.supportsReasoningEffort) {
|
||||
// OpenAI-style reasoning_effort
|
||||
params.reasoning_effort = options.reasoningEffort;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue