llama-stack-client 0.4.3 → 0.4.5
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/.devcontainer/devcontainer.json +15 -0
- package/.eslintrc.js +16 -0
- package/.github/workflows/ci.yml +88 -0
- package/.github/workflows/integration-tests.yml +133 -0
- package/.github/workflows/release-doctor.yml +19 -0
- package/.gitignore +12 -0
- package/.prettierignore +7 -0
- package/.prettierrc.json +7 -0
- package/.release-please-manifest.json +3 -0
- package/.stats.yml +4 -0
- package/Brewfile +1 -0
- package/CHANGELOG.md +41 -0
- package/CODE_OF_CONDUCT.md +80 -0
- package/CONTRIBUTING.md +98 -0
- package/LICENSE +1 -1
- package/README.md +10 -5
- package/SECURITY.md +27 -0
- package/api.md +491 -0
- package/bin/check-release-environment +18 -0
- package/bin/publish-npm +61 -0
- package/dist/CHANGELOG.md +393 -0
- package/dist/LICENSE +7 -0
- package/dist/README.md +369 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +945 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +913 -0
- package/dist/core.mjs.map +1 -0
- package/dist/package.json +108 -0
- package/dist/resources/alpha/alpha.d.ts +26 -0
- package/dist/resources/alpha/alpha.d.ts.map +1 -0
- package/dist/resources/alpha/alpha.js +61 -0
- package/dist/resources/alpha/alpha.js.map +1 -0
- package/dist/resources/alpha/alpha.mjs +34 -0
- package/dist/resources/alpha/alpha.mjs.map +1 -0
- package/dist/resources/alpha/eval/eval.d.ts +181 -0
- package/dist/resources/alpha/eval/eval.d.ts.map +1 -0
- package/dist/resources/alpha/eval/eval.js.map +1 -0
- package/dist/resources/alpha/eval/eval.mjs.map +1 -0
- package/dist/resources/alpha/inference.d.ts +136 -0
- package/dist/resources/alpha/inference.d.ts.map +1 -0
- package/dist/resources/alpha/post-training/index.d.ts +3 -0
- package/dist/resources/alpha/post-training/index.d.ts.map +1 -0
- package/dist/resources/alpha/post-training/index.js.map +1 -0
- package/dist/resources/alpha/post-training/index.mjs +10 -0
- package/dist/resources/alpha/post-training/index.mjs.map +1 -0
- package/dist/resources/alpha/post-training/job.d.ts +104 -0
- package/dist/resources/alpha/post-training/job.d.ts.map +1 -0
- package/dist/resources/alpha/post-training/job.js +42 -0
- package/dist/resources/alpha/post-training/job.js.map +1 -0
- package/dist/resources/alpha/post-training/job.mjs +38 -0
- package/dist/resources/alpha/post-training/job.mjs.map +1 -0
- package/dist/resources/alpha/post-training/post-training.d.ts +269 -0
- package/dist/resources/alpha/post-training/post-training.d.ts.map +1 -0
- package/dist/resources/alpha/post-training/post-training.js.map +1 -0
- package/dist/resources/alpha/post-training/post-training.mjs +30 -0
- package/dist/resources/alpha/post-training/post-training.mjs.map +1 -0
- package/dist/resources/beta/datasets.d.ts +351 -0
- package/dist/resources/beta/datasets.d.ts.map +1 -0
- package/dist/resources/chat/chat.d.ts +274 -0
- package/dist/resources/chat/chat.d.ts.map +1 -0
- package/dist/resources/chat/chat.js.map +1 -0
- package/dist/resources/chat/chat.mjs.map +1 -0
- package/dist/resources/chat/completions.d.ts +2413 -0
- package/dist/resources/chat/completions.d.ts.map +1 -0
- package/dist/resources/chat/completions.js +31 -0
- package/dist/resources/chat/completions.js.map +1 -0
- package/dist/resources/chat/completions.mjs +27 -0
- package/dist/resources/chat/completions.mjs.map +1 -0
- package/dist/resources/completions.d.ts +267 -0
- package/dist/resources/completions.d.ts.map +1 -0
- package/dist/resources/completions.js.map +1 -0
- package/dist/resources/completions.mjs.map +1 -0
- package/dist/resources/conversations/conversations.d.ts +336 -0
- package/dist/resources/conversations/conversations.d.ts.map +1 -0
- package/dist/resources/conversations/conversations.js +70 -0
- package/dist/resources/conversations/conversations.js.map +1 -0
- package/dist/resources/conversations/conversations.mjs +43 -0
- package/dist/resources/conversations/conversations.mjs.map +1 -0
- package/dist/resources/conversations/items.d.ts +1045 -0
- package/dist/resources/conversations/items.d.ts.map +1 -0
- package/dist/resources/conversations/items.js +45 -0
- package/dist/resources/conversations/items.js.map +1 -0
- package/dist/resources/conversations/items.mjs +40 -0
- package/dist/resources/conversations/items.mjs.map +1 -0
- package/dist/resources/embeddings.d.ts +90 -0
- package/dist/resources/embeddings.d.ts.map +1 -0
- package/dist/resources/embeddings.js +22 -0
- package/dist/resources/embeddings.js.map +1 -0
- package/dist/resources/embeddings.mjs +18 -0
- package/dist/resources/embeddings.mjs.map +1 -0
- package/dist/resources/files.d.ts +147 -0
- package/dist/resources/files.d.ts.map +1 -0
- package/dist/resources/files.js +75 -0
- package/dist/resources/files.js.map +1 -0
- package/dist/resources/files.mjs +47 -0
- package/dist/resources/files.mjs.map +1 -0
- package/dist/resources/models/models.d.ts +142 -0
- package/dist/resources/models/models.d.ts.map +1 -0
- package/dist/resources/models/models.js +76 -0
- package/dist/resources/models/models.js.map +1 -0
- package/dist/resources/models/models.mjs +49 -0
- package/dist/resources/models/models.mjs.map +1 -0
- package/dist/resources/moderations.d.ts +80 -0
- package/dist/resources/moderations.d.ts.map +1 -0
- package/dist/resources/moderations.js +21 -0
- package/dist/resources/moderations.js.map +1 -0
- package/dist/resources/moderations.mjs +17 -0
- package/dist/resources/moderations.mjs.map +1 -0
- package/dist/resources/prompts/prompts.d.ts +110 -0
- package/dist/resources/prompts/prompts.d.ts.map +1 -0
- package/dist/resources/prompts/prompts.js +85 -0
- package/dist/resources/prompts/prompts.js.map +1 -0
- package/dist/resources/prompts/prompts.mjs +58 -0
- package/dist/resources/prompts/prompts.mjs.map +1 -0
- package/dist/resources/prompts/versions.d.ts +10 -0
- package/dist/resources/prompts/versions.d.ts.map +1 -0
- package/dist/resources/prompts/versions.js +21 -0
- package/dist/resources/prompts/versions.js.map +1 -0
- package/dist/resources/prompts/versions.mjs +17 -0
- package/dist/resources/prompts/versions.mjs.map +1 -0
- package/dist/resources/responses/input-items.d.ts +410 -0
- package/dist/resources/responses/input-items.d.ts.map +1 -0
- package/dist/resources/responses/responses.d.ts +3180 -0
- package/dist/resources/responses/responses.d.ts.map +1 -0
- package/dist/resources/responses/responses.js.map +1 -0
- package/dist/resources/responses/responses.mjs.map +1 -0
- package/dist/resources/safety.d.ts +294 -0
- package/dist/resources/safety.d.ts.map +1 -0
- package/dist/resources/safety.js +21 -0
- package/dist/resources/safety.js.map +1 -0
- package/dist/resources/safety.mjs +17 -0
- package/dist/resources/safety.mjs.map +1 -0
- package/dist/resources/scoring-functions.d.ts +232 -0
- package/dist/resources/scoring-functions.d.ts.map +1 -0
- package/dist/resources/scoring.d.ts +157 -0
- package/dist/resources/scoring.d.ts.map +1 -0
- package/dist/resources/shared.d.ts +464 -0
- package/dist/resources/shared.d.ts.map +1 -0
- package/dist/resources/shields.d.ts +82 -0
- package/dist/resources/shields.d.ts.map +1 -0
- package/dist/resources/vector-io.d.ts +375 -0
- package/dist/resources/vector-io.d.ts.map +1 -0
- package/dist/resources/vector-io.js +31 -0
- package/dist/resources/vector-io.mjs +27 -0
- package/dist/resources/vector-stores/file-batches.d.ts +117 -0
- package/dist/resources/vector-stores/file-batches.d.ts.map +1 -0
- package/dist/resources/vector-stores/file-batches.js +42 -0
- package/dist/resources/vector-stores/file-batches.js.map +1 -0
- package/dist/resources/vector-stores/file-batches.mjs +38 -0
- package/dist/resources/vector-stores/file-batches.mjs.map +1 -0
- package/dist/resources/vector-stores/files.d.ts +235 -0
- package/dist/resources/vector-stores/files.d.ts.map +1 -0
- package/dist/resources/vector-stores/files.js +60 -0
- package/dist/resources/vector-stores/files.js.map +1 -0
- package/dist/resources/vector-stores/files.mjs +55 -0
- package/dist/resources/vector-stores/files.mjs.map +1 -0
- package/dist/resources/vector-stores/vector-stores.d.ts +322 -0
- package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -0
- package/dist/resources/vector-stores/vector-stores.js +92 -0
- package/dist/resources/vector-stores/vector-stores.js.map +1 -0
- package/dist/resources/vector-stores/vector-stores.mjs +64 -0
- package/dist/resources/vector-stores/vector-stores.mjs.map +1 -0
- package/dist/src/_shims/MultipartBody.ts +15 -0
- package/dist/src/_shims/README.md +46 -0
- package/dist/src/_shims/auto/runtime-bun.ts +10 -0
- package/dist/src/_shims/auto/runtime-node.ts +10 -0
- package/dist/src/_shims/auto/runtime.ts +10 -0
- package/dist/src/_shims/auto/types-node.ts +10 -0
- package/dist/src/_shims/auto/types.d.ts +107 -0
- package/dist/src/_shims/auto/types.js +9 -0
- package/dist/src/_shims/auto/types.mjs +10 -0
- package/dist/src/_shims/bun-runtime.ts +20 -0
- package/dist/src/_shims/index.d.ts +89 -0
- package/dist/src/_shims/index.js +23 -0
- package/dist/src/_shims/index.mjs +18 -0
- package/dist/src/_shims/manual-types.d.ts +18 -0
- package/dist/src/_shims/manual-types.js +9 -0
- package/dist/src/_shims/manual-types.mjs +10 -0
- package/dist/src/_shims/node-runtime.ts +87 -0
- package/dist/src/_shims/node-types.d.ts +48 -0
- package/dist/src/_shims/node-types.js +9 -0
- package/dist/src/_shims/node-types.mjs +10 -0
- package/dist/src/_shims/registry.ts +73 -0
- package/dist/src/_shims/web-runtime.ts +109 -0
- package/dist/src/_shims/web-types.d.ts +89 -0
- package/dist/src/_shims/web-types.js +9 -0
- package/dist/src/_shims/web-types.mjs +10 -0
- package/dist/src/core.ts +1265 -0
- package/dist/src/error.ts +137 -0
- package/dist/src/index.ts +586 -0
- package/dist/src/internal/decoders/line.ts +182 -0
- package/dist/src/internal/qs/LICENSE.md +13 -0
- package/dist/src/internal/qs/README.md +3 -0
- package/dist/src/internal/qs/formats.ts +15 -0
- package/dist/src/internal/qs/index.ts +19 -0
- package/dist/src/internal/qs/stringify.ts +394 -0
- package/dist/src/internal/qs/types.ts +77 -0
- package/dist/src/internal/qs/utils.ts +271 -0
- package/dist/src/internal/stream-utils.ts +38 -0
- package/dist/src/lib/.keep +4 -0
- package/dist/src/lib/response-helpers.ts +60 -0
- package/dist/src/pagination.ts +134 -0
- package/dist/src/resource.ts +18 -0
- package/dist/src/resources/alpha/admin.ts +84 -0
- package/dist/src/resources/alpha/alpha.ts +93 -0
- package/dist/src/resources/alpha/benchmarks.ts +152 -0
- package/dist/src/resources/alpha/eval/eval.ts +255 -0
- package/dist/src/resources/alpha/eval/index.ts +19 -0
- package/dist/src/resources/alpha/eval/jobs.ts +41 -0
- package/dist/src/resources/alpha/eval.ts +10 -0
- package/dist/src/resources/alpha/index.ts +36 -0
- package/dist/src/resources/alpha/inference.ts +183 -0
- package/dist/src/resources/alpha/post-training/index.ts +17 -0
- package/dist/src/resources/alpha/post-training/job.ts +161 -0
- package/dist/src/resources/alpha/post-training/post-training.ts +385 -0
- package/dist/src/resources/alpha/post-training.ts +9 -0
- package/dist/src/resources/alpha.ts +9 -0
- package/dist/src/resources/batches.ts +572 -0
- package/dist/src/resources/beta/beta.ts +41 -0
- package/dist/src/resources/beta/datasets.ts +445 -0
- package/dist/src/resources/beta/index.ts +20 -0
- package/dist/src/resources/beta.ts +9 -0
- package/dist/src/resources/chat/chat.ts +348 -0
- package/dist/src/resources/chat/completions.ts +2934 -0
- package/dist/src/resources/chat/index.ts +19 -0
- package/dist/src/resources/chat.ts +9 -0
- package/dist/src/resources/completions.ts +344 -0
- package/dist/src/resources/conversations/conversations.ts +507 -0
- package/dist/src/resources/conversations/index.ts +25 -0
- package/dist/src/resources/conversations/items.ts +1590 -0
- package/dist/src/resources/conversations.ts +9 -0
- package/dist/src/resources/embeddings.ts +122 -0
- package/dist/src/resources/files.ts +211 -0
- package/dist/src/resources/index.ts +139 -0
- package/dist/src/resources/inspect.ts +27 -0
- package/dist/src/resources/models/index.ts +18 -0
- package/dist/src/resources/models/models.ts +194 -0
- package/dist/src/resources/models/openai.ts +22 -0
- package/dist/src/resources/models.ts +9 -0
- package/dist/src/resources/moderations.ts +94 -0
- package/dist/src/resources/prompts/index.ts +19 -0
- package/dist/src/resources/prompts/prompts.ts +185 -0
- package/dist/src/resources/prompts/versions.ts +24 -0
- package/dist/src/resources/prompts.ts +9 -0
- package/dist/src/resources/providers.ts +38 -0
- package/dist/src/resources/responses/index.ts +21 -0
- package/dist/src/resources/responses/input-items.ts +631 -0
- package/dist/src/resources/responses/responses.ts +4569 -0
- package/dist/src/resources/responses.ts +9 -0
- package/dist/src/resources/routes.ts +52 -0
- package/dist/src/resources/safety.ts +364 -0
- package/dist/src/resources/scoring-functions.ts +365 -0
- package/dist/src/resources/scoring.ts +221 -0
- package/dist/src/resources/shared.ts +559 -0
- package/dist/src/resources/shields.ts +119 -0
- package/dist/src/resources/tool-runtime.ts +217 -0
- package/dist/src/resources/toolgroups.ts +135 -0
- package/dist/src/resources/tools.ts +52 -0
- package/dist/src/resources/vector-io.ts +485 -0
- package/dist/src/resources/vector-stores/file-batches.ts +207 -0
- package/dist/src/resources/vector-stores/files.ts +378 -0
- package/dist/src/resources/vector-stores/index.ts +38 -0
- package/dist/src/resources/vector-stores/vector-stores.ts +476 -0
- package/dist/src/resources/vector-stores.ts +9 -0
- package/dist/src/resources.ts +7 -0
- package/dist/src/shims/node.ts +56 -0
- package/dist/src/shims/web.ts +56 -0
- package/dist/src/streaming.ts +297 -0
- package/dist/src/uploads.ts +261 -0
- package/dist/src/version.ts +7 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +10 -0
- package/dist/version.mjs +7 -0
- package/examples/.keep +4 -0
- package/jest.config.ts +29 -0
- package/package.json +55 -35
- package/release-please-config.json +64 -0
- package/scripts/bootstrap +30 -0
- package/scripts/build +56 -0
- package/scripts/fast-format +40 -0
- package/scripts/format +8 -0
- package/scripts/lint +11 -0
- package/scripts/mock +41 -0
- package/scripts/test +56 -0
- package/scripts/utils/check-is-in-git-install.sh +15 -0
- package/scripts/utils/check-version.cjs +27 -0
- package/scripts/utils/fix-index-exports.cjs +21 -0
- package/scripts/utils/git-swap.sh +19 -0
- package/scripts/utils/make-dist-package-json.cjs +28 -0
- package/scripts/utils/postprocess-files.cjs +172 -0
- package/scripts/utils/upload-artifact.sh +33 -0
- package/src/_shims/auto/runtime-deno.ts +10 -0
- package/src/_shims/auto/types-deno.ts +10 -0
- package/src/_shims/auto/types.d.ts +18 -18
- package/src/_shims/index-deno.ts +118 -0
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/index.mjs +1 -1
- package/src/core.ts +6 -0
- package/src/resources/alpha/alpha.ts +8 -8
- package/src/resources/alpha/eval/eval.ts +28 -7
- package/src/resources/alpha/inference.ts +58 -7
- package/src/resources/alpha/post-training/index.ts +1 -9
- package/src/resources/alpha/post-training/job.ts +5 -21
- package/src/resources/alpha/post-training/post-training.ts +33 -20
- package/src/resources/beta/datasets.ts +14 -0
- package/src/resources/chat/chat.ts +118 -16
- package/src/resources/chat/completions.ts +1126 -67
- package/src/resources/completions.ts +133 -24
- package/src/resources/conversations/conversations.ts +30 -14
- package/src/resources/conversations/items.ts +361 -136
- package/src/resources/embeddings.ts +46 -8
- package/src/resources/files.ts +58 -31
- package/src/resources/models/models.ts +21 -6
- package/src/resources/moderations.ts +38 -5
- package/src/resources/prompts/prompts.ts +26 -12
- package/src/resources/prompts/versions.ts +0 -2
- package/src/resources/responses/input-items.ts +64 -13
- package/src/resources/responses/responses.ts +523 -252
- package/src/resources/safety.ts +131 -8
- package/src/resources/scoring-functions.ts +23 -1
- package/src/resources/scoring.ts +24 -0
- package/src/resources/shared.ts +53 -7
- package/src/resources/shields.ts +21 -0
- package/src/resources/vector-io.ts +95 -78
- package/src/resources/vector-stores/file-batches.ts +13 -7
- package/src/resources/vector-stores/files.ts +31 -11
- package/src/resources/vector-stores/vector-stores.ts +89 -15
- package/src/version.ts +1 -1
- package/tests/api-resources/alpha/admin.test.ts +111 -0
- package/tests/api-resources/alpha/benchmarks.test.ts +94 -0
- package/tests/api-resources/alpha/eval/eval.test.ts +206 -0
- package/tests/api-resources/alpha/eval/jobs.test.ts +68 -0
- package/tests/api-resources/alpha/inference.test.ts +38 -0
- package/tests/api-resources/alpha/post-training/job.test.ts +86 -0
- package/tests/api-resources/alpha/post-training/post-training.test.ts +134 -0
- package/tests/api-resources/batches.test.ts +100 -0
- package/tests/api-resources/beta/datasets.test.ts +141 -0
- package/tests/api-resources/chat/completions.test.ts +115 -0
- package/tests/api-resources/completions.test.ts +48 -0
- package/tests/api-resources/conversations/conversations.test.ts +76 -0
- package/tests/api-resources/conversations/items.test.ts +117 -0
- package/tests/api-resources/embeddings.test.ts +35 -0
- package/tests/api-resources/files.test.ts +123 -0
- package/tests/api-resources/inspect.test.ts +50 -0
- package/tests/api-resources/models/models.test.ts +89 -0
- package/tests/api-resources/models/openai.test.ts +32 -0
- package/tests/api-resources/moderations.test.ts +29 -0
- package/tests/api-resources/prompts/prompts.test.ts +125 -0
- package/tests/api-resources/prompts/versions.test.ts +32 -0
- package/tests/api-resources/providers.test.ts +50 -0
- package/tests/api-resources/responses/input-items.test.ts +49 -0
- package/tests/api-resources/responses/responses.test.ts +132 -0
- package/tests/api-resources/routes.test.ts +39 -0
- package/tests/api-resources/safety.test.ts +41 -0
- package/tests/api-resources/scoring-functions.test.ts +100 -0
- package/tests/api-resources/scoring.test.ts +73 -0
- package/tests/api-resources/shields.test.ts +88 -0
- package/tests/api-resources/tool-runtime.test.ts +68 -0
- package/tests/api-resources/toolgroups.test.ts +91 -0
- package/tests/api-resources/tools.test.ts +57 -0
- package/tests/api-resources/vector-io.test.ts +84 -0
- package/tests/api-resources/vector-stores/file-batches.test.ts +113 -0
- package/tests/api-resources/vector-stores/files.test.ts +153 -0
- package/tests/api-resources/vector-stores/vector-stores.test.ts +134 -0
- package/tests/form.test.ts +71 -0
- package/tests/index.test.ts +438 -0
- package/tests/internal/decoders/line.test.ts +134 -0
- package/tests/qs/empty-keys-cases.ts +277 -0
- package/tests/qs/stringify.test.ts +2238 -0
- package/tests/qs/utils.test.ts +175 -0
- package/tests/responses.test.ts +91 -0
- package/tests/streaming.test.ts +250 -0
- package/tests/stringifyQuery.test.ts +29 -0
- package/tests/uploads.test.ts +71 -0
- package/tsc-multi.json +7 -0
- package/tsconfig.build.json +18 -0
- package/tsconfig.deno.json +15 -0
- package/tsconfig.dist-src.json +11 -0
- package/tsconfig.json +38 -0
- package/core.d.ts.map +0 -1
- package/core.js +0 -940
- package/core.js.map +0 -1
- package/core.mjs +0 -908
- package/core.mjs.map +0 -1
- package/resources/alpha/alpha.d.ts +0 -26
- package/resources/alpha/alpha.d.ts.map +0 -1
- package/resources/alpha/alpha.js +0 -61
- package/resources/alpha/alpha.js.map +0 -1
- package/resources/alpha/alpha.mjs +0 -34
- package/resources/alpha/alpha.mjs.map +0 -1
- package/resources/alpha/eval/eval.d.ts +0 -160
- package/resources/alpha/eval/eval.d.ts.map +0 -1
- package/resources/alpha/eval/eval.js.map +0 -1
- package/resources/alpha/eval/eval.mjs.map +0 -1
- package/resources/alpha/inference.d.ts +0 -85
- package/resources/alpha/inference.d.ts.map +0 -1
- package/resources/alpha/post-training/index.d.ts +0 -3
- package/resources/alpha/post-training/index.d.ts.map +0 -1
- package/resources/alpha/post-training/index.js.map +0 -1
- package/resources/alpha/post-training/index.mjs +0 -10
- package/resources/alpha/post-training/index.mjs.map +0 -1
- package/resources/alpha/post-training/job.d.ts +0 -113
- package/resources/alpha/post-training/job.d.ts.map +0 -1
- package/resources/alpha/post-training/job.js +0 -43
- package/resources/alpha/post-training/job.js.map +0 -1
- package/resources/alpha/post-training/job.mjs +0 -39
- package/resources/alpha/post-training/job.mjs.map +0 -1
- package/resources/alpha/post-training/post-training.d.ts +0 -245
- package/resources/alpha/post-training/post-training.d.ts.map +0 -1
- package/resources/alpha/post-training/post-training.js.map +0 -1
- package/resources/alpha/post-training/post-training.mjs +0 -30
- package/resources/alpha/post-training/post-training.mjs.map +0 -1
- package/resources/beta/datasets.d.ts +0 -338
- package/resources/beta/datasets.d.ts.map +0 -1
- package/resources/chat/chat.d.ts +0 -172
- package/resources/chat/chat.d.ts.map +0 -1
- package/resources/chat/chat.js.map +0 -1
- package/resources/chat/chat.mjs.map +0 -1
- package/resources/chat/completions.d.ts +0 -1356
- package/resources/chat/completions.d.ts.map +0 -1
- package/resources/chat/completions.js +0 -33
- package/resources/chat/completions.js.map +0 -1
- package/resources/chat/completions.mjs +0 -29
- package/resources/chat/completions.mjs.map +0 -1
- package/resources/completions.d.ts +0 -158
- package/resources/completions.d.ts.map +0 -1
- package/resources/completions.js.map +0 -1
- package/resources/completions.mjs.map +0 -1
- package/resources/conversations/conversations.d.ts +0 -320
- package/resources/conversations/conversations.d.ts.map +0 -1
- package/resources/conversations/conversations.js +0 -78
- package/resources/conversations/conversations.js.map +0 -1
- package/resources/conversations/conversations.mjs +0 -51
- package/resources/conversations/conversations.mjs.map +0 -1
- package/resources/conversations/items.d.ts +0 -874
- package/resources/conversations/items.d.ts.map +0 -1
- package/resources/conversations/items.js +0 -51
- package/resources/conversations/items.js.map +0 -1
- package/resources/conversations/items.mjs +0 -46
- package/resources/conversations/items.mjs.map +0 -1
- package/resources/embeddings.d.ts +0 -52
- package/resources/embeddings.d.ts.map +0 -1
- package/resources/embeddings.js +0 -24
- package/resources/embeddings.js.map +0 -1
- package/resources/embeddings.mjs +0 -20
- package/resources/embeddings.mjs.map +0 -1
- package/resources/files.d.ts +0 -120
- package/resources/files.d.ts.map +0 -1
- package/resources/files.js +0 -87
- package/resources/files.js.map +0 -1
- package/resources/files.mjs +0 -59
- package/resources/files.mjs.map +0 -1
- package/resources/models/models.d.ts +0 -127
- package/resources/models/models.d.ts.map +0 -1
- package/resources/models/models.js +0 -82
- package/resources/models/models.js.map +0 -1
- package/resources/models/models.mjs +0 -55
- package/resources/models/models.mjs.map +0 -1
- package/resources/moderations.d.ts +0 -47
- package/resources/moderations.d.ts.map +0 -1
- package/resources/moderations.js +0 -23
- package/resources/moderations.js.map +0 -1
- package/resources/moderations.mjs +0 -19
- package/resources/moderations.mjs.map +0 -1
- package/resources/prompts/prompts.d.ts +0 -96
- package/resources/prompts/prompts.d.ts.map +0 -1
- package/resources/prompts/prompts.js +0 -93
- package/resources/prompts/prompts.js.map +0 -1
- package/resources/prompts/prompts.mjs +0 -66
- package/resources/prompts/prompts.mjs.map +0 -1
- package/resources/prompts/versions.d.ts +0 -12
- package/resources/prompts/versions.d.ts.map +0 -1
- package/resources/prompts/versions.js +0 -23
- package/resources/prompts/versions.js.map +0 -1
- package/resources/prompts/versions.mjs +0 -19
- package/resources/prompts/versions.mjs.map +0 -1
- package/resources/responses/input-items.d.ts +0 -367
- package/resources/responses/input-items.d.ts.map +0 -1
- package/resources/responses/responses.d.ts +0 -2871
- package/resources/responses/responses.d.ts.map +0 -1
- package/resources/responses/responses.js.map +0 -1
- package/resources/responses/responses.mjs.map +0 -1
- package/resources/safety.d.ts +0 -172
- package/resources/safety.d.ts.map +0 -1
- package/resources/safety.js +0 -23
- package/resources/safety.js.map +0 -1
- package/resources/safety.mjs +0 -19
- package/resources/safety.mjs.map +0 -1
- package/resources/scoring-functions.d.ts +0 -210
- package/resources/scoring-functions.d.ts.map +0 -1
- package/resources/scoring.d.ts +0 -133
- package/resources/scoring.d.ts.map +0 -1
- package/resources/shared.d.ts +0 -418
- package/resources/shared.d.ts.map +0 -1
- package/resources/shields.d.ts +0 -61
- package/resources/shields.d.ts.map +0 -1
- package/resources/vector-io.d.ts +0 -358
- package/resources/vector-io.d.ts.map +0 -1
- package/resources/vector-io.js +0 -31
- package/resources/vector-io.mjs +0 -27
- package/resources/vector-stores/file-batches.d.ts +0 -111
- package/resources/vector-stores/file-batches.d.ts.map +0 -1
- package/resources/vector-stores/file-batches.js +0 -45
- package/resources/vector-stores/file-batches.js.map +0 -1
- package/resources/vector-stores/file-batches.mjs +0 -41
- package/resources/vector-stores/file-batches.mjs.map +0 -1
- package/resources/vector-stores/files.d.ts +0 -213
- package/resources/vector-stores/files.d.ts.map +0 -1
- package/resources/vector-stores/files.js +0 -60
- package/resources/vector-stores/files.js.map +0 -1
- package/resources/vector-stores/files.mjs +0 -55
- package/resources/vector-stores/files.mjs.map +0 -1
- package/resources/vector-stores/vector-stores.d.ts +0 -248
- package/resources/vector-stores/vector-stores.d.ts.map +0 -1
- package/resources/vector-stores/vector-stores.js +0 -97
- package/resources/vector-stores/vector-stores.js.map +0 -1
- package/resources/vector-stores/vector-stores.mjs +0 -69
- package/resources/vector-stores/vector-stores.mjs.map +0 -1
- package/version.d.ts +0 -2
- package/version.js +0 -10
- package/version.mjs +0 -7
- /package/{_shims → dist/_shims}/MultipartBody.d.ts +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.js +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.js.map +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.mjs +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.mjs.map +0 -0
- /package/{_shims → dist/_shims}/README.md +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.js +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.js +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.js +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.js +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/types.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/types.js +0 -0
- /package/{_shims → dist/_shims}/auto/types.mjs +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.js +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/index.d.ts +0 -0
- /package/{_shims → dist/_shims}/index.js +0 -0
- /package/{_shims → dist/_shims}/index.mjs +0 -0
- /package/{_shims → dist/_shims}/manual-types.d.ts +0 -0
- /package/{_shims → dist/_shims}/manual-types.js +0 -0
- /package/{_shims → dist/_shims}/manual-types.mjs +0 -0
- /package/{_shims → dist/_shims}/node-runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/node-runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/node-runtime.js +0 -0
- /package/{_shims → dist/_shims}/node-runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/node-runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/node-runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/node-types.d.ts +0 -0
- /package/{_shims → dist/_shims}/node-types.js +0 -0
- /package/{_shims → dist/_shims}/node-types.mjs +0 -0
- /package/{_shims → dist/_shims}/registry.d.ts +0 -0
- /package/{_shims → dist/_shims}/registry.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/registry.js +0 -0
- /package/{_shims → dist/_shims}/registry.js.map +0 -0
- /package/{_shims → dist/_shims}/registry.mjs +0 -0
- /package/{_shims → dist/_shims}/registry.mjs.map +0 -0
- /package/{_shims → dist/_shims}/web-runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/web-runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/web-runtime.js +0 -0
- /package/{_shims → dist/_shims}/web-runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/web-runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/web-runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/web-types.d.ts +0 -0
- /package/{_shims → dist/_shims}/web-types.js +0 -0
- /package/{_shims → dist/_shims}/web-types.mjs +0 -0
- /package/{core.d.ts → dist/core.d.ts} +0 -0
- /package/{error.d.ts → dist/error.d.ts} +0 -0
- /package/{error.d.ts.map → dist/error.d.ts.map} +0 -0
- /package/{error.js → dist/error.js} +0 -0
- /package/{error.js.map → dist/error.js.map} +0 -0
- /package/{error.mjs → dist/error.mjs} +0 -0
- /package/{error.mjs.map → dist/error.mjs.map} +0 -0
- /package/{index.d.mts → dist/index.d.mts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.d.ts.map → dist/index.d.ts.map} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.js.map → dist/index.js.map} +0 -0
- /package/{index.mjs → dist/index.mjs} +0 -0
- /package/{index.mjs.map → dist/index.mjs.map} +0 -0
- /package/{internal → dist/internal}/decoders/line.d.ts +0 -0
- /package/{internal → dist/internal}/decoders/line.d.ts.map +0 -0
- /package/{internal → dist/internal}/decoders/line.js +0 -0
- /package/{internal → dist/internal}/decoders/line.js.map +0 -0
- /package/{internal → dist/internal}/decoders/line.mjs +0 -0
- /package/{internal → dist/internal}/decoders/line.mjs.map +0 -0
- /package/{internal → dist/internal}/qs/formats.d.ts +0 -0
- /package/{internal → dist/internal}/qs/formats.d.ts.map +0 -0
- /package/{internal → dist/internal}/qs/formats.js +0 -0
- /package/{internal → dist/internal}/qs/formats.js.map +0 -0
- /package/{internal → dist/internal}/qs/formats.mjs +0 -0
- /package/{internal → dist/internal}/qs/formats.mjs.map +0 -0
- /package/{internal → dist/internal}/qs/index.d.ts +0 -0
- /package/{internal → dist/internal}/qs/index.d.ts.map +0 -0
- /package/{internal → dist/internal}/qs/index.js +0 -0
- /package/{internal → dist/internal}/qs/index.js.map +0 -0
- /package/{internal → dist/internal}/qs/index.mjs +0 -0
- /package/{internal → dist/internal}/qs/index.mjs.map +0 -0
- /package/{internal → dist/internal}/qs/stringify.d.ts +0 -0
- /package/{internal → dist/internal}/qs/stringify.d.ts.map +0 -0
- /package/{internal → dist/internal}/qs/stringify.js +0 -0
- /package/{internal → dist/internal}/qs/stringify.js.map +0 -0
- /package/{internal → dist/internal}/qs/stringify.mjs +0 -0
- /package/{internal → dist/internal}/qs/stringify.mjs.map +0 -0
- /package/{internal → dist/internal}/qs/types.d.ts +0 -0
- /package/{internal → dist/internal}/qs/types.d.ts.map +0 -0
- /package/{internal → dist/internal}/qs/types.js +0 -0
- /package/{internal → dist/internal}/qs/types.js.map +0 -0
- /package/{internal → dist/internal}/qs/types.mjs +0 -0
- /package/{internal → dist/internal}/qs/types.mjs.map +0 -0
- /package/{internal → dist/internal}/qs/utils.d.ts +0 -0
- /package/{internal → dist/internal}/qs/utils.d.ts.map +0 -0
- /package/{internal → dist/internal}/qs/utils.js +0 -0
- /package/{internal → dist/internal}/qs/utils.js.map +0 -0
- /package/{internal → dist/internal}/qs/utils.mjs +0 -0
- /package/{internal → dist/internal}/qs/utils.mjs.map +0 -0
- /package/{internal → dist/internal}/stream-utils.d.ts +0 -0
- /package/{internal → dist/internal}/stream-utils.d.ts.map +0 -0
- /package/{internal → dist/internal}/stream-utils.js +0 -0
- /package/{internal → dist/internal}/stream-utils.js.map +0 -0
- /package/{internal → dist/internal}/stream-utils.mjs +0 -0
- /package/{internal → dist/internal}/stream-utils.mjs.map +0 -0
- /package/{lib → dist/lib}/response-helpers.d.ts +0 -0
- /package/{lib → dist/lib}/response-helpers.d.ts.map +0 -0
- /package/{lib → dist/lib}/response-helpers.js +0 -0
- /package/{lib → dist/lib}/response-helpers.js.map +0 -0
- /package/{lib → dist/lib}/response-helpers.mjs +0 -0
- /package/{lib → dist/lib}/response-helpers.mjs.map +0 -0
- /package/{pagination.d.ts → dist/pagination.d.ts} +0 -0
- /package/{pagination.d.ts.map → dist/pagination.d.ts.map} +0 -0
- /package/{pagination.js → dist/pagination.js} +0 -0
- /package/{pagination.js.map → dist/pagination.js.map} +0 -0
- /package/{pagination.mjs → dist/pagination.mjs} +0 -0
- /package/{pagination.mjs.map → dist/pagination.mjs.map} +0 -0
- /package/{resource.d.ts → dist/resource.d.ts} +0 -0
- /package/{resource.d.ts.map → dist/resource.d.ts.map} +0 -0
- /package/{resource.js → dist/resource.js} +0 -0
- /package/{resource.js.map → dist/resource.js.map} +0 -0
- /package/{resource.mjs → dist/resource.mjs} +0 -0
- /package/{resource.mjs.map → dist/resource.mjs.map} +0 -0
- /package/{resources → dist/resources}/alpha/admin.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/admin.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/admin.js +0 -0
- /package/{resources → dist/resources}/alpha/admin.js.map +0 -0
- /package/{resources → dist/resources}/alpha/admin.mjs +0 -0
- /package/{resources → dist/resources}/alpha/admin.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/benchmarks.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/benchmarks.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/benchmarks.js +0 -0
- /package/{resources → dist/resources}/alpha/benchmarks.js.map +0 -0
- /package/{resources → dist/resources}/alpha/benchmarks.mjs +0 -0
- /package/{resources → dist/resources}/alpha/benchmarks.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/eval/eval.js +0 -0
- /package/{resources → dist/resources}/alpha/eval/eval.mjs +0 -0
- /package/{resources → dist/resources}/alpha/eval/index.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/eval/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/eval/index.js +0 -0
- /package/{resources → dist/resources}/alpha/eval/index.js.map +0 -0
- /package/{resources → dist/resources}/alpha/eval/index.mjs +0 -0
- /package/{resources → dist/resources}/alpha/eval/index.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/eval/jobs.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/eval/jobs.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/eval/jobs.js +0 -0
- /package/{resources → dist/resources}/alpha/eval/jobs.js.map +0 -0
- /package/{resources → dist/resources}/alpha/eval/jobs.mjs +0 -0
- /package/{resources → dist/resources}/alpha/eval/jobs.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/eval.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/eval.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/eval.js +0 -0
- /package/{resources → dist/resources}/alpha/eval.js.map +0 -0
- /package/{resources → dist/resources}/alpha/eval.mjs +0 -0
- /package/{resources → dist/resources}/alpha/eval.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/index.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/index.js +0 -0
- /package/{resources → dist/resources}/alpha/index.js.map +0 -0
- /package/{resources → dist/resources}/alpha/index.mjs +0 -0
- /package/{resources → dist/resources}/alpha/index.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/inference.js +0 -0
- /package/{resources → dist/resources}/alpha/inference.js.map +0 -0
- /package/{resources → dist/resources}/alpha/inference.mjs +0 -0
- /package/{resources → dist/resources}/alpha/inference.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha/post-training/index.js +0 -0
- /package/{resources → dist/resources}/alpha/post-training/post-training.js +0 -0
- /package/{resources → dist/resources}/alpha/post-training.d.ts +0 -0
- /package/{resources → dist/resources}/alpha/post-training.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha/post-training.js +0 -0
- /package/{resources → dist/resources}/alpha/post-training.js.map +0 -0
- /package/{resources → dist/resources}/alpha/post-training.mjs +0 -0
- /package/{resources → dist/resources}/alpha/post-training.mjs.map +0 -0
- /package/{resources → dist/resources}/alpha.d.ts +0 -0
- /package/{resources → dist/resources}/alpha.d.ts.map +0 -0
- /package/{resources → dist/resources}/alpha.js +0 -0
- /package/{resources → dist/resources}/alpha.js.map +0 -0
- /package/{resources → dist/resources}/alpha.mjs +0 -0
- /package/{resources → dist/resources}/alpha.mjs.map +0 -0
- /package/{resources → dist/resources}/batches.d.ts +0 -0
- /package/{resources → dist/resources}/batches.d.ts.map +0 -0
- /package/{resources → dist/resources}/batches.js +0 -0
- /package/{resources → dist/resources}/batches.js.map +0 -0
- /package/{resources → dist/resources}/batches.mjs +0 -0
- /package/{resources → dist/resources}/batches.mjs.map +0 -0
- /package/{resources → dist/resources}/beta/beta.d.ts +0 -0
- /package/{resources → dist/resources}/beta/beta.d.ts.map +0 -0
- /package/{resources → dist/resources}/beta/beta.js +0 -0
- /package/{resources → dist/resources}/beta/beta.js.map +0 -0
- /package/{resources → dist/resources}/beta/beta.mjs +0 -0
- /package/{resources → dist/resources}/beta/beta.mjs.map +0 -0
- /package/{resources → dist/resources}/beta/datasets.js +0 -0
- /package/{resources → dist/resources}/beta/datasets.js.map +0 -0
- /package/{resources → dist/resources}/beta/datasets.mjs +0 -0
- /package/{resources → dist/resources}/beta/datasets.mjs.map +0 -0
- /package/{resources → dist/resources}/beta/index.d.ts +0 -0
- /package/{resources → dist/resources}/beta/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/beta/index.js +0 -0
- /package/{resources → dist/resources}/beta/index.js.map +0 -0
- /package/{resources → dist/resources}/beta/index.mjs +0 -0
- /package/{resources → dist/resources}/beta/index.mjs.map +0 -0
- /package/{resources → dist/resources}/beta.d.ts +0 -0
- /package/{resources → dist/resources}/beta.d.ts.map +0 -0
- /package/{resources → dist/resources}/beta.js +0 -0
- /package/{resources → dist/resources}/beta.js.map +0 -0
- /package/{resources → dist/resources}/beta.mjs +0 -0
- /package/{resources → dist/resources}/beta.mjs.map +0 -0
- /package/{resources → dist/resources}/chat/chat.js +0 -0
- /package/{resources → dist/resources}/chat/chat.mjs +0 -0
- /package/{resources → dist/resources}/chat/index.d.ts +0 -0
- /package/{resources → dist/resources}/chat/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/chat/index.js +0 -0
- /package/{resources → dist/resources}/chat/index.js.map +0 -0
- /package/{resources → dist/resources}/chat/index.mjs +0 -0
- /package/{resources → dist/resources}/chat/index.mjs.map +0 -0
- /package/{resources → dist/resources}/chat.d.ts +0 -0
- /package/{resources → dist/resources}/chat.d.ts.map +0 -0
- /package/{resources → dist/resources}/chat.js +0 -0
- /package/{resources → dist/resources}/chat.js.map +0 -0
- /package/{resources → dist/resources}/chat.mjs +0 -0
- /package/{resources → dist/resources}/chat.mjs.map +0 -0
- /package/{resources → dist/resources}/completions.js +0 -0
- /package/{resources → dist/resources}/completions.mjs +0 -0
- /package/{resources → dist/resources}/conversations/index.d.ts +0 -0
- /package/{resources → dist/resources}/conversations/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/conversations/index.js +0 -0
- /package/{resources → dist/resources}/conversations/index.js.map +0 -0
- /package/{resources → dist/resources}/conversations/index.mjs +0 -0
- /package/{resources → dist/resources}/conversations/index.mjs.map +0 -0
- /package/{resources → dist/resources}/conversations.d.ts +0 -0
- /package/{resources → dist/resources}/conversations.d.ts.map +0 -0
- /package/{resources → dist/resources}/conversations.js +0 -0
- /package/{resources → dist/resources}/conversations.js.map +0 -0
- /package/{resources → dist/resources}/conversations.mjs +0 -0
- /package/{resources → dist/resources}/conversations.mjs.map +0 -0
- /package/{resources → dist/resources}/index.d.ts +0 -0
- /package/{resources → dist/resources}/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/index.js +0 -0
- /package/{resources → dist/resources}/index.js.map +0 -0
- /package/{resources → dist/resources}/index.mjs +0 -0
- /package/{resources → dist/resources}/index.mjs.map +0 -0
- /package/{resources → dist/resources}/inspect.d.ts +0 -0
- /package/{resources → dist/resources}/inspect.d.ts.map +0 -0
- /package/{resources → dist/resources}/inspect.js +0 -0
- /package/{resources → dist/resources}/inspect.js.map +0 -0
- /package/{resources → dist/resources}/inspect.mjs +0 -0
- /package/{resources → dist/resources}/inspect.mjs.map +0 -0
- /package/{resources → dist/resources}/models/index.d.ts +0 -0
- /package/{resources → dist/resources}/models/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/models/index.js +0 -0
- /package/{resources → dist/resources}/models/index.js.map +0 -0
- /package/{resources → dist/resources}/models/index.mjs +0 -0
- /package/{resources → dist/resources}/models/index.mjs.map +0 -0
- /package/{resources → dist/resources}/models/openai.d.ts +0 -0
- /package/{resources → dist/resources}/models/openai.d.ts.map +0 -0
- /package/{resources → dist/resources}/models/openai.js +0 -0
- /package/{resources → dist/resources}/models/openai.js.map +0 -0
- /package/{resources → dist/resources}/models/openai.mjs +0 -0
- /package/{resources → dist/resources}/models/openai.mjs.map +0 -0
- /package/{resources → dist/resources}/models.d.ts +0 -0
- /package/{resources → dist/resources}/models.d.ts.map +0 -0
- /package/{resources → dist/resources}/models.js +0 -0
- /package/{resources → dist/resources}/models.js.map +0 -0
- /package/{resources → dist/resources}/models.mjs +0 -0
- /package/{resources → dist/resources}/models.mjs.map +0 -0
- /package/{resources → dist/resources}/prompts/index.d.ts +0 -0
- /package/{resources → dist/resources}/prompts/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/prompts/index.js +0 -0
- /package/{resources → dist/resources}/prompts/index.js.map +0 -0
- /package/{resources → dist/resources}/prompts/index.mjs +0 -0
- /package/{resources → dist/resources}/prompts/index.mjs.map +0 -0
- /package/{resources → dist/resources}/prompts.d.ts +0 -0
- /package/{resources → dist/resources}/prompts.d.ts.map +0 -0
- /package/{resources → dist/resources}/prompts.js +0 -0
- /package/{resources → dist/resources}/prompts.js.map +0 -0
- /package/{resources → dist/resources}/prompts.mjs +0 -0
- /package/{resources → dist/resources}/prompts.mjs.map +0 -0
- /package/{resources → dist/resources}/providers.d.ts +0 -0
- /package/{resources → dist/resources}/providers.d.ts.map +0 -0
- /package/{resources → dist/resources}/providers.js +0 -0
- /package/{resources → dist/resources}/providers.js.map +0 -0
- /package/{resources → dist/resources}/providers.mjs +0 -0
- /package/{resources → dist/resources}/providers.mjs.map +0 -0
- /package/{resources → dist/resources}/responses/index.d.ts +0 -0
- /package/{resources → dist/resources}/responses/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/responses/index.js +0 -0
- /package/{resources → dist/resources}/responses/index.js.map +0 -0
- /package/{resources → dist/resources}/responses/index.mjs +0 -0
- /package/{resources → dist/resources}/responses/index.mjs.map +0 -0
- /package/{resources → dist/resources}/responses/input-items.js +0 -0
- /package/{resources → dist/resources}/responses/input-items.js.map +0 -0
- /package/{resources → dist/resources}/responses/input-items.mjs +0 -0
- /package/{resources → dist/resources}/responses/input-items.mjs.map +0 -0
- /package/{resources → dist/resources}/responses/responses.js +0 -0
- /package/{resources → dist/resources}/responses/responses.mjs +0 -0
- /package/{resources → dist/resources}/responses.d.ts +0 -0
- /package/{resources → dist/resources}/responses.d.ts.map +0 -0
- /package/{resources → dist/resources}/responses.js +0 -0
- /package/{resources → dist/resources}/responses.js.map +0 -0
- /package/{resources → dist/resources}/responses.mjs +0 -0
- /package/{resources → dist/resources}/responses.mjs.map +0 -0
- /package/{resources → dist/resources}/routes.d.ts +0 -0
- /package/{resources → dist/resources}/routes.d.ts.map +0 -0
- /package/{resources → dist/resources}/routes.js +0 -0
- /package/{resources → dist/resources}/routes.js.map +0 -0
- /package/{resources → dist/resources}/routes.mjs +0 -0
- /package/{resources → dist/resources}/routes.mjs.map +0 -0
- /package/{resources → dist/resources}/scoring-functions.js +0 -0
- /package/{resources → dist/resources}/scoring-functions.js.map +0 -0
- /package/{resources → dist/resources}/scoring-functions.mjs +0 -0
- /package/{resources → dist/resources}/scoring-functions.mjs.map +0 -0
- /package/{resources → dist/resources}/scoring.js +0 -0
- /package/{resources → dist/resources}/scoring.js.map +0 -0
- /package/{resources → dist/resources}/scoring.mjs +0 -0
- /package/{resources → dist/resources}/scoring.mjs.map +0 -0
- /package/{resources → dist/resources}/shared.js +0 -0
- /package/{resources → dist/resources}/shared.js.map +0 -0
- /package/{resources → dist/resources}/shared.mjs +0 -0
- /package/{resources → dist/resources}/shared.mjs.map +0 -0
- /package/{resources → dist/resources}/shields.js +0 -0
- /package/{resources → dist/resources}/shields.js.map +0 -0
- /package/{resources → dist/resources}/shields.mjs +0 -0
- /package/{resources → dist/resources}/shields.mjs.map +0 -0
- /package/{resources → dist/resources}/tool-runtime.d.ts +0 -0
- /package/{resources → dist/resources}/tool-runtime.d.ts.map +0 -0
- /package/{resources → dist/resources}/tool-runtime.js +0 -0
- /package/{resources → dist/resources}/tool-runtime.js.map +0 -0
- /package/{resources → dist/resources}/tool-runtime.mjs +0 -0
- /package/{resources → dist/resources}/tool-runtime.mjs.map +0 -0
- /package/{resources → dist/resources}/toolgroups.d.ts +0 -0
- /package/{resources → dist/resources}/toolgroups.d.ts.map +0 -0
- /package/{resources → dist/resources}/toolgroups.js +0 -0
- /package/{resources → dist/resources}/toolgroups.js.map +0 -0
- /package/{resources → dist/resources}/toolgroups.mjs +0 -0
- /package/{resources → dist/resources}/toolgroups.mjs.map +0 -0
- /package/{resources → dist/resources}/tools.d.ts +0 -0
- /package/{resources → dist/resources}/tools.d.ts.map +0 -0
- /package/{resources → dist/resources}/tools.js +0 -0
- /package/{resources → dist/resources}/tools.js.map +0 -0
- /package/{resources → dist/resources}/tools.mjs +0 -0
- /package/{resources → dist/resources}/tools.mjs.map +0 -0
- /package/{resources → dist/resources}/vector-io.js.map +0 -0
- /package/{resources → dist/resources}/vector-io.mjs.map +0 -0
- /package/{resources → dist/resources}/vector-stores/index.d.ts +0 -0
- /package/{resources → dist/resources}/vector-stores/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/vector-stores/index.js +0 -0
- /package/{resources → dist/resources}/vector-stores/index.js.map +0 -0
- /package/{resources → dist/resources}/vector-stores/index.mjs +0 -0
- /package/{resources → dist/resources}/vector-stores/index.mjs.map +0 -0
- /package/{resources → dist/resources}/vector-stores.d.ts +0 -0
- /package/{resources → dist/resources}/vector-stores.d.ts.map +0 -0
- /package/{resources → dist/resources}/vector-stores.js +0 -0
- /package/{resources → dist/resources}/vector-stores.js.map +0 -0
- /package/{resources → dist/resources}/vector-stores.mjs +0 -0
- /package/{resources → dist/resources}/vector-stores.mjs.map +0 -0
- /package/{resources.d.ts → dist/resources.d.ts} +0 -0
- /package/{resources.d.ts.map → dist/resources.d.ts.map} +0 -0
- /package/{resources.js → dist/resources.js} +0 -0
- /package/{resources.js.map → dist/resources.js.map} +0 -0
- /package/{resources.mjs → dist/resources.mjs} +0 -0
- /package/{resources.mjs.map → dist/resources.mjs.map} +0 -0
- /package/{shims → dist/shims}/node.d.ts +0 -0
- /package/{shims → dist/shims}/node.d.ts.map +0 -0
- /package/{shims → dist/shims}/node.js +0 -0
- /package/{shims → dist/shims}/node.js.map +0 -0
- /package/{shims → dist/shims}/node.mjs +0 -0
- /package/{shims → dist/shims}/node.mjs.map +0 -0
- /package/{shims → dist/shims}/web.d.ts +0 -0
- /package/{shims → dist/shims}/web.d.ts.map +0 -0
- /package/{shims → dist/shims}/web.js +0 -0
- /package/{shims → dist/shims}/web.js.map +0 -0
- /package/{shims → dist/shims}/web.mjs +0 -0
- /package/{shims → dist/shims}/web.mjs.map +0 -0
- /package/{src → dist/src}/tsconfig.json +0 -0
- /package/{streaming.d.ts → dist/streaming.d.ts} +0 -0
- /package/{streaming.d.ts.map → dist/streaming.d.ts.map} +0 -0
- /package/{streaming.js → dist/streaming.js} +0 -0
- /package/{streaming.js.map → dist/streaming.js.map} +0 -0
- /package/{streaming.mjs → dist/streaming.mjs} +0 -0
- /package/{streaming.mjs.map → dist/streaming.mjs.map} +0 -0
- /package/{uploads.d.ts → dist/uploads.d.ts} +0 -0
- /package/{uploads.d.ts.map → dist/uploads.d.ts.map} +0 -0
- /package/{uploads.js → dist/uploads.js} +0 -0
- /package/{uploads.js.map → dist/uploads.js.map} +0 -0
- /package/{uploads.mjs → dist/uploads.mjs} +0 -0
- /package/{uploads.mjs.map → dist/uploads.mjs.map} +0 -0
- /package/{version.d.ts.map → dist/version.d.ts.map} +0 -0
- /package/{version.js.map → dist/version.js.map} +0 -0
- /package/{version.mjs.map → dist/version.mjs.map} +0 -0
|
@@ -102,6 +102,10 @@ export interface ResponseObject {
|
|
|
102
102
|
|
|
103
103
|
status: string;
|
|
104
104
|
|
|
105
|
+
store: boolean;
|
|
106
|
+
|
|
107
|
+
completed_at?: number | null;
|
|
108
|
+
|
|
105
109
|
/**
|
|
106
110
|
* Error details for failed OpenAI response requests.
|
|
107
111
|
*/
|
|
@@ -109,6 +113,8 @@ export interface ResponseObject {
|
|
|
109
113
|
|
|
110
114
|
instructions?: string | null;
|
|
111
115
|
|
|
116
|
+
max_output_tokens?: number | null;
|
|
117
|
+
|
|
112
118
|
max_tool_calls?: number | null;
|
|
113
119
|
|
|
114
120
|
metadata?: { [key: string]: string } | null;
|
|
@@ -124,6 +130,15 @@ export interface ResponseObject {
|
|
|
124
130
|
*/
|
|
125
131
|
prompt?: ResponseObject.Prompt | null;
|
|
126
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Configuration for reasoning effort in OpenAI responses.
|
|
135
|
+
*
|
|
136
|
+
* Controls how much reasoning the model performs before generating a response.
|
|
137
|
+
*/
|
|
138
|
+
reasoning?: ResponseObject.Reasoning | null;
|
|
139
|
+
|
|
140
|
+
safety_identifier?: string | null;
|
|
141
|
+
|
|
127
142
|
temperature?: number | null;
|
|
128
143
|
|
|
129
144
|
/**
|
|
@@ -298,17 +313,26 @@ export namespace ResponseObject {
|
|
|
298
313
|
/**
|
|
299
314
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
300
315
|
* response.
|
|
301
|
-
*
|
|
302
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
303
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
304
316
|
*/
|
|
305
317
|
export interface Logprob {
|
|
318
|
+
/**
|
|
319
|
+
* The token.
|
|
320
|
+
*/
|
|
306
321
|
token: string;
|
|
307
322
|
|
|
323
|
+
/**
|
|
324
|
+
* The log probability of the token.
|
|
325
|
+
*/
|
|
308
326
|
logprob: number;
|
|
309
327
|
|
|
328
|
+
/**
|
|
329
|
+
* The bytes for the token.
|
|
330
|
+
*/
|
|
310
331
|
bytes?: Array<number> | null;
|
|
311
332
|
|
|
333
|
+
/**
|
|
334
|
+
* The top log probabilities for the token.
|
|
335
|
+
*/
|
|
312
336
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
313
337
|
}
|
|
314
338
|
|
|
@@ -316,15 +340,21 @@ export namespace ResponseObject {
|
|
|
316
340
|
/**
|
|
317
341
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
318
342
|
* response.
|
|
319
|
-
*
|
|
320
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
321
|
-
* probability of the token
|
|
322
343
|
*/
|
|
323
344
|
export interface TopLogprob {
|
|
345
|
+
/**
|
|
346
|
+
* The token.
|
|
347
|
+
*/
|
|
324
348
|
token: string;
|
|
325
349
|
|
|
350
|
+
/**
|
|
351
|
+
* The log probability of the token.
|
|
352
|
+
*/
|
|
326
353
|
logprob: number;
|
|
327
354
|
|
|
355
|
+
/**
|
|
356
|
+
* The bytes for the token.
|
|
357
|
+
*/
|
|
328
358
|
bytes?: Array<number> | null;
|
|
329
359
|
}
|
|
330
360
|
}
|
|
@@ -524,6 +554,15 @@ export namespace ResponseObject {
|
|
|
524
554
|
}
|
|
525
555
|
}
|
|
526
556
|
|
|
557
|
+
/**
|
|
558
|
+
* Configuration for reasoning effort in OpenAI responses.
|
|
559
|
+
*
|
|
560
|
+
* Controls how much reasoning the model performs before generating a response.
|
|
561
|
+
*/
|
|
562
|
+
export interface Reasoning {
|
|
563
|
+
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
|
|
564
|
+
}
|
|
565
|
+
|
|
527
566
|
/**
|
|
528
567
|
* Text response configuration for OpenAI responses.
|
|
529
568
|
*/
|
|
@@ -626,6 +665,22 @@ export namespace ResponseObject {
|
|
|
626
665
|
|
|
627
666
|
/**
|
|
628
667
|
* Options for ranking and filtering search results.
|
|
668
|
+
*
|
|
669
|
+
* This class configures how search results are ranked and filtered. You can use
|
|
670
|
+
* algorithm-based rerankers (weighted, RRF) or neural rerankers. Defaults from
|
|
671
|
+
* VectorStoresConfig are used when parameters are not provided.
|
|
672
|
+
*
|
|
673
|
+
* Examples: # Weighted ranker with custom alpha
|
|
674
|
+
* SearchRankingOptions(ranker="weighted", alpha=0.7)
|
|
675
|
+
*
|
|
676
|
+
* # RRF ranker with custom impact factor
|
|
677
|
+
* SearchRankingOptions(ranker="rrf", impact_factor=50.0)
|
|
678
|
+
*
|
|
679
|
+
* # Use config defaults (just specify ranker type)
|
|
680
|
+
* SearchRankingOptions(ranker="weighted") # Uses alpha from VectorStoresConfig
|
|
681
|
+
*
|
|
682
|
+
* # Score threshold filtering
|
|
683
|
+
* SearchRankingOptions(ranker="weighted", score_threshold=0.5)
|
|
629
684
|
*/
|
|
630
685
|
ranking_options?: OpenAIResponseInputToolFileSearch.RankingOptions | null;
|
|
631
686
|
|
|
@@ -635,11 +690,48 @@ export namespace ResponseObject {
|
|
|
635
690
|
export namespace OpenAIResponseInputToolFileSearch {
|
|
636
691
|
/**
|
|
637
692
|
* Options for ranking and filtering search results.
|
|
693
|
+
*
|
|
694
|
+
* This class configures how search results are ranked and filtered. You can use
|
|
695
|
+
* algorithm-based rerankers (weighted, RRF) or neural rerankers. Defaults from
|
|
696
|
+
* VectorStoresConfig are used when parameters are not provided.
|
|
697
|
+
*
|
|
698
|
+
* Examples: # Weighted ranker with custom alpha
|
|
699
|
+
* SearchRankingOptions(ranker="weighted", alpha=0.7)
|
|
700
|
+
*
|
|
701
|
+
* # RRF ranker with custom impact factor
|
|
702
|
+
* SearchRankingOptions(ranker="rrf", impact_factor=50.0)
|
|
703
|
+
*
|
|
704
|
+
* # Use config defaults (just specify ranker type)
|
|
705
|
+
* SearchRankingOptions(ranker="weighted") # Uses alpha from VectorStoresConfig
|
|
706
|
+
*
|
|
707
|
+
* # Score threshold filtering
|
|
708
|
+
* SearchRankingOptions(ranker="weighted", score_threshold=0.5)
|
|
638
709
|
*/
|
|
639
710
|
export interface RankingOptions {
|
|
711
|
+
/**
|
|
712
|
+
* Weight factor for weighted ranker
|
|
713
|
+
*/
|
|
714
|
+
alpha?: number | null;
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Impact factor for RRF algorithm
|
|
718
|
+
*/
|
|
719
|
+
impact_factor?: number | null;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Model identifier for neural reranker
|
|
723
|
+
*/
|
|
724
|
+
model?: string | null;
|
|
725
|
+
|
|
640
726
|
ranker?: string | null;
|
|
641
727
|
|
|
642
728
|
score_threshold?: number | null;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Weights for combining vector, keyword, and neural scores. Keys: 'vector',
|
|
732
|
+
* 'keyword', 'neural'
|
|
733
|
+
*/
|
|
734
|
+
weights?: { [key: string]: number } | null;
|
|
643
735
|
}
|
|
644
736
|
}
|
|
645
737
|
|
|
@@ -687,19 +779,19 @@ export namespace ResponseObject {
|
|
|
687
779
|
export interface Usage {
|
|
688
780
|
input_tokens: number;
|
|
689
781
|
|
|
690
|
-
output_tokens: number;
|
|
691
|
-
|
|
692
|
-
total_tokens: number;
|
|
693
|
-
|
|
694
782
|
/**
|
|
695
783
|
* Token details for input tokens in OpenAI response usage.
|
|
696
784
|
*/
|
|
697
|
-
input_tokens_details
|
|
785
|
+
input_tokens_details: Usage.InputTokensDetails;
|
|
786
|
+
|
|
787
|
+
output_tokens: number;
|
|
698
788
|
|
|
699
789
|
/**
|
|
700
790
|
* Token details for output tokens in OpenAI response usage.
|
|
701
791
|
*/
|
|
702
|
-
output_tokens_details
|
|
792
|
+
output_tokens_details: Usage.OutputTokensDetails;
|
|
793
|
+
|
|
794
|
+
total_tokens: number;
|
|
703
795
|
}
|
|
704
796
|
|
|
705
797
|
export namespace Usage {
|
|
@@ -707,14 +799,14 @@ export namespace ResponseObject {
|
|
|
707
799
|
* Token details for input tokens in OpenAI response usage.
|
|
708
800
|
*/
|
|
709
801
|
export interface InputTokensDetails {
|
|
710
|
-
cached_tokens
|
|
802
|
+
cached_tokens: number;
|
|
711
803
|
}
|
|
712
804
|
|
|
713
805
|
/**
|
|
714
806
|
* Token details for output tokens in OpenAI response usage.
|
|
715
807
|
*/
|
|
716
808
|
export interface OutputTokensDetails {
|
|
717
|
-
reasoning_tokens
|
|
809
|
+
reasoning_tokens: number;
|
|
718
810
|
}
|
|
719
811
|
}
|
|
720
812
|
}
|
|
@@ -949,17 +1041,26 @@ export namespace ResponseObjectStream {
|
|
|
949
1041
|
/**
|
|
950
1042
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
951
1043
|
* response.
|
|
952
|
-
*
|
|
953
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
954
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
955
1044
|
*/
|
|
956
1045
|
export interface Logprob {
|
|
1046
|
+
/**
|
|
1047
|
+
* The token.
|
|
1048
|
+
*/
|
|
957
1049
|
token: string;
|
|
958
1050
|
|
|
1051
|
+
/**
|
|
1052
|
+
* The log probability of the token.
|
|
1053
|
+
*/
|
|
959
1054
|
logprob: number;
|
|
960
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* The bytes for the token.
|
|
1058
|
+
*/
|
|
961
1059
|
bytes?: Array<number> | null;
|
|
962
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* The top log probabilities for the token.
|
|
1063
|
+
*/
|
|
963
1064
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
964
1065
|
}
|
|
965
1066
|
|
|
@@ -967,15 +1068,21 @@ export namespace ResponseObjectStream {
|
|
|
967
1068
|
/**
|
|
968
1069
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
969
1070
|
* response.
|
|
970
|
-
*
|
|
971
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
972
|
-
* probability of the token
|
|
973
1071
|
*/
|
|
974
1072
|
export interface TopLogprob {
|
|
1073
|
+
/**
|
|
1074
|
+
* The token.
|
|
1075
|
+
*/
|
|
975
1076
|
token: string;
|
|
976
1077
|
|
|
1078
|
+
/**
|
|
1079
|
+
* The log probability of the token.
|
|
1080
|
+
*/
|
|
977
1081
|
logprob: number;
|
|
978
1082
|
|
|
1083
|
+
/**
|
|
1084
|
+
* The bytes for the token.
|
|
1085
|
+
*/
|
|
979
1086
|
bytes?: Array<number> | null;
|
|
980
1087
|
}
|
|
981
1088
|
}
|
|
@@ -1274,17 +1381,26 @@ export namespace ResponseObjectStream {
|
|
|
1274
1381
|
/**
|
|
1275
1382
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1276
1383
|
* response.
|
|
1277
|
-
*
|
|
1278
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1279
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1280
1384
|
*/
|
|
1281
1385
|
export interface Logprob {
|
|
1386
|
+
/**
|
|
1387
|
+
* The token.
|
|
1388
|
+
*/
|
|
1282
1389
|
token: string;
|
|
1283
1390
|
|
|
1391
|
+
/**
|
|
1392
|
+
* The log probability of the token.
|
|
1393
|
+
*/
|
|
1284
1394
|
logprob: number;
|
|
1285
1395
|
|
|
1396
|
+
/**
|
|
1397
|
+
* The bytes for the token.
|
|
1398
|
+
*/
|
|
1286
1399
|
bytes?: Array<number> | null;
|
|
1287
1400
|
|
|
1401
|
+
/**
|
|
1402
|
+
* The top log probabilities for the token.
|
|
1403
|
+
*/
|
|
1288
1404
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1289
1405
|
}
|
|
1290
1406
|
|
|
@@ -1292,15 +1408,21 @@ export namespace ResponseObjectStream {
|
|
|
1292
1408
|
/**
|
|
1293
1409
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1294
1410
|
* response.
|
|
1295
|
-
*
|
|
1296
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1297
|
-
* probability of the token
|
|
1298
1411
|
*/
|
|
1299
1412
|
export interface TopLogprob {
|
|
1413
|
+
/**
|
|
1414
|
+
* The token.
|
|
1415
|
+
*/
|
|
1300
1416
|
token: string;
|
|
1301
1417
|
|
|
1418
|
+
/**
|
|
1419
|
+
* The log probability of the token.
|
|
1420
|
+
*/
|
|
1302
1421
|
logprob: number;
|
|
1303
1422
|
|
|
1423
|
+
/**
|
|
1424
|
+
* The bytes for the token.
|
|
1425
|
+
*/
|
|
1304
1426
|
bytes?: Array<number> | null;
|
|
1305
1427
|
}
|
|
1306
1428
|
}
|
|
@@ -1460,17 +1582,26 @@ export namespace ResponseObjectStream {
|
|
|
1460
1582
|
/**
|
|
1461
1583
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1462
1584
|
* response.
|
|
1463
|
-
*
|
|
1464
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1465
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1466
1585
|
*/
|
|
1467
1586
|
export interface Logprob {
|
|
1587
|
+
/**
|
|
1588
|
+
* The token.
|
|
1589
|
+
*/
|
|
1468
1590
|
token: string;
|
|
1469
1591
|
|
|
1592
|
+
/**
|
|
1593
|
+
* The log probability of the token.
|
|
1594
|
+
*/
|
|
1470
1595
|
logprob: number;
|
|
1471
1596
|
|
|
1597
|
+
/**
|
|
1598
|
+
* The bytes for the token.
|
|
1599
|
+
*/
|
|
1472
1600
|
bytes?: Array<number> | null;
|
|
1473
1601
|
|
|
1602
|
+
/**
|
|
1603
|
+
* The top log probabilities for the token.
|
|
1604
|
+
*/
|
|
1474
1605
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1475
1606
|
}
|
|
1476
1607
|
|
|
@@ -1478,15 +1609,21 @@ export namespace ResponseObjectStream {
|
|
|
1478
1609
|
/**
|
|
1479
1610
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1480
1611
|
* response.
|
|
1481
|
-
*
|
|
1482
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1483
|
-
* probability of the token
|
|
1484
1612
|
*/
|
|
1485
1613
|
export interface TopLogprob {
|
|
1614
|
+
/**
|
|
1615
|
+
* The token.
|
|
1616
|
+
*/
|
|
1486
1617
|
token: string;
|
|
1487
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* The log probability of the token.
|
|
1621
|
+
*/
|
|
1488
1622
|
logprob: number;
|
|
1489
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* The bytes for the token.
|
|
1626
|
+
*/
|
|
1490
1627
|
bytes?: Array<number> | null;
|
|
1491
1628
|
}
|
|
1492
1629
|
}
|
|
@@ -1746,17 +1883,26 @@ export namespace ResponseObjectStream {
|
|
|
1746
1883
|
/**
|
|
1747
1884
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1748
1885
|
* response.
|
|
1749
|
-
*
|
|
1750
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1751
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1752
1886
|
*/
|
|
1753
1887
|
export interface Logprob {
|
|
1888
|
+
/**
|
|
1889
|
+
* The token.
|
|
1890
|
+
*/
|
|
1754
1891
|
token: string;
|
|
1755
1892
|
|
|
1893
|
+
/**
|
|
1894
|
+
* The log probability of the token.
|
|
1895
|
+
*/
|
|
1756
1896
|
logprob: number;
|
|
1757
1897
|
|
|
1898
|
+
/**
|
|
1899
|
+
* The bytes for the token.
|
|
1900
|
+
*/
|
|
1758
1901
|
bytes?: Array<number> | null;
|
|
1759
1902
|
|
|
1903
|
+
/**
|
|
1904
|
+
* The top log probabilities for the token.
|
|
1905
|
+
*/
|
|
1760
1906
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1761
1907
|
}
|
|
1762
1908
|
|
|
@@ -1764,15 +1910,21 @@ export namespace ResponseObjectStream {
|
|
|
1764
1910
|
/**
|
|
1765
1911
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1766
1912
|
* response.
|
|
1767
|
-
*
|
|
1768
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1769
|
-
* probability of the token
|
|
1770
1913
|
*/
|
|
1771
1914
|
export interface TopLogprob {
|
|
1915
|
+
/**
|
|
1916
|
+
* The token.
|
|
1917
|
+
*/
|
|
1772
1918
|
token: string;
|
|
1773
1919
|
|
|
1920
|
+
/**
|
|
1921
|
+
* The log probability of the token.
|
|
1922
|
+
*/
|
|
1774
1923
|
logprob: number;
|
|
1775
1924
|
|
|
1925
|
+
/**
|
|
1926
|
+
* The bytes for the token.
|
|
1927
|
+
*/
|
|
1776
1928
|
bytes?: Array<number> | null;
|
|
1777
1929
|
}
|
|
1778
1930
|
}
|
|
@@ -1895,17 +2047,26 @@ export namespace ResponseObjectStream {
|
|
|
1895
2047
|
/**
|
|
1896
2048
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1897
2049
|
* response.
|
|
1898
|
-
*
|
|
1899
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1900
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1901
2050
|
*/
|
|
1902
2051
|
export interface Logprob {
|
|
2052
|
+
/**
|
|
2053
|
+
* The token.
|
|
2054
|
+
*/
|
|
1903
2055
|
token: string;
|
|
1904
2056
|
|
|
2057
|
+
/**
|
|
2058
|
+
* The log probability of the token.
|
|
2059
|
+
*/
|
|
1905
2060
|
logprob: number;
|
|
1906
2061
|
|
|
2062
|
+
/**
|
|
2063
|
+
* The bytes for the token.
|
|
2064
|
+
*/
|
|
1907
2065
|
bytes?: Array<number> | null;
|
|
1908
2066
|
|
|
2067
|
+
/**
|
|
2068
|
+
* The top log probabilities for the token.
|
|
2069
|
+
*/
|
|
1909
2070
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1910
2071
|
}
|
|
1911
2072
|
|
|
@@ -1913,15 +2074,21 @@ export namespace ResponseObjectStream {
|
|
|
1913
2074
|
/**
|
|
1914
2075
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1915
2076
|
* response.
|
|
1916
|
-
*
|
|
1917
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1918
|
-
* probability of the token
|
|
1919
2077
|
*/
|
|
1920
2078
|
export interface TopLogprob {
|
|
2079
|
+
/**
|
|
2080
|
+
* The token.
|
|
2081
|
+
*/
|
|
1921
2082
|
token: string;
|
|
1922
2083
|
|
|
2084
|
+
/**
|
|
2085
|
+
* The log probability of the token.
|
|
2086
|
+
*/
|
|
1923
2087
|
logprob: number;
|
|
1924
2088
|
|
|
2089
|
+
/**
|
|
2090
|
+
* The bytes for the token.
|
|
2091
|
+
*/
|
|
1925
2092
|
bytes?: Array<number> | null;
|
|
1926
2093
|
}
|
|
1927
2094
|
}
|
|
@@ -2303,6 +2470,10 @@ export interface ResponseListResponse {
|
|
|
2303
2470
|
|
|
2304
2471
|
status: string;
|
|
2305
2472
|
|
|
2473
|
+
store: boolean;
|
|
2474
|
+
|
|
2475
|
+
completed_at?: number | null;
|
|
2476
|
+
|
|
2306
2477
|
/**
|
|
2307
2478
|
* Error details for failed OpenAI response requests.
|
|
2308
2479
|
*/
|
|
@@ -2310,6 +2481,8 @@ export interface ResponseListResponse {
|
|
|
2310
2481
|
|
|
2311
2482
|
instructions?: string | null;
|
|
2312
2483
|
|
|
2484
|
+
max_output_tokens?: number | null;
|
|
2485
|
+
|
|
2313
2486
|
max_tool_calls?: number | null;
|
|
2314
2487
|
|
|
2315
2488
|
metadata?: { [key: string]: string } | null;
|
|
@@ -2325,6 +2498,15 @@ export interface ResponseListResponse {
|
|
|
2325
2498
|
*/
|
|
2326
2499
|
prompt?: ResponseListResponse.Prompt | null;
|
|
2327
2500
|
|
|
2501
|
+
/**
|
|
2502
|
+
* Configuration for reasoning effort in OpenAI responses.
|
|
2503
|
+
*
|
|
2504
|
+
* Controls how much reasoning the model performs before generating a response.
|
|
2505
|
+
*/
|
|
2506
|
+
reasoning?: ResponseListResponse.Reasoning | null;
|
|
2507
|
+
|
|
2508
|
+
safety_identifier?: string | null;
|
|
2509
|
+
|
|
2328
2510
|
temperature?: number | null;
|
|
2329
2511
|
|
|
2330
2512
|
/**
|
|
@@ -2499,17 +2681,26 @@ export namespace ResponseListResponse {
|
|
|
2499
2681
|
/**
|
|
2500
2682
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
2501
2683
|
* response.
|
|
2502
|
-
*
|
|
2503
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2504
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
2505
2684
|
*/
|
|
2506
2685
|
export interface Logprob {
|
|
2686
|
+
/**
|
|
2687
|
+
* The token.
|
|
2688
|
+
*/
|
|
2507
2689
|
token: string;
|
|
2508
2690
|
|
|
2691
|
+
/**
|
|
2692
|
+
* The log probability of the token.
|
|
2693
|
+
*/
|
|
2509
2694
|
logprob: number;
|
|
2510
2695
|
|
|
2696
|
+
/**
|
|
2697
|
+
* The bytes for the token.
|
|
2698
|
+
*/
|
|
2511
2699
|
bytes?: Array<number> | null;
|
|
2512
2700
|
|
|
2701
|
+
/**
|
|
2702
|
+
* The top log probabilities for the token.
|
|
2703
|
+
*/
|
|
2513
2704
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
2514
2705
|
}
|
|
2515
2706
|
|
|
@@ -2517,15 +2708,21 @@ export namespace ResponseListResponse {
|
|
|
2517
2708
|
/**
|
|
2518
2709
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
2519
2710
|
* response.
|
|
2520
|
-
*
|
|
2521
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2522
|
-
* probability of the token
|
|
2523
2711
|
*/
|
|
2524
2712
|
export interface TopLogprob {
|
|
2713
|
+
/**
|
|
2714
|
+
* The token.
|
|
2715
|
+
*/
|
|
2525
2716
|
token: string;
|
|
2526
2717
|
|
|
2718
|
+
/**
|
|
2719
|
+
* The log probability of the token.
|
|
2720
|
+
*/
|
|
2527
2721
|
logprob: number;
|
|
2528
2722
|
|
|
2723
|
+
/**
|
|
2724
|
+
* The bytes for the token.
|
|
2725
|
+
*/
|
|
2529
2726
|
bytes?: Array<number> | null;
|
|
2530
2727
|
}
|
|
2531
2728
|
}
|
|
@@ -2826,17 +3023,26 @@ export namespace ResponseListResponse {
|
|
|
2826
3023
|
/**
|
|
2827
3024
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
2828
3025
|
* response.
|
|
2829
|
-
*
|
|
2830
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2831
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
2832
3026
|
*/
|
|
2833
3027
|
export interface Logprob {
|
|
3028
|
+
/**
|
|
3029
|
+
* The token.
|
|
3030
|
+
*/
|
|
2834
3031
|
token: string;
|
|
2835
3032
|
|
|
3033
|
+
/**
|
|
3034
|
+
* The log probability of the token.
|
|
3035
|
+
*/
|
|
2836
3036
|
logprob: number;
|
|
2837
3037
|
|
|
3038
|
+
/**
|
|
3039
|
+
* The bytes for the token.
|
|
3040
|
+
*/
|
|
2838
3041
|
bytes?: Array<number> | null;
|
|
2839
3042
|
|
|
3043
|
+
/**
|
|
3044
|
+
* The top log probabilities for the token.
|
|
3045
|
+
*/
|
|
2840
3046
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
2841
3047
|
}
|
|
2842
3048
|
|
|
@@ -2844,15 +3050,21 @@ export namespace ResponseListResponse {
|
|
|
2844
3050
|
/**
|
|
2845
3051
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
2846
3052
|
* response.
|
|
2847
|
-
*
|
|
2848
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2849
|
-
* probability of the token
|
|
2850
3053
|
*/
|
|
2851
3054
|
export interface TopLogprob {
|
|
3055
|
+
/**
|
|
3056
|
+
* The token.
|
|
3057
|
+
*/
|
|
2852
3058
|
token: string;
|
|
2853
3059
|
|
|
3060
|
+
/**
|
|
3061
|
+
* The log probability of the token.
|
|
3062
|
+
*/
|
|
2854
3063
|
logprob: number;
|
|
2855
3064
|
|
|
3065
|
+
/**
|
|
3066
|
+
* The bytes for the token.
|
|
3067
|
+
*/
|
|
2856
3068
|
bytes?: Array<number> | null;
|
|
2857
3069
|
}
|
|
2858
3070
|
}
|
|
@@ -3002,17 +3214,26 @@ export namespace ResponseListResponse {
|
|
|
3002
3214
|
/**
|
|
3003
3215
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
3004
3216
|
* response.
|
|
3005
|
-
*
|
|
3006
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3007
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
3008
3217
|
*/
|
|
3009
3218
|
export interface Logprob {
|
|
3219
|
+
/**
|
|
3220
|
+
* The token.
|
|
3221
|
+
*/
|
|
3010
3222
|
token: string;
|
|
3011
3223
|
|
|
3224
|
+
/**
|
|
3225
|
+
* The log probability of the token.
|
|
3226
|
+
*/
|
|
3012
3227
|
logprob: number;
|
|
3013
3228
|
|
|
3229
|
+
/**
|
|
3230
|
+
* The bytes for the token.
|
|
3231
|
+
*/
|
|
3014
3232
|
bytes?: Array<number> | null;
|
|
3015
3233
|
|
|
3234
|
+
/**
|
|
3235
|
+
* The top log probabilities for the token.
|
|
3236
|
+
*/
|
|
3016
3237
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
3017
3238
|
}
|
|
3018
3239
|
|
|
@@ -3020,15 +3241,21 @@ export namespace ResponseListResponse {
|
|
|
3020
3241
|
/**
|
|
3021
3242
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
3022
3243
|
* response.
|
|
3023
|
-
*
|
|
3024
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3025
|
-
* probability of the token
|
|
3026
3244
|
*/
|
|
3027
3245
|
export interface TopLogprob {
|
|
3246
|
+
/**
|
|
3247
|
+
* The token.
|
|
3248
|
+
*/
|
|
3028
3249
|
token: string;
|
|
3029
3250
|
|
|
3251
|
+
/**
|
|
3252
|
+
* The log probability of the token.
|
|
3253
|
+
*/
|
|
3030
3254
|
logprob: number;
|
|
3031
3255
|
|
|
3256
|
+
/**
|
|
3257
|
+
* The bytes for the token.
|
|
3258
|
+
*/
|
|
3032
3259
|
bytes?: Array<number> | null;
|
|
3033
3260
|
}
|
|
3034
3261
|
}
|
|
@@ -3228,6 +3455,15 @@ export namespace ResponseListResponse {
|
|
|
3228
3455
|
}
|
|
3229
3456
|
}
|
|
3230
3457
|
|
|
3458
|
+
/**
|
|
3459
|
+
* Configuration for reasoning effort in OpenAI responses.
|
|
3460
|
+
*
|
|
3461
|
+
* Controls how much reasoning the model performs before generating a response.
|
|
3462
|
+
*/
|
|
3463
|
+
export interface Reasoning {
|
|
3464
|
+
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3231
3467
|
/**
|
|
3232
3468
|
* Text response configuration for OpenAI responses.
|
|
3233
3469
|
*/
|
|
@@ -3330,6 +3566,22 @@ export namespace ResponseListResponse {
|
|
|
3330
3566
|
|
|
3331
3567
|
/**
|
|
3332
3568
|
* Options for ranking and filtering search results.
|
|
3569
|
+
*
|
|
3570
|
+
* This class configures how search results are ranked and filtered. You can use
|
|
3571
|
+
* algorithm-based rerankers (weighted, RRF) or neural rerankers. Defaults from
|
|
3572
|
+
* VectorStoresConfig are used when parameters are not provided.
|
|
3573
|
+
*
|
|
3574
|
+
* Examples: # Weighted ranker with custom alpha
|
|
3575
|
+
* SearchRankingOptions(ranker="weighted", alpha=0.7)
|
|
3576
|
+
*
|
|
3577
|
+
* # RRF ranker with custom impact factor
|
|
3578
|
+
* SearchRankingOptions(ranker="rrf", impact_factor=50.0)
|
|
3579
|
+
*
|
|
3580
|
+
* # Use config defaults (just specify ranker type)
|
|
3581
|
+
* SearchRankingOptions(ranker="weighted") # Uses alpha from VectorStoresConfig
|
|
3582
|
+
*
|
|
3583
|
+
* # Score threshold filtering
|
|
3584
|
+
* SearchRankingOptions(ranker="weighted", score_threshold=0.5)
|
|
3333
3585
|
*/
|
|
3334
3586
|
ranking_options?: OpenAIResponseInputToolFileSearch.RankingOptions | null;
|
|
3335
3587
|
|
|
@@ -3339,11 +3591,48 @@ export namespace ResponseListResponse {
|
|
|
3339
3591
|
export namespace OpenAIResponseInputToolFileSearch {
|
|
3340
3592
|
/**
|
|
3341
3593
|
* Options for ranking and filtering search results.
|
|
3594
|
+
*
|
|
3595
|
+
* This class configures how search results are ranked and filtered. You can use
|
|
3596
|
+
* algorithm-based rerankers (weighted, RRF) or neural rerankers. Defaults from
|
|
3597
|
+
* VectorStoresConfig are used when parameters are not provided.
|
|
3598
|
+
*
|
|
3599
|
+
* Examples: # Weighted ranker with custom alpha
|
|
3600
|
+
* SearchRankingOptions(ranker="weighted", alpha=0.7)
|
|
3601
|
+
*
|
|
3602
|
+
* # RRF ranker with custom impact factor
|
|
3603
|
+
* SearchRankingOptions(ranker="rrf", impact_factor=50.0)
|
|
3604
|
+
*
|
|
3605
|
+
* # Use config defaults (just specify ranker type)
|
|
3606
|
+
* SearchRankingOptions(ranker="weighted") # Uses alpha from VectorStoresConfig
|
|
3607
|
+
*
|
|
3608
|
+
* # Score threshold filtering
|
|
3609
|
+
* SearchRankingOptions(ranker="weighted", score_threshold=0.5)
|
|
3342
3610
|
*/
|
|
3343
3611
|
export interface RankingOptions {
|
|
3612
|
+
/**
|
|
3613
|
+
* Weight factor for weighted ranker
|
|
3614
|
+
*/
|
|
3615
|
+
alpha?: number | null;
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* Impact factor for RRF algorithm
|
|
3619
|
+
*/
|
|
3620
|
+
impact_factor?: number | null;
|
|
3621
|
+
|
|
3622
|
+
/**
|
|
3623
|
+
* Model identifier for neural reranker
|
|
3624
|
+
*/
|
|
3625
|
+
model?: string | null;
|
|
3626
|
+
|
|
3344
3627
|
ranker?: string | null;
|
|
3345
3628
|
|
|
3346
3629
|
score_threshold?: number | null;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* Weights for combining vector, keyword, and neural scores. Keys: 'vector',
|
|
3633
|
+
* 'keyword', 'neural'
|
|
3634
|
+
*/
|
|
3635
|
+
weights?: { [key: string]: number } | null;
|
|
3347
3636
|
}
|
|
3348
3637
|
}
|
|
3349
3638
|
|
|
@@ -3391,19 +3680,19 @@ export namespace ResponseListResponse {
|
|
|
3391
3680
|
export interface Usage {
|
|
3392
3681
|
input_tokens: number;
|
|
3393
3682
|
|
|
3394
|
-
output_tokens: number;
|
|
3395
|
-
|
|
3396
|
-
total_tokens: number;
|
|
3397
|
-
|
|
3398
3683
|
/**
|
|
3399
3684
|
* Token details for input tokens in OpenAI response usage.
|
|
3400
3685
|
*/
|
|
3401
|
-
input_tokens_details
|
|
3686
|
+
input_tokens_details: Usage.InputTokensDetails;
|
|
3687
|
+
|
|
3688
|
+
output_tokens: number;
|
|
3402
3689
|
|
|
3403
3690
|
/**
|
|
3404
3691
|
* Token details for output tokens in OpenAI response usage.
|
|
3405
3692
|
*/
|
|
3406
|
-
output_tokens_details
|
|
3693
|
+
output_tokens_details: Usage.OutputTokensDetails;
|
|
3694
|
+
|
|
3695
|
+
total_tokens: number;
|
|
3407
3696
|
}
|
|
3408
3697
|
|
|
3409
3698
|
export namespace Usage {
|
|
@@ -3411,14 +3700,14 @@ export namespace ResponseListResponse {
|
|
|
3411
3700
|
* Token details for input tokens in OpenAI response usage.
|
|
3412
3701
|
*/
|
|
3413
3702
|
export interface InputTokensDetails {
|
|
3414
|
-
cached_tokens
|
|
3703
|
+
cached_tokens: number;
|
|
3415
3704
|
}
|
|
3416
3705
|
|
|
3417
3706
|
/**
|
|
3418
3707
|
* Token details for output tokens in OpenAI response usage.
|
|
3419
3708
|
*/
|
|
3420
3709
|
export interface OutputTokensDetails {
|
|
3421
|
-
reasoning_tokens
|
|
3710
|
+
reasoning_tokens: number;
|
|
3422
3711
|
}
|
|
3423
3712
|
}
|
|
3424
3713
|
}
|
|
@@ -3437,6 +3726,9 @@ export interface ResponseDeleteResponse {
|
|
|
3437
3726
|
export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming;
|
|
3438
3727
|
|
|
3439
3728
|
export interface ResponseCreateParamsBase {
|
|
3729
|
+
/**
|
|
3730
|
+
* Input message(s) to create the response.
|
|
3731
|
+
*/
|
|
3440
3732
|
input:
|
|
3441
3733
|
| string
|
|
3442
3734
|
| Array<
|
|
@@ -3449,13 +3741,26 @@ export interface ResponseCreateParamsBase {
|
|
|
3449
3741
|
| ResponseCreateParams.OpenAIResponseMcpApprovalRequest
|
|
3450
3742
|
| ResponseCreateParams.OpenAIResponseInputFunctionToolCallOutput
|
|
3451
3743
|
| ResponseCreateParams.OpenAIResponseMcpApprovalResponse
|
|
3452
|
-
| ResponseCreateParams.OpenAIResponseMessageInput
|
|
3453
3744
|
>;
|
|
3454
3745
|
|
|
3746
|
+
/**
|
|
3747
|
+
* The underlying LLM used for completions.
|
|
3748
|
+
*/
|
|
3455
3749
|
model: string;
|
|
3456
3750
|
|
|
3751
|
+
/**
|
|
3752
|
+
* Optional ID of a conversation to add the response to.
|
|
3753
|
+
*/
|
|
3457
3754
|
conversation?: string | null;
|
|
3458
3755
|
|
|
3756
|
+
/**
|
|
3757
|
+
* List of guardrails to apply during response generation.
|
|
3758
|
+
*/
|
|
3759
|
+
guardrails?: Array<string | ResponseCreateParams.ResponseGuardrailSpec> | null;
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
* Additional fields to include in the response.
|
|
3763
|
+
*/
|
|
3459
3764
|
include?: Array<
|
|
3460
3765
|
| 'web_search_call.action.sources'
|
|
3461
3766
|
| 'code_interpreter_call.outputs'
|
|
@@ -3466,16 +3771,39 @@ export interface ResponseCreateParamsBase {
|
|
|
3466
3771
|
| 'reasoning.encrypted_content'
|
|
3467
3772
|
> | null;
|
|
3468
3773
|
|
|
3774
|
+
/**
|
|
3775
|
+
* Instructions to guide the model's behavior.
|
|
3776
|
+
*/
|
|
3469
3777
|
instructions?: string | null;
|
|
3470
3778
|
|
|
3779
|
+
/**
|
|
3780
|
+
* Maximum number of inference iterations.
|
|
3781
|
+
*/
|
|
3471
3782
|
max_infer_iters?: number | null;
|
|
3472
3783
|
|
|
3784
|
+
/**
|
|
3785
|
+
* Upper bound for the number of tokens that can be generated for a response.
|
|
3786
|
+
*/
|
|
3787
|
+
max_output_tokens?: number | null;
|
|
3788
|
+
|
|
3789
|
+
/**
|
|
3790
|
+
* Max number of total calls to built-in tools that can be processed in a response.
|
|
3791
|
+
*/
|
|
3473
3792
|
max_tool_calls?: number | null;
|
|
3474
3793
|
|
|
3794
|
+
/**
|
|
3795
|
+
* Dictionary of metadata key-value pairs to attach to the response.
|
|
3796
|
+
*/
|
|
3475
3797
|
metadata?: { [key: string]: string } | null;
|
|
3476
3798
|
|
|
3799
|
+
/**
|
|
3800
|
+
* Whether to enable parallel tool calls.
|
|
3801
|
+
*/
|
|
3477
3802
|
parallel_tool_calls?: boolean | null;
|
|
3478
3803
|
|
|
3804
|
+
/**
|
|
3805
|
+
* Optional ID of a previous response to continue from.
|
|
3806
|
+
*/
|
|
3479
3807
|
previous_response_id?: string | null;
|
|
3480
3808
|
|
|
3481
3809
|
/**
|
|
@@ -3483,10 +3811,31 @@ export interface ResponseCreateParamsBase {
|
|
|
3483
3811
|
*/
|
|
3484
3812
|
prompt?: ResponseCreateParams.Prompt | null;
|
|
3485
3813
|
|
|
3814
|
+
/**
|
|
3815
|
+
* Configuration for reasoning effort in OpenAI responses.
|
|
3816
|
+
*
|
|
3817
|
+
* Controls how much reasoning the model performs before generating a response.
|
|
3818
|
+
*/
|
|
3819
|
+
reasoning?: ResponseCreateParams.Reasoning | null;
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* A stable identifier used for safety monitoring and abuse detection.
|
|
3823
|
+
*/
|
|
3824
|
+
safety_identifier?: string | null;
|
|
3825
|
+
|
|
3826
|
+
/**
|
|
3827
|
+
* Whether to store the response in the database.
|
|
3828
|
+
*/
|
|
3486
3829
|
store?: boolean | null;
|
|
3487
3830
|
|
|
3831
|
+
/**
|
|
3832
|
+
* Whether to stream the response.
|
|
3833
|
+
*/
|
|
3488
3834
|
stream?: boolean | null;
|
|
3489
3835
|
|
|
3836
|
+
/**
|
|
3837
|
+
* Sampling temperature.
|
|
3838
|
+
*/
|
|
3490
3839
|
temperature?: number | null;
|
|
3491
3840
|
|
|
3492
3841
|
/**
|
|
@@ -3495,7 +3844,7 @@ export interface ResponseCreateParamsBase {
|
|
|
3495
3844
|
text?: ResponseCreateParams.Text | null;
|
|
3496
3845
|
|
|
3497
3846
|
/**
|
|
3498
|
-
*
|
|
3847
|
+
* How the model should select which tool to call (if any).
|
|
3499
3848
|
*/
|
|
3500
3849
|
tool_choice?:
|
|
3501
3850
|
| 'auto'
|
|
@@ -3509,6 +3858,9 @@ export interface ResponseCreateParamsBase {
|
|
|
3509
3858
|
| ResponseCreateParams.OpenAIResponseInputToolChoiceCustomTool
|
|
3510
3859
|
| null;
|
|
3511
3860
|
|
|
3861
|
+
/**
|
|
3862
|
+
* List of tools available to the model.
|
|
3863
|
+
*/
|
|
3512
3864
|
tools?: Array<
|
|
3513
3865
|
| ResponseCreateParams.OpenAIResponseInputToolWebSearch
|
|
3514
3866
|
| ResponseCreateParams.OpenAIResponseInputToolFileSearch
|
|
@@ -3652,17 +4004,26 @@ export namespace ResponseCreateParams {
|
|
|
3652
4004
|
/**
|
|
3653
4005
|
* The log probability for a token from an OpenAI-compatible chat completion
|
|
3654
4006
|
* response.
|
|
3655
|
-
*
|
|
3656
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3657
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
3658
4007
|
*/
|
|
3659
4008
|
export interface Logprob {
|
|
4009
|
+
/**
|
|
4010
|
+
* The token.
|
|
4011
|
+
*/
|
|
3660
4012
|
token: string;
|
|
3661
4013
|
|
|
4014
|
+
/**
|
|
4015
|
+
* The log probability of the token.
|
|
4016
|
+
*/
|
|
3662
4017
|
logprob: number;
|
|
3663
4018
|
|
|
4019
|
+
/**
|
|
4020
|
+
* The bytes for the token.
|
|
4021
|
+
*/
|
|
3664
4022
|
bytes?: Array<number> | null;
|
|
3665
4023
|
|
|
4024
|
+
/**
|
|
4025
|
+
* The top log probabilities for the token.
|
|
4026
|
+
*/
|
|
3666
4027
|
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
3667
4028
|
}
|
|
3668
4029
|
|
|
@@ -3670,15 +4031,21 @@ export namespace ResponseCreateParams {
|
|
|
3670
4031
|
/**
|
|
3671
4032
|
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
3672
4033
|
* response.
|
|
3673
|
-
*
|
|
3674
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3675
|
-
* probability of the token
|
|
3676
4034
|
*/
|
|
3677
4035
|
export interface TopLogprob {
|
|
4036
|
+
/**
|
|
4037
|
+
* The token.
|
|
4038
|
+
*/
|
|
3678
4039
|
token: string;
|
|
3679
4040
|
|
|
4041
|
+
/**
|
|
4042
|
+
* The log probability of the token.
|
|
4043
|
+
*/
|
|
3680
4044
|
logprob: number;
|
|
3681
4045
|
|
|
4046
|
+
/**
|
|
4047
|
+
* The bytes for the token.
|
|
4048
|
+
*/
|
|
3682
4049
|
bytes?: Array<number> | null;
|
|
3683
4050
|
}
|
|
3684
4051
|
}
|
|
@@ -3846,179 +4213,10 @@ export namespace ResponseCreateParams {
|
|
|
3846
4213
|
}
|
|
3847
4214
|
|
|
3848
4215
|
/**
|
|
3849
|
-
*
|
|
3850
|
-
* under one type because the Responses API gives them all the same "type" value,
|
|
3851
|
-
* and there is no way to tell them apart in certain scenarios.
|
|
4216
|
+
* Specification for a guardrail to apply during response generation.
|
|
3852
4217
|
*/
|
|
3853
|
-
export interface
|
|
3854
|
-
|
|
3855
|
-
| string
|
|
3856
|
-
| Array<
|
|
3857
|
-
| OpenAIResponseMessageInput.OpenAIResponseInputMessageContentText
|
|
3858
|
-
| OpenAIResponseMessageInput.OpenAIResponseInputMessageContentImage
|
|
3859
|
-
| OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile
|
|
3860
|
-
>
|
|
3861
|
-
| Array<
|
|
3862
|
-
| OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputTextInput
|
|
3863
|
-
| OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal
|
|
3864
|
-
>;
|
|
3865
|
-
|
|
3866
|
-
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
3867
|
-
|
|
3868
|
-
id?: string | null;
|
|
3869
|
-
|
|
3870
|
-
status?: string | null;
|
|
3871
|
-
|
|
3872
|
-
type?: 'message';
|
|
3873
|
-
}
|
|
3874
|
-
|
|
3875
|
-
export namespace OpenAIResponseMessageInput {
|
|
3876
|
-
/**
|
|
3877
|
-
* Text content for input messages in OpenAI response format.
|
|
3878
|
-
*/
|
|
3879
|
-
export interface OpenAIResponseInputMessageContentText {
|
|
3880
|
-
text: string;
|
|
3881
|
-
|
|
3882
|
-
type?: 'input_text';
|
|
3883
|
-
}
|
|
3884
|
-
|
|
3885
|
-
/**
|
|
3886
|
-
* Image content for input messages in OpenAI response format.
|
|
3887
|
-
*/
|
|
3888
|
-
export interface OpenAIResponseInputMessageContentImage {
|
|
3889
|
-
detail?: 'low' | 'high' | 'auto';
|
|
3890
|
-
|
|
3891
|
-
file_id?: string | null;
|
|
3892
|
-
|
|
3893
|
-
image_url?: string | null;
|
|
3894
|
-
|
|
3895
|
-
type?: 'input_image';
|
|
3896
|
-
}
|
|
3897
|
-
|
|
3898
|
-
/**
|
|
3899
|
-
* File content for input messages in OpenAI response format.
|
|
3900
|
-
*/
|
|
3901
|
-
export interface OpenAIResponseInputMessageContentFile {
|
|
3902
|
-
file_data?: string | null;
|
|
3903
|
-
|
|
3904
|
-
file_id?: string | null;
|
|
3905
|
-
|
|
3906
|
-
file_url?: string | null;
|
|
3907
|
-
|
|
3908
|
-
filename?: string | null;
|
|
3909
|
-
|
|
3910
|
-
type?: 'input_file';
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
|
-
export interface OpenAIResponseOutputMessageContentOutputTextInput {
|
|
3914
|
-
text: string;
|
|
3915
|
-
|
|
3916
|
-
annotations?: Array<
|
|
3917
|
-
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFileCitation
|
|
3918
|
-
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationCitation
|
|
3919
|
-
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationContainerFileCitation
|
|
3920
|
-
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFilePath
|
|
3921
|
-
>;
|
|
3922
|
-
|
|
3923
|
-
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextInput.Logprob> | null;
|
|
3924
|
-
|
|
3925
|
-
type?: 'output_text';
|
|
3926
|
-
}
|
|
3927
|
-
|
|
3928
|
-
export namespace OpenAIResponseOutputMessageContentOutputTextInput {
|
|
3929
|
-
/**
|
|
3930
|
-
* File citation annotation for referencing specific files in response content.
|
|
3931
|
-
*/
|
|
3932
|
-
export interface OpenAIResponseAnnotationFileCitation {
|
|
3933
|
-
file_id: string;
|
|
3934
|
-
|
|
3935
|
-
filename: string;
|
|
3936
|
-
|
|
3937
|
-
index: number;
|
|
3938
|
-
|
|
3939
|
-
type?: 'file_citation';
|
|
3940
|
-
}
|
|
3941
|
-
|
|
3942
|
-
/**
|
|
3943
|
-
* URL citation annotation for referencing external web resources.
|
|
3944
|
-
*/
|
|
3945
|
-
export interface OpenAIResponseAnnotationCitation {
|
|
3946
|
-
end_index: number;
|
|
3947
|
-
|
|
3948
|
-
start_index: number;
|
|
3949
|
-
|
|
3950
|
-
title: string;
|
|
3951
|
-
|
|
3952
|
-
url: string;
|
|
3953
|
-
|
|
3954
|
-
type?: 'url_citation';
|
|
3955
|
-
}
|
|
3956
|
-
|
|
3957
|
-
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
3958
|
-
container_id: string;
|
|
3959
|
-
|
|
3960
|
-
end_index: number;
|
|
3961
|
-
|
|
3962
|
-
file_id: string;
|
|
3963
|
-
|
|
3964
|
-
filename: string;
|
|
3965
|
-
|
|
3966
|
-
start_index: number;
|
|
3967
|
-
|
|
3968
|
-
type?: 'container_file_citation';
|
|
3969
|
-
}
|
|
3970
|
-
|
|
3971
|
-
export interface OpenAIResponseAnnotationFilePath {
|
|
3972
|
-
file_id: string;
|
|
3973
|
-
|
|
3974
|
-
index: number;
|
|
3975
|
-
|
|
3976
|
-
type?: 'file_path';
|
|
3977
|
-
}
|
|
3978
|
-
|
|
3979
|
-
/**
|
|
3980
|
-
* The log probability for a token from an OpenAI-compatible chat completion
|
|
3981
|
-
* response.
|
|
3982
|
-
*
|
|
3983
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3984
|
-
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
3985
|
-
*/
|
|
3986
|
-
export interface Logprob {
|
|
3987
|
-
token: string;
|
|
3988
|
-
|
|
3989
|
-
logprob: number;
|
|
3990
|
-
|
|
3991
|
-
bytes?: Array<number> | null;
|
|
3992
|
-
|
|
3993
|
-
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
3994
|
-
}
|
|
3995
|
-
|
|
3996
|
-
export namespace Logprob {
|
|
3997
|
-
/**
|
|
3998
|
-
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
3999
|
-
* response.
|
|
4000
|
-
*
|
|
4001
|
-
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
4002
|
-
* probability of the token
|
|
4003
|
-
*/
|
|
4004
|
-
export interface TopLogprob {
|
|
4005
|
-
token: string;
|
|
4006
|
-
|
|
4007
|
-
logprob: number;
|
|
4008
|
-
|
|
4009
|
-
bytes?: Array<number> | null;
|
|
4010
|
-
}
|
|
4011
|
-
}
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
/**
|
|
4015
|
-
* Refusal content within a streamed response part.
|
|
4016
|
-
*/
|
|
4017
|
-
export interface OpenAIResponseContentPartRefusal {
|
|
4018
|
-
refusal: string;
|
|
4019
|
-
|
|
4020
|
-
type?: 'refusal';
|
|
4021
|
-
}
|
|
4218
|
+
export interface ResponseGuardrailSpec {
|
|
4219
|
+
type: string;
|
|
4022
4220
|
}
|
|
4023
4221
|
|
|
4024
4222
|
/**
|
|
@@ -4076,6 +4274,15 @@ export namespace ResponseCreateParams {
|
|
|
4076
4274
|
}
|
|
4077
4275
|
}
|
|
4078
4276
|
|
|
4277
|
+
/**
|
|
4278
|
+
* Configuration for reasoning effort in OpenAI responses.
|
|
4279
|
+
*
|
|
4280
|
+
* Controls how much reasoning the model performs before generating a response.
|
|
4281
|
+
*/
|
|
4282
|
+
export interface Reasoning {
|
|
4283
|
+
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4079
4286
|
/**
|
|
4080
4287
|
* Text response configuration for OpenAI responses.
|
|
4081
4288
|
*/
|
|
@@ -4178,6 +4385,22 @@ export namespace ResponseCreateParams {
|
|
|
4178
4385
|
|
|
4179
4386
|
/**
|
|
4180
4387
|
* Options for ranking and filtering search results.
|
|
4388
|
+
*
|
|
4389
|
+
* This class configures how search results are ranked and filtered. You can use
|
|
4390
|
+
* algorithm-based rerankers (weighted, RRF) or neural rerankers. Defaults from
|
|
4391
|
+
* VectorStoresConfig are used when parameters are not provided.
|
|
4392
|
+
*
|
|
4393
|
+
* Examples: # Weighted ranker with custom alpha
|
|
4394
|
+
* SearchRankingOptions(ranker="weighted", alpha=0.7)
|
|
4395
|
+
*
|
|
4396
|
+
* # RRF ranker with custom impact factor
|
|
4397
|
+
* SearchRankingOptions(ranker="rrf", impact_factor=50.0)
|
|
4398
|
+
*
|
|
4399
|
+
* # Use config defaults (just specify ranker type)
|
|
4400
|
+
* SearchRankingOptions(ranker="weighted") # Uses alpha from VectorStoresConfig
|
|
4401
|
+
*
|
|
4402
|
+
* # Score threshold filtering
|
|
4403
|
+
* SearchRankingOptions(ranker="weighted", score_threshold=0.5)
|
|
4181
4404
|
*/
|
|
4182
4405
|
ranking_options?: OpenAIResponseInputToolFileSearch.RankingOptions | null;
|
|
4183
4406
|
|
|
@@ -4187,11 +4410,48 @@ export namespace ResponseCreateParams {
|
|
|
4187
4410
|
export namespace OpenAIResponseInputToolFileSearch {
|
|
4188
4411
|
/**
|
|
4189
4412
|
* Options for ranking and filtering search results.
|
|
4413
|
+
*
|
|
4414
|
+
* This class configures how search results are ranked and filtered. You can use
|
|
4415
|
+
* algorithm-based rerankers (weighted, RRF) or neural rerankers. Defaults from
|
|
4416
|
+
* VectorStoresConfig are used when parameters are not provided.
|
|
4417
|
+
*
|
|
4418
|
+
* Examples: # Weighted ranker with custom alpha
|
|
4419
|
+
* SearchRankingOptions(ranker="weighted", alpha=0.7)
|
|
4420
|
+
*
|
|
4421
|
+
* # RRF ranker with custom impact factor
|
|
4422
|
+
* SearchRankingOptions(ranker="rrf", impact_factor=50.0)
|
|
4423
|
+
*
|
|
4424
|
+
* # Use config defaults (just specify ranker type)
|
|
4425
|
+
* SearchRankingOptions(ranker="weighted") # Uses alpha from VectorStoresConfig
|
|
4426
|
+
*
|
|
4427
|
+
* # Score threshold filtering
|
|
4428
|
+
* SearchRankingOptions(ranker="weighted", score_threshold=0.5)
|
|
4190
4429
|
*/
|
|
4191
4430
|
export interface RankingOptions {
|
|
4431
|
+
/**
|
|
4432
|
+
* Weight factor for weighted ranker
|
|
4433
|
+
*/
|
|
4434
|
+
alpha?: number | null;
|
|
4435
|
+
|
|
4436
|
+
/**
|
|
4437
|
+
* Impact factor for RRF algorithm
|
|
4438
|
+
*/
|
|
4439
|
+
impact_factor?: number | null;
|
|
4440
|
+
|
|
4441
|
+
/**
|
|
4442
|
+
* Model identifier for neural reranker
|
|
4443
|
+
*/
|
|
4444
|
+
model?: string | null;
|
|
4445
|
+
|
|
4192
4446
|
ranker?: string | null;
|
|
4193
4447
|
|
|
4194
4448
|
score_threshold?: number | null;
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
* Weights for combining vector, keyword, and neural scores. Keys: 'vector',
|
|
4452
|
+
* 'keyword', 'neural'
|
|
4453
|
+
*/
|
|
4454
|
+
weights?: { [key: string]: number } | null;
|
|
4195
4455
|
}
|
|
4196
4456
|
}
|
|
4197
4457
|
|
|
@@ -4216,8 +4476,6 @@ export namespace ResponseCreateParams {
|
|
|
4216
4476
|
export interface OpenAIResponseInputToolMcp {
|
|
4217
4477
|
server_label: string;
|
|
4218
4478
|
|
|
4219
|
-
server_url: string;
|
|
4220
|
-
|
|
4221
4479
|
/**
|
|
4222
4480
|
* Filter configuration for restricting which MCP tools can be used.
|
|
4223
4481
|
*/
|
|
@@ -4225,6 +4483,8 @@ export namespace ResponseCreateParams {
|
|
|
4225
4483
|
|
|
4226
4484
|
authorization?: string | null;
|
|
4227
4485
|
|
|
4486
|
+
connector_id?: string | null;
|
|
4487
|
+
|
|
4228
4488
|
headers?: { [key: string]: unknown } | null;
|
|
4229
4489
|
|
|
4230
4490
|
/**
|
|
@@ -4232,6 +4492,8 @@ export namespace ResponseCreateParams {
|
|
|
4232
4492
|
*/
|
|
4233
4493
|
require_approval?: 'always' | 'never' | OpenAIResponseInputToolMcp.ApprovalFilter;
|
|
4234
4494
|
|
|
4495
|
+
server_url?: string | null;
|
|
4496
|
+
|
|
4235
4497
|
type?: 'mcp';
|
|
4236
4498
|
}
|
|
4237
4499
|
|
|
@@ -4258,14 +4520,23 @@ export namespace ResponseCreateParams {
|
|
|
4258
4520
|
}
|
|
4259
4521
|
|
|
4260
4522
|
export interface ResponseCreateParamsNonStreaming extends ResponseCreateParamsBase {
|
|
4523
|
+
/**
|
|
4524
|
+
* Whether to stream the response.
|
|
4525
|
+
*/
|
|
4261
4526
|
stream?: false | null;
|
|
4262
4527
|
}
|
|
4263
4528
|
|
|
4264
4529
|
export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase {
|
|
4530
|
+
/**
|
|
4531
|
+
* Whether to stream the response.
|
|
4532
|
+
*/
|
|
4265
4533
|
stream: true;
|
|
4266
4534
|
}
|
|
4267
4535
|
|
|
4268
4536
|
export interface ResponseListParams extends OpenAICursorPageParams {
|
|
4537
|
+
/**
|
|
4538
|
+
* The model to filter responses by.
|
|
4539
|
+
*/
|
|
4269
4540
|
model?: string | null;
|
|
4270
4541
|
|
|
4271
4542
|
/**
|