@ai-sdk/openai
Advanced tools
Comparing version 0.0.46 to 0.0.47
@@ -335,5 +335,5 @@ "use strict"; | ||
description: mode.tool.description, | ||
parameters: mode.tool.parameters | ||
}, | ||
strict: this.settings.structuredOutputs === true ? true : void 0 | ||
parameters: mode.tool.parameters, | ||
strict: this.settings.structuredOutputs === true ? true : void 0 | ||
} | ||
} | ||
@@ -705,5 +705,5 @@ ] | ||
description: tool.description, | ||
parameters: tool.parameters | ||
}, | ||
strict: structuredOutputs === true ? true : void 0 | ||
parameters: tool.parameters, | ||
strict: structuredOutputs === true ? true : void 0 | ||
} | ||
})); | ||
@@ -710,0 +710,0 @@ if (toolChoice == null) { |
import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
import { FetchFunction } from '@ai-sdk/provider-utils'; | ||
@@ -69,3 +70,3 @@ type OpenAIChatModelId = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {}); | ||
}) => string; | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
}; | ||
@@ -138,3 +139,3 @@ declare class OpenAIChatLanguageModel implements LanguageModelV1 { | ||
}) => string; | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
}; | ||
@@ -183,3 +184,3 @@ declare class OpenAICompletionLanguageModel implements LanguageModelV1 { | ||
headers: () => Record<string, string | undefined>; | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
}; | ||
@@ -255,3 +256,3 @@ declare class OpenAIEmbeddingModel implements EmbeddingModelV1<string> { | ||
*/ | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
} | ||
@@ -258,0 +259,0 @@ /** |
@@ -335,5 +335,5 @@ "use strict"; | ||
description: mode.tool.description, | ||
parameters: mode.tool.parameters | ||
}, | ||
strict: this.settings.structuredOutputs === true ? true : void 0 | ||
parameters: mode.tool.parameters, | ||
strict: this.settings.structuredOutputs === true ? true : void 0 | ||
} | ||
} | ||
@@ -705,5 +705,5 @@ ] | ||
description: tool.description, | ||
parameters: tool.parameters | ||
}, | ||
strict: structuredOutputs === true ? true : void 0 | ||
parameters: tool.parameters, | ||
strict: structuredOutputs === true ? true : void 0 | ||
} | ||
})); | ||
@@ -710,0 +710,0 @@ if (toolChoice == null) { |
import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
import { FetchFunction } from '@ai-sdk/provider-utils'; | ||
@@ -69,3 +70,3 @@ type OpenAIChatModelId = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {}); | ||
}) => string; | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
}; | ||
@@ -138,3 +139,3 @@ declare class OpenAIChatLanguageModel implements LanguageModelV1 { | ||
}) => string; | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
}; | ||
@@ -183,3 +184,3 @@ declare class OpenAICompletionLanguageModel implements LanguageModelV1 { | ||
headers: () => Record<string, string | undefined>; | ||
fetch?: typeof fetch; | ||
fetch?: FetchFunction; | ||
}; | ||
@@ -186,0 +187,0 @@ declare class OpenAIEmbeddingModel implements EmbeddingModelV1<string> { |
@@ -332,5 +332,5 @@ "use strict"; | ||
description: mode.tool.description, | ||
parameters: mode.tool.parameters | ||
}, | ||
strict: this.settings.structuredOutputs === true ? true : void 0 | ||
parameters: mode.tool.parameters, | ||
strict: this.settings.structuredOutputs === true ? true : void 0 | ||
} | ||
} | ||
@@ -702,5 +702,5 @@ ] | ||
description: tool.description, | ||
parameters: tool.parameters | ||
}, | ||
strict: structuredOutputs === true ? true : void 0 | ||
parameters: tool.parameters, | ||
strict: structuredOutputs === true ? true : void 0 | ||
} | ||
})); | ||
@@ -707,0 +707,0 @@ if (toolChoice == null) { |
{ | ||
"name": "@ai-sdk/openai", | ||
"version": "0.0.46", | ||
"version": "0.0.47", | ||
"license": "Apache-2.0", | ||
@@ -29,3 +29,3 @@ "sideEffects": false, | ||
"@ai-sdk/provider": "0.0.19", | ||
"@ai-sdk/provider-utils": "1.0.11" | ||
"@ai-sdk/provider-utils": "1.0.12" | ||
}, | ||
@@ -35,3 +35,3 @@ "devDependencies": { | ||
"tsup": "^8", | ||
"typescript": "5.1.3", | ||
"typescript": "5.5.4", | ||
"zod": "3.23.8", | ||
@@ -38,0 +38,0 @@ "@vercel/ai-tsconfig": "0.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
538790
6491
+ Added@ai-sdk/provider-utils@1.0.12(transitive)
- Removed@ai-sdk/provider-utils@1.0.11(transitive)