|
|
@@ -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", () => {
|