openai 6.35.0 → 6.37.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 +48 -0
- package/azure.d.mts +4 -1
- package/azure.d.mts.map +1 -1
- package/azure.d.ts +4 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +4 -3
- package/azure.js.map +1 -1
- package/azure.mjs +4 -3
- package/azure.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +7 -2
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +7 -2
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +5 -1
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +5 -1
- package/beta/realtime/ws.mjs.map +1 -1
- package/bin/migration-config.json +735 -0
- package/client.d.mts +30 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -8
- package/client.d.ts.map +1 -1
- package/client.js +78 -22
- package/client.js.map +1 -1
- package/client.mjs +78 -22
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +18 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +18 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +32 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +30 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +7 -2
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +7 -2
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +5 -1
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +5 -1
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/admin.d.mts +10 -0
- package/resources/admin/admin.d.mts.map +1 -0
- package/resources/admin/admin.d.ts +10 -0
- package/resources/admin/admin.d.ts.map +1 -0
- package/resources/admin/admin.js +17 -0
- package/resources/admin/admin.js.map +1 -0
- package/resources/admin/admin.mjs +12 -0
- package/resources/admin/admin.mjs.map +1 -0
- package/resources/admin/index.d.mts +3 -0
- package/resources/admin/index.d.mts.map +1 -0
- package/resources/admin/index.d.ts +3 -0
- package/resources/admin/index.d.ts.map +1 -0
- package/resources/admin/index.js +9 -0
- package/resources/admin/index.js.map +1 -0
- package/resources/admin/index.mjs +4 -0
- package/resources/admin/index.mjs.map +1 -0
- package/resources/admin/organization/admin-api-keys.d.mts +140 -0
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -0
- package/resources/admin/organization/admin-api-keys.d.ts +140 -0
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -0
- package/resources/admin/organization/admin-api-keys.js +81 -0
- package/resources/admin/organization/admin-api-keys.js.map +1 -0
- package/resources/admin/organization/admin-api-keys.mjs +77 -0
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -0
- package/resources/admin/organization/audit-logs.d.mts +1267 -0
- package/resources/admin/organization/audit-logs.d.mts.map +1 -0
- package/resources/admin/organization/audit-logs.d.ts +1267 -0
- package/resources/admin/organization/audit-logs.d.ts.map +1 -0
- package/resources/admin/organization/audit-logs.js +31 -0
- package/resources/admin/organization/audit-logs.js.map +1 -0
- package/resources/admin/organization/audit-logs.mjs +27 -0
- package/resources/admin/organization/audit-logs.mjs.map +1 -0
- package/resources/admin/organization/certificates.d.mts +322 -0
- package/resources/admin/organization/certificates.d.mts.map +1 -0
- package/resources/admin/organization/certificates.d.ts +322 -0
- package/resources/admin/organization/certificates.d.ts.map +1 -0
- package/resources/admin/organization/certificates.js +144 -0
- package/resources/admin/organization/certificates.js.map +1 -0
- package/resources/admin/organization/certificates.mjs +140 -0
- package/resources/admin/organization/certificates.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +148 -0
- package/resources/admin/organization/groups/groups.d.mts.map +1 -0
- package/resources/admin/organization/groups/groups.d.ts +148 -0
- package/resources/admin/organization/groups/groups.d.ts.map +1 -0
- package/resources/admin/organization/groups/groups.js +92 -0
- package/resources/admin/organization/groups/groups.js.map +1 -0
- package/resources/admin/organization/groups/groups.mjs +87 -0
- package/resources/admin/organization/groups/groups.mjs.map +1 -0
- package/resources/admin/organization/groups/index.d.mts +4 -0
- package/resources/admin/organization/groups/index.d.mts.map +1 -0
- package/resources/admin/organization/groups/index.d.ts +4 -0
- package/resources/admin/organization/groups/index.d.ts.map +1 -0
- package/resources/admin/organization/groups/index.js +11 -0
- package/resources/admin/organization/groups/index.js.map +1 -0
- package/resources/admin/organization/groups/index.mjs +5 -0
- package/resources/admin/organization/groups/index.mjs.map +1 -0
- package/resources/admin/organization/groups/roles.d.mts +182 -0
- package/resources/admin/organization/groups/roles.d.mts.map +1 -0
- package/resources/admin/organization/groups/roles.d.ts +182 -0
- package/resources/admin/organization/groups/roles.d.ts.map +1 -0
- package/resources/admin/organization/groups/roles.js +65 -0
- package/resources/admin/organization/groups/roles.js.map +1 -0
- package/resources/admin/organization/groups/roles.mjs +61 -0
- package/resources/admin/organization/groups/roles.mjs.map +1 -0
- package/resources/admin/organization/groups/users.d.mts +116 -0
- package/resources/admin/organization/groups/users.d.mts.map +1 -0
- package/resources/admin/organization/groups/users.d.ts +116 -0
- package/resources/admin/organization/groups/users.d.ts.map +1 -0
- package/resources/admin/organization/groups/users.js +65 -0
- package/resources/admin/organization/groups/users.js.map +1 -0
- package/resources/admin/organization/groups/users.mjs +61 -0
- package/resources/admin/organization/groups/users.mjs.map +1 -0
- package/resources/admin/organization/groups.d.mts +2 -0
- package/resources/admin/organization/groups.d.mts.map +1 -0
- package/resources/admin/organization/groups.d.ts +2 -0
- package/resources/admin/organization/groups.d.ts.map +1 -0
- package/resources/admin/organization/groups.js +6 -0
- package/resources/admin/organization/groups.js.map +1 -0
- package/resources/admin/organization/groups.mjs +3 -0
- package/resources/admin/organization/groups.mjs.map +1 -0
- package/resources/admin/organization/index.d.mts +11 -0
- package/resources/admin/organization/index.d.mts.map +1 -0
- package/resources/admin/organization/index.d.ts +11 -0
- package/resources/admin/organization/index.d.ts.map +1 -0
- package/resources/admin/organization/index.js +25 -0
- package/resources/admin/organization/index.js.map +1 -0
- package/resources/admin/organization/index.mjs +12 -0
- package/resources/admin/organization/index.mjs.map +1 -0
- package/resources/admin/organization/invites.d.mts +152 -0
- package/resources/admin/organization/invites.d.mts.map +1 -0
- package/resources/admin/organization/invites.d.ts +152 -0
- package/resources/admin/organization/invites.d.ts.map +1 -0
- package/resources/admin/organization/invites.js +83 -0
- package/resources/admin/organization/invites.js.map +1 -0
- package/resources/admin/organization/invites.mjs +79 -0
- package/resources/admin/organization/invites.mjs.map +1 -0
- package/resources/admin/organization/organization.d.mts +42 -0
- package/resources/admin/organization/organization.d.mts.map +1 -0
- package/resources/admin/organization/organization.d.ts +42 -0
- package/resources/admin/organization/organization.d.ts.map +1 -0
- package/resources/admin/organization/organization.js +49 -0
- package/resources/admin/organization/organization.js.map +1 -0
- package/resources/admin/organization/organization.mjs +44 -0
- package/resources/admin/organization/organization.mjs.map +1 -0
- package/resources/admin/organization/projects/api-keys.d.mts +167 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -0
- package/resources/admin/organization/projects/api-keys.d.ts +167 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -0
- package/resources/admin/organization/projects/api-keys.js +68 -0
- package/resources/admin/organization/projects/api-keys.js.map +1 -0
- package/resources/admin/organization/projects/api-keys.mjs +64 -0
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -0
- package/resources/admin/organization/projects/certificates.d.mts +186 -0
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -0
- package/resources/admin/organization/projects/certificates.d.ts +186 -0
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -0
- package/resources/admin/organization/projects/certificates.js +64 -0
- package/resources/admin/organization/projects/certificates.js.map +1 -0
- package/resources/admin/organization/projects/certificates.mjs +60 -0
- package/resources/admin/organization/projects/certificates.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/groups.d.mts +119 -0
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/groups.d.ts +119 -0
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/groups.js +73 -0
- package/resources/admin/organization/projects/groups/groups.js.map +1 -0
- package/resources/admin/organization/projects/groups/groups.mjs +68 -0
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/index.d.mts +3 -0
- package/resources/admin/organization/projects/groups/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/index.d.ts +3 -0
- package/resources/admin/organization/projects/groups/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/index.js +9 -0
- package/resources/admin/organization/projects/groups/index.js.map +1 -0
- package/resources/admin/organization/projects/groups/index.mjs +4 -0
- package/resources/admin/organization/projects/groups/index.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/roles.d.mts +195 -0
- package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/roles.d.ts +195 -0
- package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/roles.js +68 -0
- package/resources/admin/organization/projects/groups/roles.js.map +1 -0
- package/resources/admin/organization/projects/groups/roles.mjs +64 -0
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/groups.d.mts +2 -0
- package/resources/admin/organization/projects/groups.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups.d.ts +2 -0
- package/resources/admin/organization/projects/groups.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups.js +6 -0
- package/resources/admin/organization/projects/groups.js.map +1 -0
- package/resources/admin/organization/projects/groups.mjs +3 -0
- package/resources/admin/organization/projects/groups.mjs.map +1 -0
- package/resources/admin/organization/projects/index.d.mts +9 -0
- package/resources/admin/organization/projects/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/index.d.ts +9 -0
- package/resources/admin/organization/projects/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/index.js +21 -0
- package/resources/admin/organization/projects/index.js.map +1 -0
- package/resources/admin/organization/projects/index.mjs +10 -0
- package/resources/admin/organization/projects/index.mjs.map +1 -0
- package/resources/admin/organization/projects/projects.d.mts +172 -0
- package/resources/admin/organization/projects/projects.d.mts.map +1 -0
- package/resources/admin/organization/projects/projects.d.ts +172 -0
- package/resources/admin/organization/projects/projects.d.ts.map +1 -0
- package/resources/admin/organization/projects/projects.js +133 -0
- package/resources/admin/organization/projects/projects.js.map +1 -0
- package/resources/admin/organization/projects/projects.mjs +128 -0
- package/resources/admin/organization/projects/projects.mjs.map +1 -0
- package/resources/admin/organization/projects/rate-limits.d.mts +120 -0
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -0
- package/resources/admin/organization/projects/rate-limits.d.ts +120 -0
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -0
- package/resources/admin/organization/projects/rate-limits.js +47 -0
- package/resources/admin/organization/projects/rate-limits.js.map +1 -0
- package/resources/admin/organization/projects/rate-limits.mjs +43 -0
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -0
- package/resources/admin/organization/projects/roles.d.mts +127 -0
- package/resources/admin/organization/projects/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/roles.d.ts +127 -0
- package/resources/admin/organization/projects/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/roles.js +89 -0
- package/resources/admin/organization/projects/roles.js.map +1 -0
- package/resources/admin/organization/projects/roles.mjs +85 -0
- package/resources/admin/organization/projects/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.mts +141 -0
- package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.ts +141 -0
- package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts.js +85 -0
- package/resources/admin/organization/projects/service-accounts.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts.mjs +81 -0
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -0
- package/resources/admin/organization/projects/users/index.d.mts +3 -0
- package/resources/admin/organization/projects/users/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/index.d.ts +3 -0
- package/resources/admin/organization/projects/users/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/index.js +9 -0
- package/resources/admin/organization/projects/users/index.js.map +1 -0
- package/resources/admin/organization/projects/users/index.mjs +4 -0
- package/resources/admin/organization/projects/users/index.mjs.map +1 -0
- package/resources/admin/organization/projects/users/roles.d.mts +169 -0
- package/resources/admin/organization/projects/users/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/roles.d.ts +169 -0
- package/resources/admin/organization/projects/users/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/roles.js +68 -0
- package/resources/admin/organization/projects/users/roles.js.map +1 -0
- package/resources/admin/organization/projects/users/roles.mjs +64 -0
- package/resources/admin/organization/projects/users/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/users/users.d.mts +157 -0
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/users.d.ts +157 -0
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/users.js +116 -0
- package/resources/admin/organization/projects/users/users.js.map +1 -0
- package/resources/admin/organization/projects/users/users.mjs +111 -0
- package/resources/admin/organization/projects/users/users.mjs.map +1 -0
- package/resources/admin/organization/projects/users.d.mts +2 -0
- package/resources/admin/organization/projects/users.d.mts.map +1 -0
- package/resources/admin/organization/projects/users.d.ts +2 -0
- package/resources/admin/organization/projects/users.d.ts.map +1 -0
- package/resources/admin/organization/projects/users.js +6 -0
- package/resources/admin/organization/projects/users.js.map +1 -0
- package/resources/admin/organization/projects/users.mjs +3 -0
- package/resources/admin/organization/projects/users.mjs.map +1 -0
- package/resources/admin/organization/projects.d.mts +2 -0
- package/resources/admin/organization/projects.d.mts.map +1 -0
- package/resources/admin/organization/projects.d.ts +2 -0
- package/resources/admin/organization/projects.d.ts.map +1 -0
- package/resources/admin/organization/projects.js +6 -0
- package/resources/admin/organization/projects.js.map +1 -0
- package/resources/admin/organization/projects.mjs +3 -0
- package/resources/admin/organization/projects.mjs.map +1 -0
- package/resources/admin/organization/roles.d.mts +142 -0
- package/resources/admin/organization/roles.d.mts.map +1 -0
- package/resources/admin/organization/roles.d.ts +142 -0
- package/resources/admin/organization/roles.d.ts.map +1 -0
- package/resources/admin/organization/roles.js +80 -0
- package/resources/admin/organization/roles.js.map +1 -0
- package/resources/admin/organization/roles.mjs +76 -0
- package/resources/admin/organization/roles.mjs.map +1 -0
- package/resources/admin/organization/usage.d.mts +3564 -0
- package/resources/admin/organization/usage.d.mts.map +1 -0
- package/resources/admin/organization/usage.d.ts +3564 -0
- package/resources/admin/organization/usage.d.ts.map +1 -0
- package/resources/admin/organization/usage.js +171 -0
- package/resources/admin/organization/usage.js.map +1 -0
- package/resources/admin/organization/usage.mjs +167 -0
- package/resources/admin/organization/usage.mjs.map +1 -0
- package/resources/admin/organization/users/index.d.mts +3 -0
- package/resources/admin/organization/users/index.d.mts.map +1 -0
- package/resources/admin/organization/users/index.d.ts +3 -0
- package/resources/admin/organization/users/index.d.ts.map +1 -0
- package/resources/admin/organization/users/index.js +9 -0
- package/resources/admin/organization/users/index.js.map +1 -0
- package/resources/admin/organization/users/index.mjs +4 -0
- package/resources/admin/organization/users/index.mjs.map +1 -0
- package/resources/admin/organization/users/roles.d.mts +156 -0
- package/resources/admin/organization/users/roles.d.mts.map +1 -0
- package/resources/admin/organization/users/roles.d.ts +156 -0
- package/resources/admin/organization/users/roles.d.ts.map +1 -0
- package/resources/admin/organization/users/roles.js +65 -0
- package/resources/admin/organization/users/roles.js.map +1 -0
- package/resources/admin/organization/users/roles.mjs +61 -0
- package/resources/admin/organization/users/roles.mjs.map +1 -0
- package/resources/admin/organization/users/users.d.mts +185 -0
- package/resources/admin/organization/users/users.d.mts.map +1 -0
- package/resources/admin/organization/users/users.d.ts +185 -0
- package/resources/admin/organization/users/users.d.ts.map +1 -0
- package/resources/admin/organization/users/users.js +84 -0
- package/resources/admin/organization/users/users.js.map +1 -0
- package/resources/admin/organization/users/users.mjs +79 -0
- package/resources/admin/organization/users/users.mjs.map +1 -0
- package/resources/admin/organization/users.d.mts +2 -0
- package/resources/admin/organization/users.d.mts.map +1 -0
- package/resources/admin/organization/users.d.ts +2 -0
- package/resources/admin/organization/users.d.ts.map +1 -0
- package/resources/admin/organization/users.js +6 -0
- package/resources/admin/organization/users.js.map +1 -0
- package/resources/admin/organization/users.mjs +3 -0
- package/resources/admin/organization/users.mjs.map +1 -0
- package/resources/admin/organization.d.mts +2 -0
- package/resources/admin/organization.d.mts.map +1 -0
- package/resources/admin/organization.d.ts +2 -0
- package/resources/admin/organization.d.ts.map +1 -0
- package/resources/admin/organization.js +6 -0
- package/resources/admin/organization.js.map +1 -0
- package/resources/admin/organization.mjs +3 -0
- package/resources/admin/organization.mjs.map +1 -0
- package/resources/admin.d.mts +2 -0
- package/resources/admin.d.mts.map +1 -0
- package/resources/admin.d.ts +2 -0
- package/resources/admin.d.ts.map +1 -0
- package/resources/admin.js +6 -0
- package/resources/admin.js.map +1 -0
- package/resources/admin.mjs +3 -0
- package/resources/admin.mjs.map +1 -0
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +1 -0
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +1 -0
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +1 -0
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +1 -0
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +11 -4
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +11 -4
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +5 -0
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +5 -0
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.d.mts.map +1 -1
- package/resources/beta/chatkit/sessions.d.ts.map +1 -1
- package/resources/beta/chatkit/sessions.js +2 -0
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +2 -0
- package/resources/beta/chatkit/sessions.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +9 -1
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +9 -1
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/realtime/sessions.d.mts.map +1 -1
- package/resources/beta/realtime/sessions.d.ts.map +1 -1
- package/resources/beta/realtime/sessions.js +1 -0
- package/resources/beta/realtime/sessions.js.map +1 -1
- package/resources/beta/realtime/sessions.mjs +1 -0
- package/resources/beta/realtime/sessions.mjs.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.js +1 -0
- package/resources/beta/realtime/transcription-sessions.js.map +1 -1
- package/resources/beta/realtime/transcription-sessions.mjs +1 -0
- package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +5 -0
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +5 -0
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +6 -0
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +6 -0
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js +2 -0
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +2 -0
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +5 -0
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +5 -0
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +4 -4
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +4 -4
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +24 -5
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +24 -5
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.js +1 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +1 -1
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +6 -1
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +6 -1
- package/resources/completions.mjs.map +1 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +11 -3
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +11 -3
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.d.mts.map +1 -1
- package/resources/containers/files/content.d.ts.map +1 -1
- package/resources/containers/files/content.js +1 -0
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +1 -0
- package/resources/containers/files/content.mjs.map +1 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +7 -2
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +7 -2
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +14 -4
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +14 -4
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +11 -3
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +11 -3
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +1 -0
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +1 -0
- package/resources/embeddings.mjs.map +1 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +9 -5
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +9 -5
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/output-items.d.mts.map +1 -1
- package/resources/evals/runs/output-items.d.ts.map +1 -1
- package/resources/evals/runs/output-items.js +5 -2
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +5 -2
- package/resources/evals/runs/output-items.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +18 -4
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +18 -4
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +8 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +17 -5
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +17 -5
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +10 -2
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +10 -2
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +4 -3
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +4 -3
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +23 -7
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +23 -7
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts +53 -24
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +53 -24
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +8 -3
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -3
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/models.js +3 -3
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -3
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.js +1 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +1 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +10 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts +10 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +4 -0
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +4 -0
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts +24 -37
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts +24 -37
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/client-secrets.js +5 -1
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +5 -1
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/realtime/index.d.mts +1 -1
- package/resources/realtime/index.d.mts.map +1 -1
- package/resources/realtime/index.d.ts +1 -1
- package/resources/realtime/index.d.ts.map +1 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +545 -10
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +545 -10
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/input-items.js +1 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +1 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/input-tokens.js +5 -1
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +5 -1
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/responses.d.mts +45 -11
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +45 -11
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +13 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +13 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses/ws-base.d.mts.map +1 -1
- package/resources/responses/ws-base.d.ts.map +1 -1
- package/resources/responses/ws-base.js +3 -1
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +3 -1
- package/resources/responses/ws-base.mjs.map +1 -1
- package/resources/skills/content.d.mts.map +1 -1
- package/resources/skills/content.d.ts.map +1 -1
- package/resources/skills/content.js +1 -0
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +1 -0
- package/resources/skills/content.mjs.map +1 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +13 -5
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +13 -5
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.d.mts.map +1 -1
- package/resources/skills/versions/content.d.ts.map +1 -1
- package/resources/skills/versions/content.js +1 -0
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +1 -0
- package/resources/skills/versions/content.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +10 -3
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +10 -3
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/uploads/parts.js +1 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +1 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts.map +1 -1
- package/resources/uploads/uploads.d.ts.map +1 -1
- package/resources/uploads/uploads.js +10 -3
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +10 -3
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +9 -1
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +9 -1
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +10 -1
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +10 -1
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +6 -0
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +6 -0
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +17 -9
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +17 -9
- package/resources/videos.mjs.map +1 -1
- package/src/azure.ts +7 -3
- package/src/beta/realtime/websocket.ts +7 -2
- package/src/beta/realtime/ws.ts +5 -1
- package/src/client.ts +114 -27
- package/src/core/pagination.ts +62 -0
- package/src/internal/request-options.ts +1 -0
- package/src/internal/utils/log.ts +2 -0
- package/src/realtime/websocket.ts +7 -2
- package/src/realtime/ws.ts +5 -1
- package/src/resources/admin/admin.ts +15 -0
- package/src/resources/admin/index.ts +4 -0
- package/src/resources/admin/organization/admin-api-keys.ts +199 -0
- package/src/resources/admin/organization/audit-logs.ts +1597 -0
- package/src/resources/admin/organization/certificates.ts +458 -0
- package/src/resources/admin/organization/groups/groups.ts +251 -0
- package/src/resources/admin/organization/groups/index.ts +32 -0
- package/src/resources/admin/organization/groups/roles.ts +239 -0
- package/src/resources/admin/organization/groups/users.ts +164 -0
- package/src/resources/admin/organization/groups.ts +3 -0
- package/src/resources/admin/organization/index.ts +99 -0
- package/src/resources/admin/organization/invites.ts +214 -0
- package/src/resources/admin/organization/organization.ts +232 -0
- package/src/resources/admin/organization/projects/api-keys.ts +239 -0
- package/src/resources/admin/organization/projects/certificates.ts +269 -0
- package/src/resources/admin/organization/projects/groups/groups.ts +193 -0
- package/src/resources/admin/organization/projects/groups/index.ts +21 -0
- package/src/resources/admin/organization/projects/groups/roles.ts +261 -0
- package/src/resources/admin/organization/projects/groups.ts +3 -0
- package/src/resources/admin/organization/projects/index.ts +77 -0
- package/src/resources/admin/organization/projects/projects.ts +372 -0
- package/src/resources/admin/organization/projects/rate-limits.ts +173 -0
- package/src/resources/admin/organization/projects/roles.ts +182 -0
- package/src/resources/admin/organization/projects/service-accounts.ts +224 -0
- package/src/resources/admin/organization/projects/users/index.ts +23 -0
- package/src/resources/admin/organization/projects/users/roles.ts +226 -0
- package/src/resources/admin/organization/projects/users/users.ts +252 -0
- package/src/resources/admin/organization/projects/users.ts +3 -0
- package/src/resources/admin/organization/projects.ts +3 -0
- package/src/resources/admin/organization/roles.ts +200 -0
- package/src/resources/admin/organization/usage.ts +4483 -0
- package/src/resources/admin/organization/users/index.ts +20 -0
- package/src/resources/admin/organization/users/roles.ts +208 -0
- package/src/resources/admin/organization/users/users.ts +287 -0
- package/src/resources/admin/organization/users.ts +3 -0
- package/src/resources/admin/organization.ts +3 -0
- package/src/resources/admin.ts +3 -0
- package/src/resources/audio/speech.ts +1 -0
- package/src/resources/audio/transcriptions.ts +1 -0
- package/src/resources/audio/translations.ts +4 -1
- package/src/resources/batches.ts +11 -4
- package/src/resources/beta/assistants.ts +5 -0
- package/src/resources/beta/chatkit/sessions.ts +2 -0
- package/src/resources/beta/chatkit/threads.ts +9 -1
- package/src/resources/beta/realtime/sessions.ts +1 -0
- package/src/resources/beta/realtime/transcription-sessions.ts +1 -0
- package/src/resources/beta/threads/messages.ts +5 -0
- package/src/resources/beta/threads/runs/runs.ts +6 -0
- package/src/resources/beta/threads/runs/steps.ts +2 -0
- package/src/resources/beta/threads/threads.ts +5 -0
- package/src/resources/chat/completions/completions.ts +28 -11
- package/src/resources/chat/completions/messages.ts +1 -1
- package/src/resources/completions.ts +6 -3
- package/src/resources/containers/containers.ts +11 -3
- package/src/resources/containers/files/content.ts +1 -0
- package/src/resources/containers/files/files.ts +7 -2
- package/src/resources/conversations/conversations.ts +14 -4
- package/src/resources/conversations/items.ts +11 -3
- package/src/resources/embeddings.ts +1 -0
- package/src/resources/evals/evals.ts +9 -5
- package/src/resources/evals/runs/output-items.ts +5 -2
- package/src/resources/evals/runs/runs.ts +18 -4
- package/src/resources/files.ts +20 -5
- package/src/resources/fine-tuning/alpha/graders.ts +10 -2
- package/src/resources/fine-tuning/checkpoints/permissions.ts +4 -3
- package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +23 -7
- package/src/resources/images.ts +71 -27
- package/src/resources/index.ts +1 -0
- package/src/resources/models.ts +3 -3
- package/src/resources/moderations.ts +1 -1
- package/src/resources/realtime/api.md +18 -1
- package/src/resources/realtime/calls.ts +16 -0
- package/src/resources/realtime/client-secrets.ts +30 -38
- package/src/resources/realtime/index.ts +0 -1
- package/src/resources/realtime/realtime.ts +647 -8
- package/src/resources/responses/input-items.ts +1 -1
- package/src/resources/responses/input-tokens.ts +5 -1
- package/src/resources/responses/responses.ts +66 -15
- package/src/resources/responses/ws-base.ts +3 -1
- package/src/resources/skills/content.ts +1 -0
- package/src/resources/skills/skills.ts +16 -5
- package/src/resources/skills/versions/content.ts +1 -0
- package/src/resources/skills/versions/versions.ts +10 -3
- package/src/resources/uploads/parts.ts +1 -1
- package/src/resources/uploads/uploads.ts +10 -3
- package/src/resources/vector-stores/file-batches.ts +9 -1
- package/src/resources/vector-stores/files.ts +10 -1
- package/src/resources/vector-stores/vector-stores.ts +6 -0
- package/src/resources/videos.ts +20 -9
- 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
|
@@ -25,6 +25,7 @@ export class Messages extends APIResource {
|
|
|
25
25
|
body,
|
|
26
26
|
...options,
|
|
27
27
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
28
|
+
__security: { bearerAuth: true },
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -38,6 +39,7 @@ export class Messages extends APIResource {
|
|
|
38
39
|
return this._client.get(path`/threads/${thread_id}/messages/${messageID}`, {
|
|
39
40
|
...options,
|
|
40
41
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
42
|
+
__security: { bearerAuth: true },
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
45
|
|
|
@@ -52,6 +54,7 @@ export class Messages extends APIResource {
|
|
|
52
54
|
body,
|
|
53
55
|
...options,
|
|
54
56
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
57
|
+
__security: { bearerAuth: true },
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
60
|
|
|
@@ -69,6 +72,7 @@ export class Messages extends APIResource {
|
|
|
69
72
|
query,
|
|
70
73
|
...options,
|
|
71
74
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
75
|
+
__security: { bearerAuth: true },
|
|
72
76
|
});
|
|
73
77
|
}
|
|
74
78
|
|
|
@@ -86,6 +90,7 @@ export class Messages extends APIResource {
|
|
|
86
90
|
return this._client.delete(path`/threads/${thread_id}/messages/${messageID}`, {
|
|
87
91
|
...options,
|
|
88
92
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
93
|
+
__security: { bearerAuth: true },
|
|
89
94
|
});
|
|
90
95
|
}
|
|
91
96
|
}
|
|
@@ -78,6 +78,7 @@ export class Runs extends APIResource {
|
|
|
78
78
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
79
79
|
stream: params.stream ?? false,
|
|
80
80
|
__synthesizeEventData: true,
|
|
81
|
+
__security: { bearerAuth: true },
|
|
81
82
|
}) as APIPromise<Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -91,6 +92,7 @@ export class Runs extends APIResource {
|
|
|
91
92
|
return this._client.get(path`/threads/${thread_id}/runs/${runID}`, {
|
|
92
93
|
...options,
|
|
93
94
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
95
|
+
__security: { bearerAuth: true },
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -105,6 +107,7 @@ export class Runs extends APIResource {
|
|
|
105
107
|
body,
|
|
106
108
|
...options,
|
|
107
109
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
110
|
+
__security: { bearerAuth: true },
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
113
|
|
|
@@ -122,6 +125,7 @@ export class Runs extends APIResource {
|
|
|
122
125
|
query,
|
|
123
126
|
...options,
|
|
124
127
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
128
|
+
__security: { bearerAuth: true },
|
|
125
129
|
});
|
|
126
130
|
}
|
|
127
131
|
|
|
@@ -135,6 +139,7 @@ export class Runs extends APIResource {
|
|
|
135
139
|
return this._client.post(path`/threads/${thread_id}/runs/${runID}/cancel`, {
|
|
136
140
|
...options,
|
|
137
141
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
142
|
+
__security: { bearerAuth: true },
|
|
138
143
|
});
|
|
139
144
|
}
|
|
140
145
|
|
|
@@ -263,6 +268,7 @@ export class Runs extends APIResource {
|
|
|
263
268
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
264
269
|
stream: params.stream ?? false,
|
|
265
270
|
__synthesizeEventData: true,
|
|
271
|
+
__security: { bearerAuth: true },
|
|
266
272
|
}) as APIPromise<Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
|
|
267
273
|
}
|
|
268
274
|
|
|
@@ -26,6 +26,7 @@ export class Steps extends APIResource {
|
|
|
26
26
|
query,
|
|
27
27
|
...options,
|
|
28
28
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
29
|
+
__security: { bearerAuth: true },
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -40,6 +41,7 @@ export class Steps extends APIResource {
|
|
|
40
41
|
query,
|
|
41
42
|
...options,
|
|
42
43
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
44
|
+
__security: { bearerAuth: true },
|
|
43
45
|
});
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -91,6 +91,7 @@ export class Threads extends APIResource {
|
|
|
91
91
|
body,
|
|
92
92
|
...options,
|
|
93
93
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
94
|
+
__security: { bearerAuth: true },
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
|
|
@@ -103,6 +104,7 @@ export class Threads extends APIResource {
|
|
|
103
104
|
return this._client.get(path`/threads/${threadID}`, {
|
|
104
105
|
...options,
|
|
105
106
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
107
|
+
__security: { bearerAuth: true },
|
|
106
108
|
});
|
|
107
109
|
}
|
|
108
110
|
|
|
@@ -116,6 +118,7 @@ export class Threads extends APIResource {
|
|
|
116
118
|
body,
|
|
117
119
|
...options,
|
|
118
120
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
121
|
+
__security: { bearerAuth: true },
|
|
119
122
|
});
|
|
120
123
|
}
|
|
121
124
|
|
|
@@ -128,6 +131,7 @@ export class Threads extends APIResource {
|
|
|
128
131
|
return this._client.delete(path`/threads/${threadID}`, {
|
|
129
132
|
...options,
|
|
130
133
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
134
|
+
__security: { bearerAuth: true },
|
|
131
135
|
});
|
|
132
136
|
}
|
|
133
137
|
|
|
@@ -155,6 +159,7 @@ export class Threads extends APIResource {
|
|
|
155
159
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
156
160
|
stream: body.stream ?? false,
|
|
157
161
|
__synthesizeEventData: true,
|
|
162
|
+
__security: { bearerAuth: true },
|
|
158
163
|
}) as APIPromise<RunsAPI.Run> | APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>;
|
|
159
164
|
}
|
|
160
165
|
|
|
@@ -71,9 +71,12 @@ export class Completions extends APIResource {
|
|
|
71
71
|
body: ChatCompletionCreateParams,
|
|
72
72
|
options?: RequestOptions,
|
|
73
73
|
): APIPromise<ChatCompletion> | APIPromise<Stream<ChatCompletionChunk>> {
|
|
74
|
-
return this._client.post('/chat/completions', {
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
return this._client.post('/chat/completions', {
|
|
75
|
+
body,
|
|
76
|
+
...options,
|
|
77
|
+
stream: body.stream ?? false,
|
|
78
|
+
__security: { bearerAuth: true },
|
|
79
|
+
}) as APIPromise<ChatCompletion> | APIPromise<Stream<ChatCompletionChunk>>;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
/**
|
|
@@ -87,7 +90,10 @@ export class Completions extends APIResource {
|
|
|
87
90
|
* ```
|
|
88
91
|
*/
|
|
89
92
|
retrieve(completionID: string, options?: RequestOptions): APIPromise<ChatCompletion> {
|
|
90
|
-
return this._client.get(path`/chat/completions/${completionID}`,
|
|
93
|
+
return this._client.get(path`/chat/completions/${completionID}`, {
|
|
94
|
+
...options,
|
|
95
|
+
__security: { bearerAuth: true },
|
|
96
|
+
});
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
/**
|
|
@@ -108,7 +114,11 @@ export class Completions extends APIResource {
|
|
|
108
114
|
body: ChatCompletionUpdateParams,
|
|
109
115
|
options?: RequestOptions,
|
|
110
116
|
): APIPromise<ChatCompletion> {
|
|
111
|
-
return this._client.post(path`/chat/completions/${completionID}`, {
|
|
117
|
+
return this._client.post(path`/chat/completions/${completionID}`, {
|
|
118
|
+
body,
|
|
119
|
+
...options,
|
|
120
|
+
__security: { bearerAuth: true },
|
|
121
|
+
});
|
|
112
122
|
}
|
|
113
123
|
|
|
114
124
|
/**
|
|
@@ -127,7 +137,11 @@ export class Completions extends APIResource {
|
|
|
127
137
|
query: ChatCompletionListParams | null | undefined = {},
|
|
128
138
|
options?: RequestOptions,
|
|
129
139
|
): PagePromise<ChatCompletionsPage, ChatCompletion> {
|
|
130
|
-
return this._client.getAPIList('/chat/completions', CursorPage<ChatCompletion>, {
|
|
140
|
+
return this._client.getAPIList('/chat/completions', CursorPage<ChatCompletion>, {
|
|
141
|
+
query,
|
|
142
|
+
...options,
|
|
143
|
+
__security: { bearerAuth: true },
|
|
144
|
+
});
|
|
131
145
|
}
|
|
132
146
|
|
|
133
147
|
/**
|
|
@@ -141,7 +155,10 @@ export class Completions extends APIResource {
|
|
|
141
155
|
* ```
|
|
142
156
|
*/
|
|
143
157
|
delete(completionID: string, options?: RequestOptions): APIPromise<ChatCompletionDeleted> {
|
|
144
|
-
return this._client.delete(path`/chat/completions/${completionID}`,
|
|
158
|
+
return this._client.delete(path`/chat/completions/${completionID}`, {
|
|
159
|
+
...options,
|
|
160
|
+
__security: { bearerAuth: true },
|
|
161
|
+
});
|
|
145
162
|
}
|
|
146
163
|
|
|
147
164
|
parse<Params extends ChatCompletionParseParams, ParsedT = ExtractParsedContentFromParams<Params>>(
|
|
@@ -1377,8 +1394,7 @@ export interface ChatCompletionTokenLogprob {
|
|
|
1377
1394
|
|
|
1378
1395
|
/**
|
|
1379
1396
|
* List of the most likely tokens and their log probability, at this token
|
|
1380
|
-
* position.
|
|
1381
|
-
* `top_logprobs` returned.
|
|
1397
|
+
* position. The number of entries may be fewer than the requested `top_logprobs`.
|
|
1382
1398
|
*/
|
|
1383
1399
|
top_logprobs: Array<ChatCompletionTokenLogprob.TopLogprob>;
|
|
1384
1400
|
}
|
|
@@ -1803,8 +1819,9 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
1803
1819
|
tools?: Array<ChatCompletionTool>;
|
|
1804
1820
|
|
|
1805
1821
|
/**
|
|
1806
|
-
* An integer between 0 and 20 specifying the number of most likely tokens
|
|
1807
|
-
* return at each token position, each with an associated log probability.
|
|
1822
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
1823
|
+
* to return at each token position, each with an associated log probability. In
|
|
1824
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
1808
1825
|
* `logprobs` must be set to `true` if this parameter is used.
|
|
1809
1826
|
*/
|
|
1810
1827
|
top_logprobs?: number | null;
|
|
@@ -33,7 +33,7 @@ export class Messages extends APIResource {
|
|
|
33
33
|
return this._client.getAPIList(
|
|
34
34
|
path`/chat/completions/${completionID}/messages`,
|
|
35
35
|
CursorPage<CompletionsAPI.ChatCompletionStoreMessage>,
|
|
36
|
-
{ query, ...options },
|
|
36
|
+
{ query, ...options, __security: { bearerAuth: true } },
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -35,9 +35,12 @@ export class Completions extends APIResource {
|
|
|
35
35
|
body: CompletionCreateParams,
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<Completion> | APIPromise<Stream<Completion>> {
|
|
38
|
-
return this._client.post('/completions', {
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
return this._client.post('/completions', {
|
|
39
|
+
body,
|
|
40
|
+
...options,
|
|
41
|
+
stream: body.stream ?? false,
|
|
42
|
+
__security: { bearerAuth: true },
|
|
43
|
+
}) as APIPromise<Completion> | APIPromise<Stream<Completion>>;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -27,14 +27,17 @@ export class Containers extends APIResource {
|
|
|
27
27
|
* Create Container
|
|
28
28
|
*/
|
|
29
29
|
create(body: ContainerCreateParams, options?: RequestOptions): APIPromise<ContainerCreateResponse> {
|
|
30
|
-
return this._client.post('/containers', { body, ...options });
|
|
30
|
+
return this._client.post('/containers', { body, ...options, __security: { bearerAuth: true } });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieve Container
|
|
35
35
|
*/
|
|
36
36
|
retrieve(containerID: string, options?: RequestOptions): APIPromise<ContainerRetrieveResponse> {
|
|
37
|
-
return this._client.get(path`/containers/${containerID}`,
|
|
37
|
+
return this._client.get(path`/containers/${containerID}`, {
|
|
38
|
+
...options,
|
|
39
|
+
__security: { bearerAuth: true },
|
|
40
|
+
});
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
/**
|
|
@@ -44,7 +47,11 @@ export class Containers extends APIResource {
|
|
|
44
47
|
query: ContainerListParams | null | undefined = {},
|
|
45
48
|
options?: RequestOptions,
|
|
46
49
|
): PagePromise<ContainerListResponsesPage, ContainerListResponse> {
|
|
47
|
-
return this._client.getAPIList('/containers', CursorPage<ContainerListResponse>, {
|
|
50
|
+
return this._client.getAPIList('/containers', CursorPage<ContainerListResponse>, {
|
|
51
|
+
query,
|
|
52
|
+
...options,
|
|
53
|
+
__security: { bearerAuth: true },
|
|
54
|
+
});
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
/**
|
|
@@ -54,6 +61,7 @@ export class Containers extends APIResource {
|
|
|
54
61
|
return this._client.delete(path`/containers/${containerID}`, {
|
|
55
62
|
...options,
|
|
56
63
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
64
|
+
__security: { bearerAuth: true },
|
|
57
65
|
});
|
|
58
66
|
}
|
|
59
67
|
}
|
|
@@ -15,6 +15,7 @@ export class Content extends APIResource {
|
|
|
15
15
|
return this._client.get(path`/containers/${container_id}/files/${fileID}/content`, {
|
|
16
16
|
...options,
|
|
17
17
|
headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
|
|
18
|
+
__security: { bearerAuth: true },
|
|
18
19
|
__binaryResponse: true,
|
|
19
20
|
});
|
|
20
21
|
}
|
|
@@ -27,7 +27,7 @@ export class Files extends APIResource {
|
|
|
27
27
|
): APIPromise<FileCreateResponse> {
|
|
28
28
|
return this._client.post(
|
|
29
29
|
path`/containers/${containerID}/files`,
|
|
30
|
-
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
30
|
+
maybeMultipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -40,7 +40,10 @@ export class Files extends APIResource {
|
|
|
40
40
|
options?: RequestOptions,
|
|
41
41
|
): APIPromise<FileRetrieveResponse> {
|
|
42
42
|
const { container_id } = params;
|
|
43
|
-
return this._client.get(path`/containers/${container_id}/files/${fileID}`,
|
|
43
|
+
return this._client.get(path`/containers/${container_id}/files/${fileID}`, {
|
|
44
|
+
...options,
|
|
45
|
+
__security: { bearerAuth: true },
|
|
46
|
+
});
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
@@ -54,6 +57,7 @@ export class Files extends APIResource {
|
|
|
54
57
|
return this._client.getAPIList(path`/containers/${containerID}/files`, CursorPage<FileListResponse>, {
|
|
55
58
|
query,
|
|
56
59
|
...options,
|
|
60
|
+
__security: { bearerAuth: true },
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -65,6 +69,7 @@ export class Files extends APIResource {
|
|
|
65
69
|
return this._client.delete(path`/containers/${container_id}/files/${fileID}`, {
|
|
66
70
|
...options,
|
|
67
71
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
72
|
+
__security: { bearerAuth: true },
|
|
68
73
|
});
|
|
69
74
|
}
|
|
70
75
|
}
|
|
@@ -31,14 +31,17 @@ export class Conversations extends APIResource {
|
|
|
31
31
|
body: ConversationCreateParams | null | undefined = {},
|
|
32
32
|
options?: RequestOptions,
|
|
33
33
|
): APIPromise<Conversation> {
|
|
34
|
-
return this._client.post('/conversations', { body, ...options });
|
|
34
|
+
return this._client.post('/conversations', { body, ...options, __security: { bearerAuth: true } });
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Get a conversation
|
|
39
39
|
*/
|
|
40
40
|
retrieve(conversationID: string, options?: RequestOptions): APIPromise<Conversation> {
|
|
41
|
-
return this._client.get(path`/conversations/${conversationID}`,
|
|
41
|
+
return this._client.get(path`/conversations/${conversationID}`, {
|
|
42
|
+
...options,
|
|
43
|
+
__security: { bearerAuth: true },
|
|
44
|
+
});
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
/**
|
|
@@ -49,14 +52,21 @@ export class Conversations extends APIResource {
|
|
|
49
52
|
body: ConversationUpdateParams,
|
|
50
53
|
options?: RequestOptions,
|
|
51
54
|
): APIPromise<Conversation> {
|
|
52
|
-
return this._client.post(path`/conversations/${conversationID}`, {
|
|
55
|
+
return this._client.post(path`/conversations/${conversationID}`, {
|
|
56
|
+
body,
|
|
57
|
+
...options,
|
|
58
|
+
__security: { bearerAuth: true },
|
|
59
|
+
});
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
/**
|
|
56
63
|
* Delete a conversation. Items in the conversation will not be deleted.
|
|
57
64
|
*/
|
|
58
65
|
delete(conversationID: string, options?: RequestOptions): APIPromise<ConversationDeletedResource> {
|
|
59
|
-
return this._client.delete(path`/conversations/${conversationID}`,
|
|
66
|
+
return this._client.delete(path`/conversations/${conversationID}`, {
|
|
67
|
+
...options,
|
|
68
|
+
__security: { bearerAuth: true },
|
|
69
|
+
});
|
|
60
70
|
}
|
|
61
71
|
}
|
|
62
72
|
|
|
@@ -29,6 +29,7 @@ export class Items extends APIResource {
|
|
|
29
29
|
query: { include },
|
|
30
30
|
body,
|
|
31
31
|
...options,
|
|
32
|
+
__security: { bearerAuth: true },
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -41,7 +42,11 @@ export class Items extends APIResource {
|
|
|
41
42
|
options?: RequestOptions,
|
|
42
43
|
): APIPromise<ConversationItem> {
|
|
43
44
|
const { conversation_id, ...query } = params;
|
|
44
|
-
return this._client.get(path`/conversations/${conversation_id}/items/${itemID}`, {
|
|
45
|
+
return this._client.get(path`/conversations/${conversation_id}/items/${itemID}`, {
|
|
46
|
+
query,
|
|
47
|
+
...options,
|
|
48
|
+
__security: { bearerAuth: true },
|
|
49
|
+
});
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
/**
|
|
@@ -55,7 +60,7 @@ export class Items extends APIResource {
|
|
|
55
60
|
return this._client.getAPIList(
|
|
56
61
|
path`/conversations/${conversationID}/items`,
|
|
57
62
|
ConversationCursorPage<ConversationItem>,
|
|
58
|
-
{ query, ...options },
|
|
63
|
+
{ query, ...options, __security: { bearerAuth: true } },
|
|
59
64
|
);
|
|
60
65
|
}
|
|
61
66
|
|
|
@@ -68,7 +73,10 @@ export class Items extends APIResource {
|
|
|
68
73
|
options?: RequestOptions,
|
|
69
74
|
): APIPromise<ConversationsAPI.Conversation> {
|
|
70
75
|
const { conversation_id } = params;
|
|
71
|
-
return this._client.delete(path`/conversations/${conversation_id}/items/${itemID}`,
|
|
76
|
+
return this._client.delete(path`/conversations/${conversation_id}/items/${itemID}`, {
|
|
77
|
+
...options,
|
|
78
|
+
__security: { bearerAuth: true },
|
|
79
|
+
});
|
|
72
80
|
}
|
|
73
81
|
}
|
|
74
82
|
|
|
@@ -38,6 +38,7 @@ export class Embeddings extends APIResource {
|
|
|
38
38
|
encoding_format: encoding_format as EmbeddingCreateParams['encoding_format'],
|
|
39
39
|
},
|
|
40
40
|
...options,
|
|
41
|
+
__security: { bearerAuth: true },
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
// if the user specified an encoding_format, return the response as-is
|
|
@@ -42,21 +42,21 @@ export class Evals extends APIResource {
|
|
|
42
42
|
* the [Evals guide](https://platform.openai.com/docs/guides/evals).
|
|
43
43
|
*/
|
|
44
44
|
create(body: EvalCreateParams, options?: RequestOptions): APIPromise<EvalCreateResponse> {
|
|
45
|
-
return this._client.post('/evals', { body, ...options });
|
|
45
|
+
return this._client.post('/evals', { body, ...options, __security: { bearerAuth: true } });
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Get an evaluation by ID.
|
|
50
50
|
*/
|
|
51
51
|
retrieve(evalID: string, options?: RequestOptions): APIPromise<EvalRetrieveResponse> {
|
|
52
|
-
return this._client.get(path`/evals/${evalID}`, options);
|
|
52
|
+
return this._client.get(path`/evals/${evalID}`, { ...options, __security: { bearerAuth: true } });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* Update certain properties of an evaluation.
|
|
57
57
|
*/
|
|
58
58
|
update(evalID: string, body: EvalUpdateParams, options?: RequestOptions): APIPromise<EvalUpdateResponse> {
|
|
59
|
-
return this._client.post(path`/evals/${evalID}`, { body, ...options });
|
|
59
|
+
return this._client.post(path`/evals/${evalID}`, { body, ...options, __security: { bearerAuth: true } });
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -66,14 +66,18 @@ export class Evals extends APIResource {
|
|
|
66
66
|
query: EvalListParams | null | undefined = {},
|
|
67
67
|
options?: RequestOptions,
|
|
68
68
|
): PagePromise<EvalListResponsesPage, EvalListResponse> {
|
|
69
|
-
return this._client.getAPIList('/evals', CursorPage<EvalListResponse>, {
|
|
69
|
+
return this._client.getAPIList('/evals', CursorPage<EvalListResponse>, {
|
|
70
|
+
query,
|
|
71
|
+
...options,
|
|
72
|
+
__security: { bearerAuth: true },
|
|
73
|
+
});
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
/**
|
|
73
77
|
* Delete an evaluation.
|
|
74
78
|
*/
|
|
75
79
|
delete(evalID: string, options?: RequestOptions): APIPromise<EvalDeleteResponse> {
|
|
76
|
-
return this._client.delete(path`/evals/${evalID}`, options);
|
|
80
|
+
return this._client.delete(path`/evals/${evalID}`, { ...options, __security: { bearerAuth: true } });
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
|
|
@@ -20,7 +20,10 @@ export class OutputItems extends APIResource {
|
|
|
20
20
|
options?: RequestOptions,
|
|
21
21
|
): APIPromise<OutputItemRetrieveResponse> {
|
|
22
22
|
const { eval_id, run_id } = params;
|
|
23
|
-
return this._client.get(path`/evals/${eval_id}/runs/${run_id}/output_items/${outputItemID}`,
|
|
23
|
+
return this._client.get(path`/evals/${eval_id}/runs/${run_id}/output_items/${outputItemID}`, {
|
|
24
|
+
...options,
|
|
25
|
+
__security: { bearerAuth: true },
|
|
26
|
+
});
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
/**
|
|
@@ -35,7 +38,7 @@ export class OutputItems extends APIResource {
|
|
|
35
38
|
return this._client.getAPIList(
|
|
36
39
|
path`/evals/${eval_id}/runs/${runID}/output_items`,
|
|
37
40
|
CursorPage<OutputItemListResponse>,
|
|
38
|
-
{ query, ...options },
|
|
41
|
+
{ query, ...options, __security: { bearerAuth: true } },
|
|
39
42
|
);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
@@ -31,7 +31,11 @@ export class Runs extends APIResource {
|
|
|
31
31
|
* schema specified in the config of the evaluation.
|
|
32
32
|
*/
|
|
33
33
|
create(evalID: string, body: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse> {
|
|
34
|
-
return this._client.post(path`/evals/${evalID}/runs`, {
|
|
34
|
+
return this._client.post(path`/evals/${evalID}/runs`, {
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
__security: { bearerAuth: true },
|
|
38
|
+
});
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
/**
|
|
@@ -43,7 +47,10 @@ export class Runs extends APIResource {
|
|
|
43
47
|
options?: RequestOptions,
|
|
44
48
|
): APIPromise<RunRetrieveResponse> {
|
|
45
49
|
const { eval_id } = params;
|
|
46
|
-
return this._client.get(path`/evals/${eval_id}/runs/${runID}`,
|
|
50
|
+
return this._client.get(path`/evals/${eval_id}/runs/${runID}`, {
|
|
51
|
+
...options,
|
|
52
|
+
__security: { bearerAuth: true },
|
|
53
|
+
});
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
/**
|
|
@@ -57,6 +64,7 @@ export class Runs extends APIResource {
|
|
|
57
64
|
return this._client.getAPIList(path`/evals/${evalID}/runs`, CursorPage<RunListResponse>, {
|
|
58
65
|
query,
|
|
59
66
|
...options,
|
|
67
|
+
__security: { bearerAuth: true },
|
|
60
68
|
});
|
|
61
69
|
}
|
|
62
70
|
|
|
@@ -65,7 +73,10 @@ export class Runs extends APIResource {
|
|
|
65
73
|
*/
|
|
66
74
|
delete(runID: string, params: RunDeleteParams, options?: RequestOptions): APIPromise<RunDeleteResponse> {
|
|
67
75
|
const { eval_id } = params;
|
|
68
|
-
return this._client.delete(path`/evals/${eval_id}/runs/${runID}`,
|
|
76
|
+
return this._client.delete(path`/evals/${eval_id}/runs/${runID}`, {
|
|
77
|
+
...options,
|
|
78
|
+
__security: { bearerAuth: true },
|
|
79
|
+
});
|
|
69
80
|
}
|
|
70
81
|
|
|
71
82
|
/**
|
|
@@ -73,7 +84,10 @@ export class Runs extends APIResource {
|
|
|
73
84
|
*/
|
|
74
85
|
cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise<RunCancelResponse> {
|
|
75
86
|
const { eval_id } = params;
|
|
76
|
-
return this._client.post(path`/evals/${eval_id}/runs/${runID}`,
|
|
87
|
+
return this._client.post(path`/evals/${eval_id}/runs/${runID}`, {
|
|
88
|
+
...options,
|
|
89
|
+
__security: { bearerAuth: true },
|
|
90
|
+
});
|
|
77
91
|
}
|
|
78
92
|
}
|
|
79
93
|
|
package/src/resources/files.ts
CHANGED
|
@@ -18,7 +18,8 @@ export class Files extends APIResource {
|
|
|
18
18
|
/**
|
|
19
19
|
* Upload a file that can be used across various endpoints. Individual files can be
|
|
20
20
|
* up to 512 MB, and each project can store up to 2.5 TB of files in total. There
|
|
21
|
-
* is no organization-wide storage limit.
|
|
21
|
+
* is no organization-wide storage limit. Uploads to this endpoint are rate-limited
|
|
22
|
+
* to 1,000 requests per minute per authenticated user.
|
|
22
23
|
*
|
|
23
24
|
* - The Assistants API supports files up to 2 million tokens and of specific file
|
|
24
25
|
* types. See the
|
|
@@ -33,19 +34,28 @@ export class Files extends APIResource {
|
|
|
33
34
|
* - The Batch API only supports `.jsonl` files up to 200 MB in size. The input
|
|
34
35
|
* also has a specific required
|
|
35
36
|
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
|
|
37
|
+
* - For Retrieval or `file_search` ingestion, upload files here first. If you need
|
|
38
|
+
* to attach multiple uploaded files to the same vector store, use
|
|
39
|
+
* [`/vector_stores/{vector_store_id}/file_batches`](https://platform.openai.com/docs/api-reference/vector-stores-file-batches/createBatch)
|
|
40
|
+
* instead of attaching them one by one. Vector store attachment has separate
|
|
41
|
+
* limits from file upload, including 2,000 attached files per minute per
|
|
42
|
+
* organization.
|
|
36
43
|
*
|
|
37
44
|
* Please [contact us](https://help.openai.com/) if you need to increase these
|
|
38
45
|
* storage limits.
|
|
39
46
|
*/
|
|
40
47
|
create(body: FileCreateParams, options?: RequestOptions): APIPromise<FileObject> {
|
|
41
|
-
return this._client.post(
|
|
48
|
+
return this._client.post(
|
|
49
|
+
'/files',
|
|
50
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
51
|
+
);
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
/**
|
|
45
55
|
* Returns information about a specific file.
|
|
46
56
|
*/
|
|
47
57
|
retrieve(fileID: string, options?: RequestOptions): APIPromise<FileObject> {
|
|
48
|
-
return this._client.get(path`/files/${fileID}`, options);
|
|
58
|
+
return this._client.get(path`/files/${fileID}`, { ...options, __security: { bearerAuth: true } });
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
/**
|
|
@@ -55,14 +65,18 @@ export class Files extends APIResource {
|
|
|
55
65
|
query: FileListParams | null | undefined = {},
|
|
56
66
|
options?: RequestOptions,
|
|
57
67
|
): PagePromise<FileObjectsPage, FileObject> {
|
|
58
|
-
return this._client.getAPIList('/files', CursorPage<FileObject>, {
|
|
68
|
+
return this._client.getAPIList('/files', CursorPage<FileObject>, {
|
|
69
|
+
query,
|
|
70
|
+
...options,
|
|
71
|
+
__security: { bearerAuth: true },
|
|
72
|
+
});
|
|
59
73
|
}
|
|
60
74
|
|
|
61
75
|
/**
|
|
62
76
|
* Delete a file and remove it from all vector stores.
|
|
63
77
|
*/
|
|
64
78
|
delete(fileID: string, options?: RequestOptions): APIPromise<FileDeleted> {
|
|
65
|
-
return this._client.delete(path`/files/${fileID}`, options);
|
|
79
|
+
return this._client.delete(path`/files/${fileID}`, { ...options, __security: { bearerAuth: true } });
|
|
66
80
|
}
|
|
67
81
|
|
|
68
82
|
/**
|
|
@@ -72,6 +86,7 @@ export class Files extends APIResource {
|
|
|
72
86
|
return this._client.get(path`/files/${fileID}/content`, {
|
|
73
87
|
...options,
|
|
74
88
|
headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
|
|
89
|
+
__security: { bearerAuth: true },
|
|
75
90
|
__binaryResponse: true,
|
|
76
91
|
});
|
|
77
92
|
}
|
|
@@ -27,7 +27,11 @@ export class Graders extends APIResource {
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
run(body: GraderRunParams, options?: RequestOptions): APIPromise<GraderRunResponse> {
|
|
30
|
-
return this._client.post('/fine_tuning/alpha/graders/run', {
|
|
30
|
+
return this._client.post('/fine_tuning/alpha/graders/run', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
__security: { bearerAuth: true },
|
|
34
|
+
});
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
/**
|
|
@@ -48,7 +52,11 @@ export class Graders extends APIResource {
|
|
|
48
52
|
* ```
|
|
49
53
|
*/
|
|
50
54
|
validate(body: GraderValidateParams, options?: RequestOptions): APIPromise<GraderValidateResponse> {
|
|
51
|
-
return this._client.post('/fine_tuning/alpha/graders/validate', {
|
|
55
|
+
return this._client.post('/fine_tuning/alpha/graders/validate', {
|
|
56
|
+
body,
|
|
57
|
+
...options,
|
|
58
|
+
__security: { bearerAuth: true },
|
|
59
|
+
});
|
|
52
60
|
}
|
|
53
61
|
}
|
|
54
62
|
|