openai 7.10.0 → 7.13.0
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 +203 -0
- package/README.md +7 -5
- package/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/_vendor/partial-json-parser/parser.js +4 -3
- package/_vendor/partial-json-parser/parser.js.map +1 -1
- package/_vendor/partial-json-parser/parser.mjs +4 -3
- package/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.js +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.mjs +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.js +19 -12
- package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs +19 -12
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js +6 -2
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +6 -2
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -1
- package/auth/subject-token-providers.d.mts.map +1 -1
- package/auth/subject-token-providers.d.ts.map +1 -1
- package/auth/subject-token-providers.js +10 -5
- package/auth/subject-token-providers.js.map +1 -1
- package/auth/subject-token-providers.mjs +10 -5
- package/auth/subject-token-providers.mjs.map +1 -1
- package/auth/workload-identity-auth.d.mts.map +1 -1
- package/auth/workload-identity-auth.d.ts.map +1 -1
- package/auth/workload-identity-auth.js +21 -11
- package/auth/workload-identity-auth.js.map +1 -1
- package/auth/workload-identity-auth.mjs +21 -11
- package/auth/workload-identity-auth.mjs.map +1 -1
- package/azure.d.mts.map +1 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +31 -2
- package/azure.js.map +1 -1
- package/azure.mjs +32 -3
- package/azure.mjs.map +1 -1
- package/beta/realtime/internal-base.d.mts.map +1 -1
- package/beta/realtime/internal-base.d.ts.map +1 -1
- package/beta/realtime/internal-base.js +3 -2
- package/beta/realtime/internal-base.js.map +1 -1
- package/beta/realtime/internal-base.mjs +3 -2
- package/beta/realtime/internal-base.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts +2 -0
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts +2 -0
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +12 -7
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +12 -7
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts +2 -0
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts +2 -0
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +7 -5
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +7 -5
- package/beta/realtime/ws.mjs.map +1 -1
- package/client.d.mts +9 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -1
- package/client.d.ts.map +1 -1
- package/client.js +17 -4
- package/client.js.map +1 -1
- package/client.mjs +17 -4
- package/client.mjs.map +1 -1
- package/core/EventEmitter.d.mts +2 -1
- package/core/EventEmitter.d.mts.map +1 -1
- package/core/EventEmitter.d.ts +2 -1
- package/core/EventEmitter.d.ts.map +1 -1
- package/core/EventEmitter.js +2 -1
- package/core/EventEmitter.js.map +1 -1
- package/core/EventEmitter.mjs +2 -1
- package/core/EventEmitter.mjs.map +1 -1
- package/core/pagination.js +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.d.mts +8 -0
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +8 -0
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +68 -15
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +68 -15
- package/core/streaming.mjs.map +1 -1
- package/helpers/audio.d.mts +1 -1
- package/helpers/audio.d.mts.map +1 -1
- package/helpers/audio.d.ts +1 -1
- package/helpers/audio.d.ts.map +1 -1
- package/helpers/audio.js +25 -5
- package/helpers/audio.js.map +1 -1
- package/helpers/audio.mjs +25 -5
- package/helpers/audio.mjs.map +1 -1
- package/helpers/zod.d.mts +28 -15
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +28 -15
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +30 -23
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +30 -23
- package/helpers/zod.mjs.map +1 -1
- package/index.js +4 -5
- package/internal/bedrock.d.mts +11 -0
- package/internal/bedrock.d.mts.map +1 -1
- package/internal/bedrock.d.ts +11 -0
- package/internal/bedrock.d.ts.map +1 -1
- package/internal/bedrock.js +71 -55
- package/internal/bedrock.js.map +1 -1
- package/internal/bedrock.mjs +70 -55
- package/internal/bedrock.mjs.map +1 -1
- package/internal/detect-platform.js +2 -2
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +2 -2
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +3 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +3 -2
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +4 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +4 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.js +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/realtime-credentials.d.mts +15 -0
- package/internal/realtime-credentials.d.mts.map +1 -0
- package/internal/realtime-credentials.d.ts +15 -0
- package/internal/realtime-credentials.d.ts.map +1 -0
- package/internal/realtime-credentials.js +23 -0
- package/internal/realtime-credentials.js.map +1 -0
- package/internal/realtime-credentials.mjs +19 -0
- package/internal/realtime-credentials.mjs.map +1 -0
- package/internal/responses/response-accumulator.d.mts.map +1 -1
- package/internal/responses/response-accumulator.d.ts.map +1 -1
- package/internal/responses/response-accumulator.js +2 -1
- package/internal/responses/response-accumulator.js.map +1 -1
- package/internal/responses/response-accumulator.mjs +2 -1
- package/internal/responses/response-accumulator.mjs.map +1 -1
- package/internal/to-file.d.mts +2 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +2 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +5 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +6 -5
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +3 -3
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +3 -3
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +2 -0
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +2 -0
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +12 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +11 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +3 -0
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -0
- package/internal/utils/base64.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +31 -9
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +31 -9
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.mts +4 -1
- package/lib/AssistantStream.d.mts.map +1 -1
- package/lib/AssistantStream.d.ts +4 -1
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +23 -8
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +24 -9
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.mts +6 -3
- package/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +6 -3
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionRunner.js +7 -4
- package/lib/ChatCompletionRunner.js.map +1 -1
- package/lib/ChatCompletionRunner.mjs +7 -4
- package/lib/ChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +6 -0
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +7 -1
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.js +1 -0
- package/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/lib/ChatCompletionStreamingRunner.mjs +1 -0
- package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/lib/EventEmitter.d.mts +3 -1
- package/lib/EventEmitter.d.mts.map +1 -1
- package/lib/EventEmitter.d.ts +3 -1
- package/lib/EventEmitter.d.ts.map +1 -1
- package/lib/EventEmitter.js +2 -1
- package/lib/EventEmitter.js.map +1 -1
- package/lib/EventEmitter.mjs +2 -1
- package/lib/EventEmitter.mjs.map +1 -1
- package/lib/EventStream.d.mts +2 -1
- package/lib/EventStream.d.mts.map +1 -1
- package/lib/EventStream.d.ts +2 -1
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +99 -46
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +99 -46
- package/lib/EventStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts +5 -4
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts +5 -4
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +21 -7
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +21 -7
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/RunnableFunction.d.mts +2 -2
- package/lib/RunnableFunction.d.mts.map +1 -1
- package/lib/RunnableFunction.d.ts +2 -2
- package/lib/RunnableFunction.d.ts.map +1 -1
- package/lib/embeddings.d.mts.map +1 -1
- package/lib/embeddings.d.ts.map +1 -1
- package/lib/embeddings.js +18 -12
- package/lib/embeddings.js.map +1 -1
- package/lib/embeddings.mjs +18 -12
- package/lib/embeddings.mjs.map +1 -1
- package/lib/file-processing.d.mts +3 -2
- package/lib/file-processing.d.mts.map +1 -1
- package/lib/file-processing.d.ts +3 -2
- package/lib/file-processing.d.ts.map +1 -1
- package/lib/file-processing.js +5 -4
- package/lib/file-processing.js.map +1 -1
- package/lib/file-processing.mjs +5 -4
- package/lib/file-processing.mjs.map +1 -1
- package/lib/parser.d.mts +16 -4
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +16 -4
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js +1 -1
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs +1 -1
- package/lib/parser.mjs.map +1 -1
- package/lib/polling.d.mts +2 -2
- package/lib/polling.d.mts.map +1 -1
- package/lib/polling.d.ts +2 -2
- package/lib/polling.d.ts.map +1 -1
- package/lib/polling.js +5 -4
- package/lib/polling.js.map +1 -1
- package/lib/polling.mjs +5 -4
- package/lib/polling.mjs.map +1 -1
- package/lib/responses/EventTypes.d.mts +2 -2
- package/lib/responses/EventTypes.d.mts.map +1 -1
- package/lib/responses/EventTypes.d.ts +2 -2
- package/lib/responses/EventTypes.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.d.mts +3 -2
- package/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/lib/responses/ResponseInputItems.d.ts +3 -2
- package/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.js +27 -4
- package/lib/responses/ResponseInputItems.js.map +1 -1
- package/lib/responses/ResponseInputItems.mjs +27 -4
- package/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/lib/transform.d.mts.map +1 -1
- package/lib/transform.d.ts.map +1 -1
- package/lib/transform.js +1 -0
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +1 -0
- package/lib/transform.mjs.map +1 -1
- package/lib/vector-store-polling.d.mts +2 -2
- package/lib/vector-store-polling.d.ts +2 -2
- package/lib/vector-store-polling.js +3 -3
- package/lib/vector-store-polling.js.map +1 -1
- package/lib/vector-store-polling.mjs +3 -3
- package/lib/vector-store-polling.mjs.map +1 -1
- package/lib/vector-store-upload.d.mts +2 -1
- package/lib/vector-store-upload.d.mts.map +1 -1
- package/lib/vector-store-upload.d.ts +2 -1
- package/lib/vector-store-upload.d.ts.map +1 -1
- package/lib/vector-store-upload.js +5 -1
- package/lib/vector-store-upload.js.map +1 -1
- package/lib/vector-store-upload.mjs +5 -1
- package/lib/vector-store-upload.mjs.map +1 -1
- package/package.json +1 -1
- package/providers/bedrock/aws.d.mts.map +1 -1
- package/providers/bedrock/aws.d.ts.map +1 -1
- package/providers/bedrock/aws.js +14 -16
- package/providers/bedrock/aws.js.map +1 -1
- package/providers/bedrock/aws.mjs +15 -17
- package/providers/bedrock/aws.mjs.map +1 -1
- package/realtime/internal-base.d.mts.map +1 -1
- package/realtime/internal-base.d.ts.map +1 -1
- package/realtime/internal-base.js +3 -5
- package/realtime/internal-base.js.map +1 -1
- package/realtime/internal-base.mjs +3 -5
- package/realtime/internal-base.mjs.map +1 -1
- package/realtime/websocket.d.mts +2 -0
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts +2 -0
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +12 -6
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +12 -6
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts +2 -0
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts +2 -0
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +7 -4
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +7 -4
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +1 -1
- package/resources/admin/organization/audit-logs.d.ts +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +5 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +5 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +2 -2
- package/resources/admin/organization/projects/projects.d.ts +2 -2
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts +9 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts +9 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/audio/speech.d.mts +3 -2
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +3 -2
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/transcriptions.d.mts +10 -10
- package/resources/audio/transcriptions.d.ts +10 -10
- package/resources/audio/translations.d.mts +1 -1
- package/resources/audio/translations.d.ts +1 -1
- package/resources/batches.d.mts +6 -5
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +6 -5
- package/resources/batches.d.ts.map +1 -1
- package/resources/beta/assistants.d.mts +143 -147
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +143 -147
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +11 -11
- package/resources/beta/responses/input-tokens.d.ts +11 -11
- package/resources/beta/responses/responses.d.mts +284 -194
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +284 -194
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +3 -3
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +3 -3
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +29 -23
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +29 -23
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +39 -35
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +39 -35
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts +14 -15
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts +14 -15
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/threads.d.mts +53 -50
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts +53 -50
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +89 -81
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +89 -81
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +15 -14
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +15 -14
- package/resources/completions.d.ts.map +1 -1
- package/resources/content-provenance-checks.d.mts +1 -1
- package/resources/content-provenance-checks.d.ts +1 -1
- package/resources/content-provenance-checks.js +1 -1
- package/resources/content-provenance-checks.mjs +1 -1
- package/resources/conversations/items.d.mts +12 -3
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +12 -3
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/embeddings.d.mts +6 -6
- package/resources/embeddings.d.ts +6 -6
- package/resources/evals/evals.d.mts +1 -1
- package/resources/evals/evals.d.ts +1 -1
- package/resources/evals/evals.js +1 -1
- package/resources/evals/evals.mjs +1 -1
- package/resources/evals/runs/runs.d.mts +62 -57
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +62 -57
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +5 -5
- package/resources/files.d.ts +5 -5
- package/resources/files.js +5 -5
- package/resources/files.mjs +5 -5
- package/resources/fine-tuning/alpha/graders.d.mts +5 -4
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts +5 -4
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +8 -4
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +8 -4
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +2 -2
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +2 -2
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +83 -68
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +83 -68
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js.map +1 -1
- package/resources/images.mjs.map +1 -1
- package/resources/moderations.d.mts +5 -4
- package/resources/moderations.d.mts.map +1 -1
- package/resources/moderations.d.ts +5 -4
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +2 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +2 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +1 -1
- package/resources/realtime/calls.d.ts +1 -1
- package/resources/realtime/client-secrets.d.mts +4 -4
- package/resources/realtime/client-secrets.d.ts +4 -4
- package/resources/realtime/client-secrets.js +1 -1
- package/resources/realtime/client-secrets.mjs +1 -1
- package/resources/realtime/realtime.d.mts +16 -16
- package/resources/realtime/realtime.d.ts +16 -16
- package/resources/responses/input-tokens.d.mts +9 -9
- package/resources/responses/input-tokens.d.ts +9 -9
- package/resources/responses/responses.d.mts +278 -187
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +278 -187
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +3 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +3 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +12 -12
- package/resources/shared.d.ts +12 -12
- package/resources/uploads/parts.d.mts +5 -4
- package/resources/uploads/parts.d.mts.map +1 -1
- package/resources/uploads/parts.d.ts +5 -4
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +5 -4
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +5 -4
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts +11 -11
- package/resources/uploads/uploads.d.ts +11 -11
- package/resources/uploads/uploads.js +9 -9
- package/resources/uploads/uploads.mjs +9 -9
- package/resources/vector-stores/file-batches.d.mts +11 -11
- package/resources/vector-stores/file-batches.d.ts +11 -11
- package/resources/vector-stores/files.d.mts +8 -8
- package/resources/vector-stores/files.d.ts +8 -8
- package/resources/vector-stores/files.js +3 -3
- package/resources/vector-stores/files.mjs +3 -3
- package/resources/vector-stores/vector-stores.d.mts +3 -3
- package/resources/vector-stores/vector-stores.d.ts +3 -3
- package/resources/webhooks/webhooks.d.mts +12 -6
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +12 -6
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/src/_vendor/partial-json-parser/parser.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/string.ts +1 -1
- package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +23 -16
- package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +11 -6
- package/src/auth/subject-token-providers.ts +12 -7
- package/src/auth/workload-identity-auth.ts +27 -12
- package/src/azure.ts +34 -3
- package/src/beta/realtime/internal-base.ts +3 -2
- package/src/beta/realtime/websocket.ts +17 -7
- package/src/beta/realtime/ws.ts +9 -5
- package/src/client.ts +19 -4
- package/src/core/EventEmitter.ts +5 -8
- package/src/core/pagination.ts +1 -1
- package/src/core/streaming.ts +69 -13
- package/src/helpers/audio.ts +27 -6
- package/src/helpers/zod.ts +78 -29
- package/src/internal/bedrock.ts +84 -58
- package/src/internal/detect-platform.ts +2 -2
- package/src/internal/errors.ts +3 -2
- package/src/internal/headers.ts +7 -5
- package/src/internal/parse.ts +1 -1
- package/src/internal/realtime-credentials.ts +27 -0
- package/src/internal/responses/response-accumulator.ts +1 -0
- package/src/internal/to-file.ts +6 -5
- package/src/internal/uploads.ts +12 -1
- package/src/internal/utils/base64.ts +3 -0
- package/src/lib/AbstractChatCompletionRunner.ts +31 -6
- package/src/lib/AssistantStream.ts +25 -11
- package/src/lib/ChatCompletionRunner.ts +8 -4
- package/src/lib/ChatCompletionStream.ts +8 -0
- package/src/lib/ChatCompletionStreamingRunner.ts +1 -0
- package/src/lib/EventEmitter.ts +17 -8
- package/src/lib/EventStream.ts +105 -52
- package/src/lib/ResponsesParser.ts +33 -12
- package/src/lib/RunnableFunction.ts +2 -2
- package/src/lib/embeddings.ts +18 -12
- package/src/lib/file-processing.ts +5 -4
- package/src/lib/parser.ts +35 -11
- package/src/lib/polling.ts +5 -4
- package/src/lib/responses/EventTypes.ts +3 -69
- package/src/lib/responses/ResponseInputItems.ts +29 -4
- package/src/lib/transform.ts +1 -0
- package/src/lib/vector-store-polling.ts +3 -3
- package/src/lib/vector-store-upload.ts +5 -1
- package/src/providers/bedrock/aws.ts +23 -24
- package/src/realtime/internal-base.ts +3 -5
- package/src/realtime/websocket.ts +14 -6
- package/src/realtime/ws.ts +9 -4
- package/src/resources/admin/organization/audit-logs.ts +1 -1
- package/src/resources/admin/organization/projects/api-keys.ts +6 -0
- package/src/resources/admin/organization/projects/projects.ts +2 -2
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +11 -0
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +15 -0
- package/src/resources/audio/speech.ts +3 -2
- package/src/resources/audio/transcriptions.ts +10 -10
- package/src/resources/audio/translations.ts +1 -1
- package/src/resources/batches.ts +6 -5
- package/src/resources/beta/assistants.ts +143 -147
- package/src/resources/beta/responses/input-tokens.ts +11 -11
- package/src/resources/beta/responses/responses.ts +315 -192
- package/src/resources/beta/threads/messages.ts +29 -23
- package/src/resources/beta/threads/runs/runs.ts +39 -35
- package/src/resources/beta/threads/runs/steps.ts +14 -15
- package/src/resources/beta/threads/threads.ts +53 -50
- package/src/resources/chat/completions/completions.ts +89 -81
- package/src/resources/completions.ts +15 -14
- package/src/resources/content-provenance-checks.ts +1 -1
- package/src/resources/conversations/items.ts +14 -3
- package/src/resources/embeddings.ts +6 -6
- package/src/resources/evals/evals.ts +1 -1
- package/src/resources/evals/runs/runs.ts +62 -57
- package/src/resources/files.ts +5 -5
- package/src/resources/fine-tuning/alpha/graders.ts +5 -4
- package/src/resources/fine-tuning/checkpoints/permissions.ts +8 -4
- package/src/resources/fine-tuning/jobs/jobs.ts +13 -12
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +86 -67
- package/src/resources/moderations.ts +5 -4
- package/src/resources/realtime/calls.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +4 -4
- package/src/resources/realtime/realtime.ts +16 -16
- package/src/resources/responses/input-tokens.ts +9 -9
- package/src/resources/responses/responses.ts +309 -185
- package/src/resources/shared.ts +12 -12
- package/src/resources/uploads/parts.ts +5 -4
- package/src/resources/uploads/uploads.ts +11 -11
- package/src/resources/vector-stores/file-batches.ts +11 -11
- package/src/resources/vector-stores/files.ts +8 -8
- package/src/resources/vector-stores/vector-stores.ts +3 -3
- package/src/resources/webhooks/webhooks.ts +12 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -254,9 +254,9 @@ export namespace FilePathDeltaAnnotation {
|
|
|
254
254
|
|
|
255
255
|
export interface ImageFile {
|
|
256
256
|
/**
|
|
257
|
-
* The [File](https://
|
|
258
|
-
* in the message content. Set `purpose="vision"` when uploading the File
|
|
259
|
-
* need to later display the file content.
|
|
257
|
+
* The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
258
|
+
* the image in the message content. Set `purpose="vision"` when uploading the File
|
|
259
|
+
* if you need to later display the file content.
|
|
260
260
|
*/
|
|
261
261
|
file_id: string;
|
|
262
262
|
|
|
@@ -268,8 +268,9 @@ export interface ImageFile {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
* References an image
|
|
272
|
-
* in the
|
|
271
|
+
* References an image
|
|
272
|
+
* [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
273
|
+
* content of a message.
|
|
273
274
|
*/
|
|
274
275
|
export interface ImageFileContentBlock {
|
|
275
276
|
image_file: ImageFile;
|
|
@@ -288,16 +289,17 @@ export interface ImageFileDelta {
|
|
|
288
289
|
detail?: 'auto' | 'low' | 'high';
|
|
289
290
|
|
|
290
291
|
/**
|
|
291
|
-
* The [File](https://
|
|
292
|
-
* in the message content. Set `purpose="vision"` when uploading the File
|
|
293
|
-
* need to later display the file content.
|
|
292
|
+
* The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
293
|
+
* the image in the message content. Set `purpose="vision"` when uploading the File
|
|
294
|
+
* if you need to later display the file content.
|
|
294
295
|
*/
|
|
295
296
|
file_id?: string;
|
|
296
297
|
}
|
|
297
298
|
|
|
298
299
|
/**
|
|
299
|
-
* References an image
|
|
300
|
-
* in the
|
|
300
|
+
* References an image
|
|
301
|
+
* [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
302
|
+
* content of a message.
|
|
301
303
|
*/
|
|
302
304
|
export interface ImageFileDeltaBlock {
|
|
303
305
|
/**
|
|
@@ -372,7 +374,7 @@ export interface ImageURLDeltaBlock {
|
|
|
372
374
|
|
|
373
375
|
/**
|
|
374
376
|
* Represents a message within a
|
|
375
|
-
* [thread](https://
|
|
377
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration).
|
|
376
378
|
*/
|
|
377
379
|
export interface Message {
|
|
378
380
|
/**
|
|
@@ -382,7 +384,7 @@ export interface Message {
|
|
|
382
384
|
|
|
383
385
|
/**
|
|
384
386
|
* If applicable, the ID of the
|
|
385
|
-
* [assistant](https://
|
|
387
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration) that
|
|
386
388
|
* authored this message.
|
|
387
389
|
*/
|
|
388
390
|
assistant_id: string | null;
|
|
@@ -438,7 +440,7 @@ export interface Message {
|
|
|
438
440
|
role: 'user' | 'assistant';
|
|
439
441
|
|
|
440
442
|
/**
|
|
441
|
-
* The ID of the [run](https://
|
|
443
|
+
* The ID of the [run](https://developers.openai.com/api/docs/assistants/migration)
|
|
442
444
|
* associated with the creation of this message. Value is `null` when messages are
|
|
443
445
|
* created manually using the create message or create thread endpoints.
|
|
444
446
|
*/
|
|
@@ -451,8 +453,8 @@ export interface Message {
|
|
|
451
453
|
status: 'in_progress' | 'incomplete' | 'completed';
|
|
452
454
|
|
|
453
455
|
/**
|
|
454
|
-
* The [thread](https://
|
|
455
|
-
* this message belongs to.
|
|
456
|
+
* The [thread](https://developers.openai.com/api/docs/assistants/migration) ID
|
|
457
|
+
* that this message belongs to.
|
|
456
458
|
*/
|
|
457
459
|
thread_id: string;
|
|
458
460
|
}
|
|
@@ -491,8 +493,9 @@ export namespace Message {
|
|
|
491
493
|
}
|
|
492
494
|
|
|
493
495
|
/**
|
|
494
|
-
* References an image
|
|
495
|
-
* in the
|
|
496
|
+
* References an image
|
|
497
|
+
* [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
498
|
+
* content of a message.
|
|
496
499
|
*/
|
|
497
500
|
export type MessageContent =
|
|
498
501
|
| ImageFileContentBlock
|
|
@@ -501,8 +504,9 @@ export type MessageContent =
|
|
|
501
504
|
| RefusalContentBlock;
|
|
502
505
|
|
|
503
506
|
/**
|
|
504
|
-
* References an image
|
|
505
|
-
* in the
|
|
507
|
+
* References an image
|
|
508
|
+
* [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
509
|
+
* content of a message.
|
|
506
510
|
*/
|
|
507
511
|
export type MessageContentDelta =
|
|
508
512
|
| ImageFileDeltaBlock
|
|
@@ -511,8 +515,9 @@ export type MessageContentDelta =
|
|
|
511
515
|
| ImageURLDeltaBlock;
|
|
512
516
|
|
|
513
517
|
/**
|
|
514
|
-
* References an image
|
|
515
|
-
* in the
|
|
518
|
+
* References an image
|
|
519
|
+
* [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
520
|
+
* content of a message.
|
|
516
521
|
*/
|
|
517
522
|
export type MessageContentPartParam = ImageFileContentBlock | ImageURLContentBlock | TextContentBlockParam;
|
|
518
523
|
|
|
@@ -708,8 +713,9 @@ export namespace MessageCreateParams {
|
|
|
708
713
|
|
|
709
714
|
export interface MessageRetrieveParams {
|
|
710
715
|
/**
|
|
711
|
-
* The ID of the
|
|
712
|
-
* to which
|
|
716
|
+
* The ID of the
|
|
717
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration) to which
|
|
718
|
+
* this message belongs.
|
|
713
719
|
*/
|
|
714
720
|
thread_id: string;
|
|
715
721
|
}
|
|
@@ -266,7 +266,7 @@ export interface RequiredActionFunctionToolCall {
|
|
|
266
266
|
/**
|
|
267
267
|
* The ID of the tool call. This ID must be referenced when you submit the tool
|
|
268
268
|
* outputs in using the
|
|
269
|
-
* [Submit tool outputs to run](https://
|
|
269
|
+
* [Submit tool outputs to run](https://developers.openai.com/api/docs/assistants/migration)
|
|
270
270
|
* endpoint.
|
|
271
271
|
*/
|
|
272
272
|
id: string;
|
|
@@ -302,7 +302,7 @@ export namespace RequiredActionFunctionToolCall {
|
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* Represents an execution run on a
|
|
305
|
-
* [thread](https://
|
|
305
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration).
|
|
306
306
|
*/
|
|
307
307
|
export interface Run {
|
|
308
308
|
/**
|
|
@@ -312,8 +312,8 @@ export interface Run {
|
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
314
|
* The ID of the
|
|
315
|
-
* [assistant](https://
|
|
316
|
-
* execution of this run.
|
|
315
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
316
|
+
* for execution of this run.
|
|
317
317
|
*/
|
|
318
318
|
assistant_id: string;
|
|
319
319
|
|
|
@@ -350,8 +350,8 @@ export interface Run {
|
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
352
|
* The instructions that the
|
|
353
|
-
* [assistant](https://
|
|
354
|
-
* this run.
|
|
353
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
354
|
+
* for this run.
|
|
355
355
|
*/
|
|
356
356
|
instructions: string;
|
|
357
357
|
|
|
@@ -384,8 +384,8 @@ export interface Run {
|
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* The model that the
|
|
387
|
-
* [assistant](https://
|
|
388
|
-
* this run.
|
|
387
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
388
|
+
* for this run.
|
|
389
389
|
*/
|
|
390
390
|
model: string;
|
|
391
391
|
|
|
@@ -396,7 +396,7 @@ export interface Run {
|
|
|
396
396
|
|
|
397
397
|
/**
|
|
398
398
|
* Whether to enable
|
|
399
|
-
* [parallel function calling](https://
|
|
399
|
+
* [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
400
400
|
* during tool use.
|
|
401
401
|
*/
|
|
402
402
|
parallel_tool_calls: boolean;
|
|
@@ -409,14 +409,14 @@ export interface Run {
|
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
411
|
* Specifies the format that the model must output. Compatible with
|
|
412
|
-
* [GPT-4o](https://
|
|
413
|
-
* [GPT-4 Turbo](https://
|
|
414
|
-
*
|
|
412
|
+
* [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o),
|
|
413
|
+
* [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and
|
|
414
|
+
* all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
415
415
|
*
|
|
416
416
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
417
417
|
* Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
418
418
|
* in the
|
|
419
|
-
* [Structured Outputs guide](https://
|
|
419
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
420
420
|
*
|
|
421
421
|
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
|
|
422
422
|
* message the model generates is valid JSON.
|
|
@@ -444,8 +444,9 @@ export interface Run {
|
|
|
444
444
|
status: RunStatus;
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
|
-
* The ID of the
|
|
448
|
-
* that was
|
|
447
|
+
* The ID of the
|
|
448
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
449
|
+
* executed on as a part of this run.
|
|
449
450
|
*/
|
|
450
451
|
thread_id: string;
|
|
451
452
|
|
|
@@ -462,8 +463,8 @@ export interface Run {
|
|
|
462
463
|
|
|
463
464
|
/**
|
|
464
465
|
* The list of tools that the
|
|
465
|
-
* [assistant](https://
|
|
466
|
-
* this run.
|
|
466
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration) used
|
|
467
|
+
* for this run.
|
|
467
468
|
*/
|
|
468
469
|
tools: Array<AssistantsAPI.AssistantTool>;
|
|
469
470
|
|
|
@@ -609,8 +610,8 @@ export type RunCreateParams = RunCreateParamsNonStreaming | RunCreateParamsStrea
|
|
|
609
610
|
export interface RunCreateParamsBase {
|
|
610
611
|
/**
|
|
611
612
|
* Body param: The ID of the
|
|
612
|
-
* [assistant](https://
|
|
613
|
-
* execute this run.
|
|
613
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration) to use
|
|
614
|
+
* to execute this run.
|
|
614
615
|
*/
|
|
615
616
|
assistant_id: string;
|
|
616
617
|
|
|
@@ -621,7 +622,7 @@ export interface RunCreateParamsBase {
|
|
|
621
622
|
* search result content.
|
|
622
623
|
*
|
|
623
624
|
* See the
|
|
624
|
-
* [file search tool documentation](https://
|
|
625
|
+
* [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
625
626
|
* for more information.
|
|
626
627
|
*/
|
|
627
628
|
include?: Array<StepsAPI.RunStepInclude>;
|
|
@@ -640,8 +641,8 @@ export interface RunCreateParamsBase {
|
|
|
640
641
|
|
|
641
642
|
/**
|
|
642
643
|
* Body param: Overrides the
|
|
643
|
-
* [instructions](https://
|
|
644
|
-
*
|
|
644
|
+
* [instructions](https://developers.openai.com/api/docs/assistants/migration) of
|
|
645
|
+
* the assistant. This is useful for modifying the behavior on a per-run basis.
|
|
645
646
|
*/
|
|
646
647
|
instructions?: string | null;
|
|
647
648
|
|
|
@@ -675,8 +676,8 @@ export interface RunCreateParamsBase {
|
|
|
675
676
|
|
|
676
677
|
/**
|
|
677
678
|
* Body param: The ID of the
|
|
678
|
-
* [Model](https://
|
|
679
|
-
* execute this run. If a value is provided here, it will override the model
|
|
679
|
+
* [Model](https://developers.openai.com/api/reference/resources/models) to be used
|
|
680
|
+
* to execute this run. If a value is provided here, it will override the model
|
|
680
681
|
* associated with the assistant. If not, the model associated with the assistant
|
|
681
682
|
* will be used.
|
|
682
683
|
*/
|
|
@@ -684,7 +685,7 @@ export interface RunCreateParamsBase {
|
|
|
684
685
|
|
|
685
686
|
/**
|
|
686
687
|
* Body param: Whether to enable
|
|
687
|
-
* [parallel function calling](https://
|
|
688
|
+
* [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
688
689
|
* during tool use.
|
|
689
690
|
*/
|
|
690
691
|
parallel_tool_calls?: boolean;
|
|
@@ -694,21 +695,22 @@ export interface RunCreateParamsBase {
|
|
|
694
695
|
* supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and
|
|
695
696
|
* `max`. Reducing reasoning effort can result in faster responses and fewer tokens
|
|
696
697
|
* used on reasoning in a response. Not all reasoning models support every value.
|
|
697
|
-
* See the
|
|
698
|
+
* See the
|
|
699
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
698
700
|
* model-specific support.
|
|
699
701
|
*/
|
|
700
702
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
701
703
|
|
|
702
704
|
/**
|
|
703
705
|
* Body param: Specifies the format that the model must output. Compatible with
|
|
704
|
-
* [GPT-4o](https://
|
|
705
|
-
* [GPT-4 Turbo](https://
|
|
706
|
-
*
|
|
706
|
+
* [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o),
|
|
707
|
+
* [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and
|
|
708
|
+
* all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
|
|
707
709
|
*
|
|
708
710
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
709
711
|
* Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
710
712
|
* in the
|
|
711
|
-
* [Structured Outputs guide](https://
|
|
713
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
712
714
|
*
|
|
713
715
|
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the
|
|
714
716
|
* message the model generates is valid JSON.
|
|
@@ -872,8 +874,9 @@ export interface RunCreateParamsStreaming extends RunCreateParamsBase {
|
|
|
872
874
|
|
|
873
875
|
export interface RunRetrieveParams {
|
|
874
876
|
/**
|
|
875
|
-
* The ID of the
|
|
876
|
-
* that was
|
|
877
|
+
* The ID of the
|
|
878
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
879
|
+
* run.
|
|
877
880
|
*/
|
|
878
881
|
thread_id: string;
|
|
879
882
|
}
|
|
@@ -881,7 +884,8 @@ export interface RunRetrieveParams {
|
|
|
881
884
|
export interface RunUpdateParams {
|
|
882
885
|
/**
|
|
883
886
|
* Path param: The ID of the
|
|
884
|
-
* [thread](https://
|
|
887
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
888
|
+
* run.
|
|
885
889
|
*/
|
|
886
890
|
thread_id: string;
|
|
887
891
|
|
|
@@ -932,8 +936,8 @@ export type RunSubmitToolOutputsParams =
|
|
|
932
936
|
export interface RunSubmitToolOutputsParamsBase {
|
|
933
937
|
/**
|
|
934
938
|
* Path param: The ID of the
|
|
935
|
-
* [thread](https://
|
|
936
|
-
* run belongs.
|
|
939
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration) to which
|
|
940
|
+
* this run belongs.
|
|
937
941
|
*/
|
|
938
942
|
thread_id: string;
|
|
939
943
|
|
|
@@ -85,8 +85,8 @@ export interface CodeInterpreterOutputImage {
|
|
|
85
85
|
export namespace CodeInterpreterOutputImage {
|
|
86
86
|
export interface Image {
|
|
87
87
|
/**
|
|
88
|
-
* The [file](https://
|
|
89
|
-
* image.
|
|
88
|
+
* The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
89
|
+
* the image.
|
|
90
90
|
*/
|
|
91
91
|
file_id?: string;
|
|
92
92
|
}
|
|
@@ -159,8 +159,8 @@ export namespace CodeInterpreterToolCall {
|
|
|
159
159
|
export namespace Image {
|
|
160
160
|
export interface Image {
|
|
161
161
|
/**
|
|
162
|
-
* The [file](https://
|
|
163
|
-
* image.
|
|
162
|
+
* The [file](https://developers.openai.com/api/reference/resources/files) ID of
|
|
163
|
+
* the image.
|
|
164
164
|
*/
|
|
165
165
|
file_id: string;
|
|
166
166
|
}
|
|
@@ -366,8 +366,7 @@ export namespace FunctionToolCall {
|
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
* The output of the function. This will be `null` if the outputs have not been
|
|
369
|
-
* [submitted](https://
|
|
370
|
-
* yet.
|
|
369
|
+
* [submitted](https://developers.openai.com/api/docs/assistants/migration) yet.
|
|
371
370
|
*/
|
|
372
371
|
output: string | null;
|
|
373
372
|
}
|
|
@@ -413,8 +412,7 @@ export namespace FunctionToolCallDelta {
|
|
|
413
412
|
|
|
414
413
|
/**
|
|
415
414
|
* The output of the function. This will be `null` if the outputs have not been
|
|
416
|
-
* [submitted](https://
|
|
417
|
-
* yet.
|
|
415
|
+
* [submitted](https://developers.openai.com/api/docs/assistants/migration) yet.
|
|
418
416
|
*/
|
|
419
417
|
output?: string | null;
|
|
420
418
|
}
|
|
@@ -452,7 +450,7 @@ export interface RunStep {
|
|
|
452
450
|
|
|
453
451
|
/**
|
|
454
452
|
* The ID of the
|
|
455
|
-
* [assistant](https://
|
|
453
|
+
* [assistant](https://developers.openai.com/api/docs/assistants/migration)
|
|
456
454
|
* associated with the run step.
|
|
457
455
|
*/
|
|
458
456
|
assistant_id: string;
|
|
@@ -505,8 +503,8 @@ export interface RunStep {
|
|
|
505
503
|
object: 'thread.run.step';
|
|
506
504
|
|
|
507
505
|
/**
|
|
508
|
-
* The ID of the [run](https://
|
|
509
|
-
* this run step is a part of.
|
|
506
|
+
* The ID of the [run](https://developers.openai.com/api/docs/assistants/migration)
|
|
507
|
+
* that this run step is a part of.
|
|
510
508
|
*/
|
|
511
509
|
run_id: string;
|
|
512
510
|
|
|
@@ -522,8 +520,9 @@ export interface RunStep {
|
|
|
522
520
|
step_details: MessageCreationStepDetails | ToolCallsStepDetails;
|
|
523
521
|
|
|
524
522
|
/**
|
|
525
|
-
* The ID of the
|
|
526
|
-
* that was
|
|
523
|
+
* The ID of the
|
|
524
|
+
* [thread](https://developers.openai.com/api/docs/assistants/migration) that was
|
|
525
|
+
* run.
|
|
527
526
|
*/
|
|
528
527
|
thread_id: string;
|
|
529
528
|
|
|
@@ -694,7 +693,7 @@ export interface StepRetrieveParams {
|
|
|
694
693
|
* search result content.
|
|
695
694
|
*
|
|
696
695
|
* See the
|
|
697
|
-
* [file search tool documentation](https://
|
|
696
|
+
* [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
698
697
|
* for more information.
|
|
699
698
|
*/
|
|
700
699
|
include?: Array<RunStepInclude>;
|
|
@@ -721,7 +720,7 @@ export interface StepListParams extends CursorPageParams {
|
|
|
721
720
|
* search result content.
|
|
722
721
|
*
|
|
723
722
|
* See the
|
|
724
|
-
* [file search tool documentation](https://
|
|
723
|
+
* [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization)
|
|
725
724
|
* for more information.
|
|
726
725
|
*/
|
|
727
726
|
include?: Array<RunStepInclude>;
|