fix: ensure azure has store = true by default (#22764)

This commit is contained in:
Aiden Cline 2026-04-16 12:19:01 -05:00 • committed by GitHub
commit c5deeee8c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,6 +100,24 @@ describe("ProviderTransform.options - setCacheKey", () => {
})
expect(result.store).toBe(false)
})
test("should set store=true for azure provider by default", () => {
const azureModel = {
...mockModel,
providerID: "azure",
api: {
id: "gpt-4",
url: "https://azure.com",
npm: "@ai-sdk/azure",
},
}
const result = ProviderTransform.options({
model: azureModel,
sessionID,
providerOptions: {},
})
expect(result.store).toBe(true)
})
})
describe("ProviderTransform.options - zai/zhipuai thinking", () => {