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
|
@@ -309,7 +309,7 @@ export namespace CreateEvalCompletionsRunDataSource {
|
|
|
309
309
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
310
310
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
311
311
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
312
|
-
* [reasoning guide](https://
|
|
312
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
313
313
|
* model-specific support.
|
|
314
314
|
*/
|
|
315
315
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -320,7 +320,7 @@ export namespace CreateEvalCompletionsRunDataSource {
|
|
|
320
320
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
321
321
|
* Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
322
322
|
* in the
|
|
323
|
-
* [Structured Outputs guide](https://
|
|
323
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
324
324
|
*
|
|
325
325
|
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
326
326
|
* ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
@@ -611,7 +611,7 @@ export namespace RunCreateResponse {
|
|
|
611
611
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
612
612
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
613
613
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
614
|
-
* [reasoning guide](https://
|
|
614
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
615
615
|
* model-specific support.
|
|
616
616
|
*/
|
|
617
617
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -757,7 +757,7 @@ export namespace RunCreateResponse {
|
|
|
757
757
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
758
758
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
759
759
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
760
|
-
* [reasoning guide](https://
|
|
760
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
761
761
|
* model-specific support.
|
|
762
762
|
*/
|
|
763
763
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -776,8 +776,8 @@ export namespace RunCreateResponse {
|
|
|
776
776
|
* Configuration options for a text response from the model. Can be plain text or
|
|
777
777
|
* structured JSON data. Learn more:
|
|
778
778
|
*
|
|
779
|
-
* - [Text inputs and outputs](https://
|
|
780
|
-
* - [Structured Outputs](https://
|
|
779
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
780
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
781
781
|
*/
|
|
782
782
|
text?: SamplingParams.Text;
|
|
783
783
|
|
|
@@ -789,13 +789,14 @@ export namespace RunCreateResponse {
|
|
|
789
789
|
*
|
|
790
790
|
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
791
791
|
* capabilities, like
|
|
792
|
-
* [web search](https://
|
|
793
|
-
*
|
|
792
|
+
* [web search](https://developers.openai.com/api/docs/guides/tools-web-search)
|
|
793
|
+
* or
|
|
794
|
+
* [file search](https://developers.openai.com/api/docs/guides/tools-file-search).
|
|
794
795
|
* Learn more about
|
|
795
|
-
* [built-in tools](https://
|
|
796
|
+
* [built-in tools](https://developers.openai.com/api/docs/guides/tools).
|
|
796
797
|
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
797
798
|
* the model to call your own code. Learn more about
|
|
798
|
-
* [function calling](https://
|
|
799
|
+
* [function calling](https://developers.openai.com/api/docs/guides/function-calling).
|
|
799
800
|
*/
|
|
800
801
|
tools?: Array<ResponsesAPI.Tool>;
|
|
801
802
|
|
|
@@ -810,8 +811,8 @@ export namespace RunCreateResponse {
|
|
|
810
811
|
* Configuration options for a text response from the model. Can be plain text or
|
|
811
812
|
* structured JSON data. Learn more:
|
|
812
813
|
*
|
|
813
|
-
* - [Text inputs and outputs](https://
|
|
814
|
-
* - [Structured Outputs](https://
|
|
814
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
815
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
815
816
|
*/
|
|
816
817
|
export interface Text {
|
|
817
818
|
/**
|
|
@@ -819,7 +820,7 @@ export namespace RunCreateResponse {
|
|
|
819
820
|
*
|
|
820
821
|
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
821
822
|
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
822
|
-
* [Structured Outputs guide](https://
|
|
823
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
823
824
|
*
|
|
824
825
|
* The default format is `{ "type": "text" }` with no additional options.
|
|
825
826
|
*
|
|
@@ -1100,7 +1101,7 @@ export namespace RunRetrieveResponse {
|
|
|
1100
1101
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1101
1102
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1102
1103
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1103
|
-
* [reasoning guide](https://
|
|
1104
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
1104
1105
|
* model-specific support.
|
|
1105
1106
|
*/
|
|
1106
1107
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -1246,7 +1247,7 @@ export namespace RunRetrieveResponse {
|
|
|
1246
1247
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1247
1248
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1248
1249
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1249
|
-
* [reasoning guide](https://
|
|
1250
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
1250
1251
|
* model-specific support.
|
|
1251
1252
|
*/
|
|
1252
1253
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -1265,8 +1266,8 @@ export namespace RunRetrieveResponse {
|
|
|
1265
1266
|
* Configuration options for a text response from the model. Can be plain text or
|
|
1266
1267
|
* structured JSON data. Learn more:
|
|
1267
1268
|
*
|
|
1268
|
-
* - [Text inputs and outputs](https://
|
|
1269
|
-
* - [Structured Outputs](https://
|
|
1269
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
1270
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
1270
1271
|
*/
|
|
1271
1272
|
text?: SamplingParams.Text;
|
|
1272
1273
|
|
|
@@ -1278,13 +1279,14 @@ export namespace RunRetrieveResponse {
|
|
|
1278
1279
|
*
|
|
1279
1280
|
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
1280
1281
|
* capabilities, like
|
|
1281
|
-
* [web search](https://
|
|
1282
|
-
*
|
|
1282
|
+
* [web search](https://developers.openai.com/api/docs/guides/tools-web-search)
|
|
1283
|
+
* or
|
|
1284
|
+
* [file search](https://developers.openai.com/api/docs/guides/tools-file-search).
|
|
1283
1285
|
* Learn more about
|
|
1284
|
-
* [built-in tools](https://
|
|
1286
|
+
* [built-in tools](https://developers.openai.com/api/docs/guides/tools).
|
|
1285
1287
|
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
1286
1288
|
* the model to call your own code. Learn more about
|
|
1287
|
-
* [function calling](https://
|
|
1289
|
+
* [function calling](https://developers.openai.com/api/docs/guides/function-calling).
|
|
1288
1290
|
*/
|
|
1289
1291
|
tools?: Array<ResponsesAPI.Tool>;
|
|
1290
1292
|
|
|
@@ -1299,8 +1301,8 @@ export namespace RunRetrieveResponse {
|
|
|
1299
1301
|
* Configuration options for a text response from the model. Can be plain text or
|
|
1300
1302
|
* structured JSON data. Learn more:
|
|
1301
1303
|
*
|
|
1302
|
-
* - [Text inputs and outputs](https://
|
|
1303
|
-
* - [Structured Outputs](https://
|
|
1304
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
1305
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
1304
1306
|
*/
|
|
1305
1307
|
export interface Text {
|
|
1306
1308
|
/**
|
|
@@ -1308,7 +1310,7 @@ export namespace RunRetrieveResponse {
|
|
|
1308
1310
|
*
|
|
1309
1311
|
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
1310
1312
|
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
1311
|
-
* [Structured Outputs guide](https://
|
|
1313
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
1312
1314
|
*
|
|
1313
1315
|
* The default format is `{ "type": "text" }` with no additional options.
|
|
1314
1316
|
*
|
|
@@ -1586,7 +1588,7 @@ export namespace RunListResponse {
|
|
|
1586
1588
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1587
1589
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1588
1590
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1589
|
-
* [reasoning guide](https://
|
|
1591
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
1590
1592
|
* model-specific support.
|
|
1591
1593
|
*/
|
|
1592
1594
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -1732,7 +1734,7 @@ export namespace RunListResponse {
|
|
|
1732
1734
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1733
1735
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1734
1736
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1735
|
-
* [reasoning guide](https://
|
|
1737
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
1736
1738
|
* model-specific support.
|
|
1737
1739
|
*/
|
|
1738
1740
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -1751,8 +1753,8 @@ export namespace RunListResponse {
|
|
|
1751
1753
|
* Configuration options for a text response from the model. Can be plain text or
|
|
1752
1754
|
* structured JSON data. Learn more:
|
|
1753
1755
|
*
|
|
1754
|
-
* - [Text inputs and outputs](https://
|
|
1755
|
-
* - [Structured Outputs](https://
|
|
1756
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
1757
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
1756
1758
|
*/
|
|
1757
1759
|
text?: SamplingParams.Text;
|
|
1758
1760
|
|
|
@@ -1764,13 +1766,14 @@ export namespace RunListResponse {
|
|
|
1764
1766
|
*
|
|
1765
1767
|
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
1766
1768
|
* capabilities, like
|
|
1767
|
-
* [web search](https://
|
|
1768
|
-
*
|
|
1769
|
+
* [web search](https://developers.openai.com/api/docs/guides/tools-web-search)
|
|
1770
|
+
* or
|
|
1771
|
+
* [file search](https://developers.openai.com/api/docs/guides/tools-file-search).
|
|
1769
1772
|
* Learn more about
|
|
1770
|
-
* [built-in tools](https://
|
|
1773
|
+
* [built-in tools](https://developers.openai.com/api/docs/guides/tools).
|
|
1771
1774
|
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
1772
1775
|
* the model to call your own code. Learn more about
|
|
1773
|
-
* [function calling](https://
|
|
1776
|
+
* [function calling](https://developers.openai.com/api/docs/guides/function-calling).
|
|
1774
1777
|
*/
|
|
1775
1778
|
tools?: Array<ResponsesAPI.Tool>;
|
|
1776
1779
|
|
|
@@ -1785,8 +1788,8 @@ export namespace RunListResponse {
|
|
|
1785
1788
|
* Configuration options for a text response from the model. Can be plain text or
|
|
1786
1789
|
* structured JSON data. Learn more:
|
|
1787
1790
|
*
|
|
1788
|
-
* - [Text inputs and outputs](https://
|
|
1789
|
-
* - [Structured Outputs](https://
|
|
1791
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
1792
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
1790
1793
|
*/
|
|
1791
1794
|
export interface Text {
|
|
1792
1795
|
/**
|
|
@@ -1794,7 +1797,7 @@ export namespace RunListResponse {
|
|
|
1794
1797
|
*
|
|
1795
1798
|
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
1796
1799
|
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
1797
|
-
* [Structured Outputs guide](https://
|
|
1800
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
1798
1801
|
*
|
|
1799
1802
|
* The default format is `{ "type": "text" }` with no additional options.
|
|
1800
1803
|
*
|
|
@@ -2083,7 +2086,7 @@ export namespace RunCancelResponse {
|
|
|
2083
2086
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2084
2087
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2085
2088
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2086
|
-
* [reasoning guide](https://
|
|
2089
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
2087
2090
|
* model-specific support.
|
|
2088
2091
|
*/
|
|
2089
2092
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -2229,7 +2232,7 @@ export namespace RunCancelResponse {
|
|
|
2229
2232
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2230
2233
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2231
2234
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2232
|
-
* [reasoning guide](https://
|
|
2235
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
2233
2236
|
* model-specific support.
|
|
2234
2237
|
*/
|
|
2235
2238
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -2248,8 +2251,8 @@ export namespace RunCancelResponse {
|
|
|
2248
2251
|
* Configuration options for a text response from the model. Can be plain text or
|
|
2249
2252
|
* structured JSON data. Learn more:
|
|
2250
2253
|
*
|
|
2251
|
-
* - [Text inputs and outputs](https://
|
|
2252
|
-
* - [Structured Outputs](https://
|
|
2254
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
2255
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
2253
2256
|
*/
|
|
2254
2257
|
text?: SamplingParams.Text;
|
|
2255
2258
|
|
|
@@ -2261,13 +2264,14 @@ export namespace RunCancelResponse {
|
|
|
2261
2264
|
*
|
|
2262
2265
|
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
2263
2266
|
* capabilities, like
|
|
2264
|
-
* [web search](https://
|
|
2265
|
-
*
|
|
2267
|
+
* [web search](https://developers.openai.com/api/docs/guides/tools-web-search)
|
|
2268
|
+
* or
|
|
2269
|
+
* [file search](https://developers.openai.com/api/docs/guides/tools-file-search).
|
|
2266
2270
|
* Learn more about
|
|
2267
|
-
* [built-in tools](https://
|
|
2271
|
+
* [built-in tools](https://developers.openai.com/api/docs/guides/tools).
|
|
2268
2272
|
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
2269
2273
|
* the model to call your own code. Learn more about
|
|
2270
|
-
* [function calling](https://
|
|
2274
|
+
* [function calling](https://developers.openai.com/api/docs/guides/function-calling).
|
|
2271
2275
|
*/
|
|
2272
2276
|
tools?: Array<ResponsesAPI.Tool>;
|
|
2273
2277
|
|
|
@@ -2282,8 +2286,8 @@ export namespace RunCancelResponse {
|
|
|
2282
2286
|
* Configuration options for a text response from the model. Can be plain text or
|
|
2283
2287
|
* structured JSON data. Learn more:
|
|
2284
2288
|
*
|
|
2285
|
-
* - [Text inputs and outputs](https://
|
|
2286
|
-
* - [Structured Outputs](https://
|
|
2289
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
2290
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
2287
2291
|
*/
|
|
2288
2292
|
export interface Text {
|
|
2289
2293
|
/**
|
|
@@ -2291,7 +2295,7 @@ export namespace RunCancelResponse {
|
|
|
2291
2295
|
*
|
|
2292
2296
|
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
2293
2297
|
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
2294
|
-
* [Structured Outputs guide](https://
|
|
2298
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
2295
2299
|
*
|
|
2296
2300
|
* The default format is `{ "type": "text" }` with no additional options.
|
|
2297
2301
|
*
|
|
@@ -2519,7 +2523,7 @@ export namespace RunCreateParams {
|
|
|
2519
2523
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2520
2524
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2521
2525
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2522
|
-
* [reasoning guide](https://
|
|
2526
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
2523
2527
|
* model-specific support.
|
|
2524
2528
|
*/
|
|
2525
2529
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -2665,7 +2669,7 @@ export namespace RunCreateParams {
|
|
|
2665
2669
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2666
2670
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2667
2671
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2668
|
-
* [reasoning guide](https://
|
|
2672
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
2669
2673
|
* model-specific support.
|
|
2670
2674
|
*/
|
|
2671
2675
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
@@ -2684,8 +2688,8 @@ export namespace RunCreateParams {
|
|
|
2684
2688
|
* Configuration options for a text response from the model. Can be plain text or
|
|
2685
2689
|
* structured JSON data. Learn more:
|
|
2686
2690
|
*
|
|
2687
|
-
* - [Text inputs and outputs](https://
|
|
2688
|
-
* - [Structured Outputs](https://
|
|
2691
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
2692
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
2689
2693
|
*/
|
|
2690
2694
|
text?: SamplingParams.Text;
|
|
2691
2695
|
|
|
@@ -2697,13 +2701,14 @@ export namespace RunCreateParams {
|
|
|
2697
2701
|
*
|
|
2698
2702
|
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
2699
2703
|
* capabilities, like
|
|
2700
|
-
* [web search](https://
|
|
2701
|
-
*
|
|
2704
|
+
* [web search](https://developers.openai.com/api/docs/guides/tools-web-search)
|
|
2705
|
+
* or
|
|
2706
|
+
* [file search](https://developers.openai.com/api/docs/guides/tools-file-search).
|
|
2702
2707
|
* Learn more about
|
|
2703
|
-
* [built-in tools](https://
|
|
2708
|
+
* [built-in tools](https://developers.openai.com/api/docs/guides/tools).
|
|
2704
2709
|
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
2705
2710
|
* the model to call your own code. Learn more about
|
|
2706
|
-
* [function calling](https://
|
|
2711
|
+
* [function calling](https://developers.openai.com/api/docs/guides/function-calling).
|
|
2707
2712
|
*/
|
|
2708
2713
|
tools?: Array<ResponsesAPI.Tool>;
|
|
2709
2714
|
|
|
@@ -2718,8 +2723,8 @@ export namespace RunCreateParams {
|
|
|
2718
2723
|
* Configuration options for a text response from the model. Can be plain text or
|
|
2719
2724
|
* structured JSON data. Learn more:
|
|
2720
2725
|
*
|
|
2721
|
-
* - [Text inputs and outputs](https://
|
|
2722
|
-
* - [Structured Outputs](https://
|
|
2726
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
2727
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
2723
2728
|
*/
|
|
2724
2729
|
export interface Text {
|
|
2725
2730
|
/**
|
|
@@ -2727,7 +2732,7 @@ export namespace RunCreateParams {
|
|
|
2727
2732
|
*
|
|
2728
2733
|
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
2729
2734
|
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
2730
|
-
* [Structured Outputs guide](https://
|
|
2735
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
2731
2736
|
*
|
|
2732
2737
|
* The default format is `{ "type": "text" }` with no additional options.
|
|
2733
2738
|
*
|
package/src/resources/files.ts
CHANGED
|
@@ -22,20 +22,20 @@ export class Files extends APIResource {
|
|
|
22
22
|
*
|
|
23
23
|
* - The Assistants API supports files up to 2 million tokens and of specific file
|
|
24
24
|
* types. See the
|
|
25
|
-
* [Assistants Tools guide](https://
|
|
25
|
+
* [Assistants Tools guide](https://developers.openai.com/api/docs/guides/tools)
|
|
26
26
|
* for details.
|
|
27
27
|
* - The Fine-tuning API only supports `.jsonl` files. The input also has certain
|
|
28
28
|
* required formats for fine-tuning
|
|
29
|
-
* [chat](https://
|
|
29
|
+
* [chat](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#formatting-your-data)
|
|
30
30
|
* or
|
|
31
|
-
* [completions](https://
|
|
31
|
+
* [completions](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#formatting-your-data)
|
|
32
32
|
* models.
|
|
33
33
|
* - The Batch API only supports `.jsonl` files up to 200 MB in size. The input
|
|
34
34
|
* also has a specific required
|
|
35
|
-
* [format](https://
|
|
35
|
+
* [format](https://developers.openai.com/api/docs/guides/batch#1-prepare-your-batch-file).
|
|
36
36
|
* - For Retrieval or `file_search` ingestion, upload files here first. If you need
|
|
37
37
|
* to attach multiple uploaded files to the same vector store, use
|
|
38
|
-
* [`/vector_stores/{vector_store_id}/file_batches`](https://
|
|
38
|
+
* [`/vector_stores/{vector_store_id}/file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create)
|
|
39
39
|
* instead of attaching them one by one. Vector store attachment has separate
|
|
40
40
|
* limits from file upload, including 2,000 attached files per minute per
|
|
41
41
|
* organization.
|
|
@@ -146,16 +146,17 @@ export interface GraderRunParams {
|
|
|
146
146
|
/**
|
|
147
147
|
* The model sample to be evaluated. This value will be used to populate the
|
|
148
148
|
* `sample` namespace. See
|
|
149
|
-
* [the guide](https://
|
|
150
|
-
* The `output_json` variable will be populated if the model sample is a
|
|
151
|
-
* string.
|
|
149
|
+
* [the guide](https://developers.openai.com/api/docs/guides/graders) for more
|
|
150
|
+
* details. The `output_json` variable will be populated if the model sample is a
|
|
151
|
+
* valid JSON string.
|
|
152
152
|
*/
|
|
153
153
|
model_sample: string;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* The dataset item provided to the grader. This will be used to populate the
|
|
157
157
|
* `item` namespace. See
|
|
158
|
-
* [the guide](https://
|
|
158
|
+
* [the guide](https://developers.openai.com/api/docs/guides/graders) for more
|
|
159
|
+
* details.
|
|
159
160
|
*/
|
|
160
161
|
item?: unknown;
|
|
161
162
|
}
|
|
@@ -16,7 +16,8 @@ import { path } from '../../../internal/utils/path';
|
|
|
16
16
|
*/
|
|
17
17
|
export class Permissions extends APIResource {
|
|
18
18
|
/**
|
|
19
|
-
* **NOTE:** Calling this endpoint requires an
|
|
19
|
+
* **NOTE:** Calling this endpoint requires an
|
|
20
|
+
* [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).
|
|
20
21
|
*
|
|
21
22
|
* This enables organization owners to share fine-tuned models with other projects
|
|
22
23
|
* in their organization.
|
|
@@ -45,7 +46,8 @@ export class Permissions extends APIResource {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
|
-
* **NOTE:** This endpoint requires an
|
|
49
|
+
* **NOTE:** This endpoint requires an
|
|
50
|
+
* [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).
|
|
49
51
|
*
|
|
50
52
|
* Organization owners can use this endpoint to view all permissions for a
|
|
51
53
|
* fine-tuned model checkpoint.
|
|
@@ -65,7 +67,8 @@ export class Permissions extends APIResource {
|
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
/**
|
|
68
|
-
* **NOTE:** This endpoint requires an
|
|
70
|
+
* **NOTE:** This endpoint requires an
|
|
71
|
+
* [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).
|
|
69
72
|
*
|
|
70
73
|
* Organization owners can use this endpoint to view all permissions for a
|
|
71
74
|
* fine-tuned model checkpoint.
|
|
@@ -93,7 +96,8 @@ export class Permissions extends APIResource {
|
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
/**
|
|
96
|
-
* **NOTE:** This endpoint requires an
|
|
99
|
+
* **NOTE:** This endpoint requires an
|
|
100
|
+
* [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).
|
|
97
101
|
*
|
|
98
102
|
* Organization owners can use this endpoint to delete a permission for a
|
|
99
103
|
* fine-tuned model checkpoint.
|
|
@@ -28,7 +28,7 @@ export class Jobs extends APIResource {
|
|
|
28
28
|
* Response includes details of the enqueued job including job status and the name
|
|
29
29
|
* of the fine-tuned models once complete.
|
|
30
30
|
*
|
|
31
|
-
* [Learn more about fine-tuning](https://
|
|
31
|
+
* [Learn more about fine-tuning](https://developers.openai.com/api/docs/guides/model-optimization)
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
@@ -45,7 +45,7 @@ export class Jobs extends APIResource {
|
|
|
45
45
|
/**
|
|
46
46
|
* Get info about a fine-tuning job.
|
|
47
47
|
*
|
|
48
|
-
* [Learn more about fine-tuning](https://
|
|
48
|
+
* [Learn more about fine-tuning](https://developers.openai.com/api/docs/guides/model-optimization)
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* ```ts
|
|
@@ -221,7 +221,7 @@ export interface FineTuningJob {
|
|
|
221
221
|
/**
|
|
222
222
|
* The compiled results file ID(s) for the fine-tuning job. You can retrieve the
|
|
223
223
|
* results with the
|
|
224
|
-
* [Files API](https://
|
|
224
|
+
* [Files API](https://developers.openai.com/api/reference/resources/files/methods/content).
|
|
225
225
|
*/
|
|
226
226
|
result_files: Array<string>;
|
|
227
227
|
|
|
@@ -244,14 +244,14 @@ export interface FineTuningJob {
|
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* The file ID used for training. You can retrieve the training data with the
|
|
247
|
-
* [Files API](https://
|
|
247
|
+
* [Files API](https://developers.openai.com/api/reference/resources/files/methods/content).
|
|
248
248
|
*/
|
|
249
249
|
training_file: string;
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* The file ID used for validation. You can retrieve the validation results with
|
|
253
253
|
* the
|
|
254
|
-
* [Files API](https://
|
|
254
|
+
* [Files API](https://developers.openai.com/api/reference/resources/files/methods/content).
|
|
255
255
|
*/
|
|
256
256
|
validation_file: string | null;
|
|
257
257
|
|
|
@@ -448,28 +448,29 @@ export type FineTuningJobIntegration = FineTuningJobWandbIntegrationObject;
|
|
|
448
448
|
export interface JobCreateParams {
|
|
449
449
|
/**
|
|
450
450
|
* The name of the model to fine-tune. You can select one of the
|
|
451
|
-
* [supported models](https://
|
|
451
|
+
* [supported models](https://developers.openai.com/api/docs/guides/model-optimization#fine-tuning-methods).
|
|
452
452
|
*/
|
|
453
453
|
model: (string & {}) | 'babbage-002' | 'davinci-002' | 'gpt-3.5-turbo' | 'gpt-4o-mini';
|
|
454
454
|
|
|
455
455
|
/**
|
|
456
456
|
* The ID of an uploaded file that contains training data.
|
|
457
457
|
*
|
|
458
|
-
* See
|
|
458
|
+
* See
|
|
459
|
+
* [upload file](https://developers.openai.com/api/reference/resources/files/methods/create)
|
|
459
460
|
* for how to upload a file.
|
|
460
461
|
*
|
|
461
462
|
* Your dataset must be formatted as a JSONL file. Additionally, you must upload
|
|
462
463
|
* your file with the purpose `fine-tune`.
|
|
463
464
|
*
|
|
464
465
|
* The contents of the file should differ depending on if the model uses the
|
|
465
|
-
* [chat](https://
|
|
466
|
-
* [completions](https://
|
|
466
|
+
* [chat](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#formatting-your-data),
|
|
467
|
+
* [completions](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#formatting-your-data)
|
|
467
468
|
* format, or if the fine-tuning method uses the
|
|
468
|
-
* [preference](https://
|
|
469
|
+
* [preference](https://developers.openai.com/api/docs/guides/direct-preference-optimization)
|
|
469
470
|
* format.
|
|
470
471
|
*
|
|
471
472
|
* See the
|
|
472
|
-
* [fine-tuning guide](https://
|
|
473
|
+
* [fine-tuning guide](https://developers.openai.com/api/docs/guides/model-optimization)
|
|
473
474
|
* for more details.
|
|
474
475
|
*/
|
|
475
476
|
training_file: string;
|
|
@@ -529,7 +530,7 @@ export interface JobCreateParams {
|
|
|
529
530
|
* the purpose `fine-tune`.
|
|
530
531
|
*
|
|
531
532
|
* See the
|
|
532
|
-
* [fine-tuning guide](https://
|
|
533
|
+
* [fine-tuning guide](https://developers.openai.com/api/docs/guides/model-optimization)
|
|
533
534
|
* for more details.
|
|
534
535
|
*/
|
|
535
536
|
validation_file?: string | null;
|
|
@@ -335,7 +335,7 @@ export namespace ScoreModelGrader {
|
|
|
335
335
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
336
336
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
337
337
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
338
|
-
* [reasoning guide](https://
|
|
338
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
339
339
|
* model-specific support.
|
|
340
340
|
*/
|
|
341
341
|
reasoning_effort?: Shared.ReasoningEffort | null;
|