@ai-sdk/openai 2.0.93 → 2.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +4 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -968,7 +968,7 @@ var OpenAIChatLanguageModel = class {
|
|
|
968
968
|
for (const toolCallDelta of delta.tool_calls) {
|
|
969
969
|
const index = toolCallDelta.index;
|
|
970
970
|
if (toolCalls[index] == null) {
|
|
971
|
-
if (toolCallDelta.type !== "function") {
|
|
971
|
+
if (toolCallDelta.type != null && toolCallDelta.type !== "function") {
|
|
972
972
|
throw new InvalidResponseDataError({
|
|
973
973
|
data: toolCallDelta,
|
|
974
974
|
message: `Expected 'function' type.`
|
|
@@ -2996,7 +2996,9 @@ var openaiResponsesReasoningModelIds = [
|
|
|
2996
2996
|
"gpt-5.1-codex-max",
|
|
2997
2997
|
"gpt-5.2",
|
|
2998
2998
|
"gpt-5.2-chat-latest",
|
|
2999
|
-
"gpt-5.2-pro"
|
|
2999
|
+
"gpt-5.2-pro",
|
|
3000
|
+
"gpt-5.2-codex",
|
|
3001
|
+
"gpt-5.3-codex"
|
|
3000
3002
|
];
|
|
3001
3003
|
var openaiResponsesModelIds = [
|
|
3002
3004
|
"gpt-4.1",
|
|
@@ -4695,7 +4697,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4695
4697
|
};
|
|
4696
4698
|
|
|
4697
4699
|
// src/version.ts
|
|
4698
|
-
var VERSION = true ? "2.0.
|
|
4700
|
+
var VERSION = true ? "2.0.95" : "0.0.0-test";
|
|
4699
4701
|
|
|
4700
4702
|
// src/openai-provider.ts
|
|
4701
4703
|
function createOpenAI(options = {}) {
|