mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 21:53:29 +00:00
fix: show reasoning summaries for gemini models (#4491)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b3afa84058
commit
9de1242d9b
1 changed files with 10 additions and 0 deletions
|
|
@ -141,6 +141,12 @@ export namespace ProviderTransform {
|
|||
result["promptCacheKey"] = sessionID
|
||||
}
|
||||
|
||||
if (providerID === "google") {
|
||||
result["thinkingConfig"] = {
|
||||
includeThoughts: true,
|
||||
}
|
||||
}
|
||||
|
||||
if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
|
||||
if (modelID.includes("codex")) {
|
||||
result["store"] = false
|
||||
|
|
@ -178,6 +184,10 @@ export namespace ProviderTransform {
|
|||
return {
|
||||
["anthropic" as string]: options,
|
||||
}
|
||||
case "@ai-sdk/google":
|
||||
return {
|
||||
["google" as string]: options,
|
||||
}
|
||||
case "@ai-sdk/gateway":
|
||||
return {
|
||||
["gateway" as string]: options,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue