File tree Expand file tree Collapse file tree
packages/opencode/src/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -658,11 +658,18 @@ export namespace ProviderTransform {
658658 }
659659
660660 export function smallOptions ( model : Provider . Model ) {
661- if ( model . providerID === "openai" || model . api . id . includes ( "gpt-5" ) ) {
662- if ( model . api . id . includes ( "5." ) ) {
663- return { reasoningEffort : "low" }
661+ if (
662+ model . providerID === "openai" ||
663+ model . api . npm === "@ai-sdk/openai" ||
664+ model . api . npm === "@ai-sdk/github-copilot"
665+ ) {
666+ if ( model . api . id . includes ( "gpt-5" ) ) {
667+ if ( model . api . id . includes ( "5." ) ) {
668+ return { store : false , reasoningEffort : "low" }
669+ }
670+ return { store : false , reasoningEffort : "minimal" }
664671 }
665- return { reasoningEffort : "minimal" }
672+ return { store : false }
666673 }
667674 if ( model . providerID === "google" ) {
668675 // gemini-3 uses thinkingLevel, gemini-2.5 uses thinkingBudget
You can’t perform that action at this time.
0 commit comments