mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak: correct thinkingLevel
This commit is contained in:
parent
6f5f73a74a
commit
439aebb4e9
1 changed files with 3 additions and 1 deletions
|
|
@ -231,9 +231,11 @@ export namespace ProviderTransform {
|
|||
|
||||
if (model.api.npm === "@ai-sdk/google" || model.api.npm === "@ai-sdk/google-vertex") {
|
||||
result["thinkingConfig"] = {
|
||||
thinkingLevel: "high",
|
||||
includeThoughts: true,
|
||||
}
|
||||
if (model.api.id.includes("gemini-3")) {
|
||||
result["thinkingConfig"]["thinkingLevel"] = "high"
|
||||
}
|
||||
}
|
||||
|
||||
if (model.api.id.includes("gpt-5") && !model.api.id.includes("gpt-5-chat")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue