fix(provider): preserve OpenRouter small model effort (#35478)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
e9f5d34096
commit
68f225a11d
2 changed files with 3 additions and 6 deletions
|
|
@ -4638,12 +4638,12 @@ describe("ProviderTransform.smallOptions - gpt-5 chat/search", () => {
|
|||
}
|
||||
})
|
||||
|
||||
test("ProviderTransform.smallOptions disables OpenRouter reasoning when the weakest effort is low", () => {
|
||||
test("ProviderTransform.smallOptions preserves the weakest OpenRouter reasoning effort", () => {
|
||||
expect(
|
||||
ProviderTransform.smallOptions({
|
||||
providerID: "openrouter",
|
||||
api: {
|
||||
id: "anthropic/claude-sonnet-4.6",
|
||||
id: "google/gemini-3.5-flash",
|
||||
npm: "@openrouter/ai-sdk-provider",
|
||||
},
|
||||
variants: {
|
||||
|
|
@ -4652,7 +4652,7 @@ test("ProviderTransform.smallOptions disables OpenRouter reasoning when the weak
|
|||
high: { reasoning: { effort: "high" } },
|
||||
},
|
||||
} as any),
|
||||
).toEqual({ reasoning: { effort: "none" } })
|
||||
).toEqual({ reasoning: { effort: "low" } })
|
||||
})
|
||||
|
||||
describe("ProviderTransform.smallOptions - google thinking controls", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue