@ai-sdk/openai 3.0.123 → 3.0.125
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 +13 -0
- package/dist/index.d.mts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +167 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +168 -9
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +15 -15
- package/dist/internal/index.d.ts +15 -15
- package/dist/internal/index.js +1058 -900
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1050 -891
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/chat/openai-chat-language-model.ts +2 -1
- package/src/normalize-openai-json-schema.ts +142 -0
- package/src/responses/convert-to-openai-responses-input.ts +89 -0
- package/src/responses/openai-responses-api.ts +9 -1
- package/src/responses/openai-responses-language-model.ts +2 -1
|
@@ -273,21 +273,6 @@ type OpenAIResponsesFileSearchToolCompoundFilter = {
|
|
|
273
273
|
declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
274
274
|
type: "unknown_chunk";
|
|
275
275
|
message: string;
|
|
276
|
-
} | {
|
|
277
|
-
type: "error";
|
|
278
|
-
sequence_number: number;
|
|
279
|
-
error: {
|
|
280
|
-
type: string;
|
|
281
|
-
code: string;
|
|
282
|
-
message: string;
|
|
283
|
-
param?: string | null | undefined;
|
|
284
|
-
};
|
|
285
|
-
} | {
|
|
286
|
-
type: "error";
|
|
287
|
-
sequence_number: number;
|
|
288
|
-
message: string;
|
|
289
|
-
code?: string | null | undefined;
|
|
290
|
-
param?: string | null | undefined;
|
|
291
276
|
} | {
|
|
292
277
|
type: "response.output_text.delta";
|
|
293
278
|
item_id: string;
|
|
@@ -762,6 +747,21 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
762
747
|
item_id: string;
|
|
763
748
|
output_index: number;
|
|
764
749
|
diff: string;
|
|
750
|
+
} | {
|
|
751
|
+
type: "error";
|
|
752
|
+
sequence_number: number;
|
|
753
|
+
error: {
|
|
754
|
+
type: string;
|
|
755
|
+
message: string;
|
|
756
|
+
code?: string | null | undefined;
|
|
757
|
+
param?: string | null | undefined;
|
|
758
|
+
};
|
|
759
|
+
} | {
|
|
760
|
+
type: "error";
|
|
761
|
+
sequence_number: number;
|
|
762
|
+
message: string;
|
|
763
|
+
code?: string | null | undefined;
|
|
764
|
+
param?: string | null | undefined;
|
|
765
765
|
}>;
|
|
766
766
|
type OpenAIResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
|
|
767
767
|
type OpenAIResponsesLogprobs = NonNullable<(OpenAIResponsesChunk & {
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -273,21 +273,6 @@ type OpenAIResponsesFileSearchToolCompoundFilter = {
|
|
|
273
273
|
declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
274
274
|
type: "unknown_chunk";
|
|
275
275
|
message: string;
|
|
276
|
-
} | {
|
|
277
|
-
type: "error";
|
|
278
|
-
sequence_number: number;
|
|
279
|
-
error: {
|
|
280
|
-
type: string;
|
|
281
|
-
code: string;
|
|
282
|
-
message: string;
|
|
283
|
-
param?: string | null | undefined;
|
|
284
|
-
};
|
|
285
|
-
} | {
|
|
286
|
-
type: "error";
|
|
287
|
-
sequence_number: number;
|
|
288
|
-
message: string;
|
|
289
|
-
code?: string | null | undefined;
|
|
290
|
-
param?: string | null | undefined;
|
|
291
276
|
} | {
|
|
292
277
|
type: "response.output_text.delta";
|
|
293
278
|
item_id: string;
|
|
@@ -762,6 +747,21 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
762
747
|
item_id: string;
|
|
763
748
|
output_index: number;
|
|
764
749
|
diff: string;
|
|
750
|
+
} | {
|
|
751
|
+
type: "error";
|
|
752
|
+
sequence_number: number;
|
|
753
|
+
error: {
|
|
754
|
+
type: string;
|
|
755
|
+
message: string;
|
|
756
|
+
code?: string | null | undefined;
|
|
757
|
+
param?: string | null | undefined;
|
|
758
|
+
};
|
|
759
|
+
} | {
|
|
760
|
+
type: "error";
|
|
761
|
+
sequence_number: number;
|
|
762
|
+
message: string;
|
|
763
|
+
code?: string | null | undefined;
|
|
764
|
+
param?: string | null | undefined;
|
|
765
765
|
}>;
|
|
766
766
|
type OpenAIResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
|
|
767
767
|
type OpenAIResponsesLogprobs = NonNullable<(OpenAIResponsesChunk & {
|