ogx-client 0.7.2-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +512 -0
- package/LICENSE +7 -0
- package/README.md +391 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +21 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +17 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +26 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +7 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +26 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +7 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +26 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +7 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +26 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +7 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +107 -0
- package/_shims/auto/types.js +9 -0
- package/_shims/auto/types.mjs +10 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +19 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +15 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +89 -0
- package/_shims/index.js +23 -0
- package/_shims/index.mjs +18 -0
- package/_shims/manual-types.d.ts +18 -0
- package/_shims/manual-types.js +9 -0
- package/_shims/manual-types.mjs +10 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +94 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +61 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +48 -0
- package/_shims/node-types.js +9 -0
- package/_shims/node-types.mjs +10 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +46 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +42 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +83 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +76 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +89 -0
- package/_shims/web-types.js +9 -0
- package/_shims/web-types.mjs +10 -0
- package/core.d.ts +257 -0
- package/core.d.ts.map +1 -0
- package/core.js +936 -0
- package/core.js.map +1 -0
- package/core.mjs +904 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +119 -0
- package/error.js.map +1 -0
- package/error.mjs +101 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +233 -0
- package/index.d.ts +233 -0
- package/index.d.ts.map +1 -0
- package/index.js +254 -0
- package/index.js.map +1 -0
- package/index.mjs +210 -0
- package/index.mjs.map +1 -0
- package/internal/decoders/line.d.ts +21 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +155 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +150 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +16 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +13 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +19 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +15 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +285 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +281 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +8 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +7 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +234 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +222 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/stream-utils.d.ts +8 -0
- package/internal/stream-utils.d.ts.map +1 -0
- package/internal/stream-utils.js +44 -0
- package/internal/stream-utils.js.map +1 -0
- package/internal/stream-utils.mjs +40 -0
- package/internal/stream-utils.mjs.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +39 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +12 -0
- package/internal/utils/query.mjs.map +1 -0
- package/lib/response-helpers.d.ts +23 -0
- package/lib/response-helpers.d.ts.map +1 -0
- package/lib/response-helpers.js +53 -0
- package/lib/response-helpers.js.map +1 -0
- package/lib/response-helpers.mjs +49 -0
- package/lib/response-helpers.mjs.map +1 -0
- package/ogx-client-0.7.2-rc1.tgz +0 -0
- package/package.json +108 -0
- package/pagination.d.ts +21 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +53 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +47 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +15 -0
- package/resource.js.map +1 -0
- package/resource.mjs +11 -0
- package/resource.mjs.map +1 -0
- package/resources/alpha/admin.d.ts +44 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +49 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +45 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +14 -0
- package/resources/alpha/alpha.d.ts.map +1 -0
- package/resources/alpha/alpha.js +49 -0
- package/resources/alpha/alpha.js.map +1 -0
- package/resources/alpha/alpha.mjs +22 -0
- package/resources/alpha/alpha.mjs.map +1 -0
- package/resources/alpha/benchmarks.d.ts +104 -0
- package/resources/alpha/benchmarks.d.ts.map +1 -0
- package/resources/alpha/benchmarks.js +50 -0
- package/resources/alpha/benchmarks.js.map +1 -0
- package/resources/alpha/benchmarks.mjs +44 -0
- package/resources/alpha/benchmarks.mjs.map +1 -0
- package/resources/alpha/index.d.ts +4 -0
- package/resources/alpha/index.d.ts.map +1 -0
- package/resources/alpha/index.js +17 -0
- package/resources/alpha/index.js.map +1 -0
- package/resources/alpha/index.mjs +11 -0
- package/resources/alpha/index.mjs.map +1 -0
- package/resources/alpha/inference.d.ts +144 -0
- package/resources/alpha/inference.d.ts.map +1 -0
- package/resources/alpha/inference.js +29 -0
- package/resources/alpha/inference.js.map +1 -0
- package/resources/alpha/inference.mjs +25 -0
- package/resources/alpha/inference.mjs.map +1 -0
- package/resources/alpha.d.ts +2 -0
- package/resources/alpha.d.ts.map +1 -0
- package/resources/alpha.js +25 -0
- package/resources/alpha.js.map +1 -0
- package/resources/alpha.mjs +9 -0
- package/resources/alpha.mjs.map +1 -0
- package/resources/batches.d.ts +442 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +53 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +48 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/chat/chat.d.ts +276 -0
- package/resources/chat/chat.d.ts.map +1 -0
- package/resources/chat/chat.js +45 -0
- package/resources/chat/chat.js.map +1 -0
- package/resources/chat/chat.mjs +18 -0
- package/resources/chat/chat.mjs.map +1 -0
- package/resources/chat/completions.d.ts +2021 -0
- package/resources/chat/completions.d.ts.map +1 -0
- package/resources/chat/completions.js +39 -0
- package/resources/chat/completions.js.map +1 -0
- package/resources/chat/completions.mjs +35 -0
- package/resources/chat/completions.mjs.map +1 -0
- package/resources/chat/index.d.ts +3 -0
- package/resources/chat/index.d.ts.map +1 -0
- package/resources/chat/index.js +15 -0
- package/resources/chat/index.js.map +1 -0
- package/resources/chat/index.mjs +10 -0
- package/resources/chat/index.mjs.map +1 -0
- package/resources/chat.d.ts +2 -0
- package/resources/chat.d.ts.map +1 -0
- package/resources/chat.js +25 -0
- package/resources/chat.js.map +1 -0
- package/resources/chat.mjs +9 -0
- package/resources/chat.mjs.map +1 -0
- package/resources/completions.d.ts +273 -0
- package/resources/completions.d.ts.map +1 -0
- package/resources/completions.js +26 -0
- package/resources/completions.js.map +1 -0
- package/resources/completions.mjs +22 -0
- package/resources/completions.mjs.map +1 -0
- package/resources/conversations/conversations.d.ts +429 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +73 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +46 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +16 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +10 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/items.d.ts +1408 -0
- package/resources/conversations/items.d.ts.map +1 -0
- package/resources/conversations/items.js +48 -0
- package/resources/conversations/items.js.map +1 -0
- package/resources/conversations/items.mjs +43 -0
- package/resources/conversations/items.mjs.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +25 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +9 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/embeddings.d.ts +98 -0
- package/resources/embeddings.d.ts.map +1 -0
- package/resources/embeddings.js +30 -0
- package/resources/embeddings.js.map +1 -0
- package/resources/embeddings.mjs +26 -0
- package/resources/embeddings.mjs.map +1 -0
- package/resources/files.d.ts +159 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +78 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +50 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.ts +20 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +66 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +27 -0
- package/resources/index.mjs.map +1 -0
- package/resources/inspect.d.ts +17 -0
- package/resources/inspect.d.ts.map +1 -0
- package/resources/inspect.js +30 -0
- package/resources/inspect.js.map +1 -0
- package/resources/inspect.mjs +26 -0
- package/resources/inspect.mjs.map +1 -0
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -0
- package/resources/models/index.js +15 -0
- package/resources/models/index.js.map +1 -0
- package/resources/models/index.mjs +10 -0
- package/resources/models/index.mjs.map +1 -0
- package/resources/models/models.d.ts +97 -0
- package/resources/models/models.d.ts.map +1 -0
- package/resources/models/models.js +57 -0
- package/resources/models/models.js.map +1 -0
- package/resources/models/models.mjs +30 -0
- package/resources/models/models.mjs.map +1 -0
- package/resources/models/openai.d.ts +10 -0
- package/resources/models/openai.d.ts.map +1 -0
- package/resources/models/openai.js +21 -0
- package/resources/models/openai.js.map +1 -0
- package/resources/models/openai.mjs +17 -0
- package/resources/models/openai.mjs.map +1 -0
- package/resources/models.d.ts +2 -0
- package/resources/models.d.ts.map +1 -0
- package/resources/models.js +25 -0
- package/resources/models.js.map +1 -0
- package/resources/models.mjs +9 -0
- package/resources/models.mjs.map +1 -0
- package/resources/moderations.d.ts +83 -0
- package/resources/moderations.d.ts.map +1 -0
- package/resources/moderations.js +24 -0
- package/resources/moderations.js.map +1 -0
- package/resources/moderations.mjs +20 -0
- package/resources/moderations.mjs.map +1 -0
- package/resources/prompts/index.d.ts +3 -0
- package/resources/prompts/index.d.ts.map +1 -0
- package/resources/prompts/index.js +15 -0
- package/resources/prompts/index.js.map +1 -0
- package/resources/prompts/index.mjs +10 -0
- package/resources/prompts/index.mjs.map +1 -0
- package/resources/prompts/prompts.d.ts +113 -0
- package/resources/prompts/prompts.d.ts.map +1 -0
- package/resources/prompts/prompts.js +88 -0
- package/resources/prompts/prompts.js.map +1 -0
- package/resources/prompts/prompts.mjs +61 -0
- package/resources/prompts/prompts.mjs.map +1 -0
- package/resources/prompts/versions.d.ts +13 -0
- package/resources/prompts/versions.d.ts.map +1 -0
- package/resources/prompts/versions.js +24 -0
- package/resources/prompts/versions.js.map +1 -0
- package/resources/prompts/versions.mjs +20 -0
- package/resources/prompts/versions.mjs.map +1 -0
- package/resources/prompts.d.ts +2 -0
- package/resources/prompts.d.ts.map +1 -0
- package/resources/prompts.js +25 -0
- package/resources/prompts.js.map +1 -0
- package/resources/prompts.mjs +9 -0
- package/resources/prompts.mjs.map +1 -0
- package/resources/providers.d.ts +24 -0
- package/resources/providers.d.ts.map +1 -0
- package/resources/providers.js +30 -0
- package/resources/providers.js.map +1 -0
- package/resources/providers.mjs +26 -0
- package/resources/providers.mjs.map +1 -0
- package/resources/responses/index.d.ts +3 -0
- package/resources/responses/index.d.ts.map +1 -0
- package/resources/responses/index.js +16 -0
- package/resources/responses/index.js.map +1 -0
- package/resources/responses/index.mjs +10 -0
- package/resources/responses/index.mjs.map +1 -0
- package/resources/responses/input-items.d.ts +382 -0
- package/resources/responses/input-items.d.ts.map +1 -0
- package/resources/responses/input-items.js +25 -0
- package/resources/responses/input-items.js.map +1 -0
- package/resources/responses/input-items.mjs +21 -0
- package/resources/responses/input-items.mjs.map +1 -0
- package/resources/responses/responses.d.ts +4808 -0
- package/resources/responses/responses.d.ts.map +1 -0
- package/resources/responses/responses.js +85 -0
- package/resources/responses/responses.js.map +1 -0
- package/resources/responses/responses.mjs +57 -0
- package/resources/responses/responses.mjs.map +1 -0
- package/resources/responses.d.ts +2 -0
- package/resources/responses.d.ts.map +1 -0
- package/resources/responses.js +25 -0
- package/resources/responses.js.map +1 -0
- package/resources/responses.mjs +9 -0
- package/resources/responses.mjs.map +1 -0
- package/resources/routes.d.ts +30 -0
- package/resources/routes.d.ts.map +1 -0
- package/resources/routes.js +25 -0
- package/resources/routes.js.map +1 -0
- package/resources/routes.mjs +21 -0
- package/resources/routes.mjs.map +1 -0
- package/resources/safety.d.ts +297 -0
- package/resources/safety.d.ts.map +1 -0
- package/resources/safety.js +24 -0
- package/resources/safety.js.map +1 -0
- package/resources/safety.mjs +20 -0
- package/resources/safety.mjs.map +1 -0
- package/resources/shared.d.ts +447 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +10 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +9 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/shields.d.ts +82 -0
- package/resources/shields.d.ts.map +1 -0
- package/resources/shields.js +46 -0
- package/resources/shields.js.map +1 -0
- package/resources/shields.mjs +42 -0
- package/resources/shields.mjs.map +1 -0
- package/resources/vector-io.d.ts +375 -0
- package/resources/vector-io.d.ts.map +1 -0
- package/resources/vector-io.js +31 -0
- package/resources/vector-io.js.map +1 -0
- package/resources/vector-io.mjs +27 -0
- package/resources/vector-io.mjs.map +1 -0
- package/resources/vector-stores/file-batches.d.ts +268 -0
- package/resources/vector-stores/file-batches.d.ts.map +1 -0
- package/resources/vector-stores/file-batches.js +42 -0
- package/resources/vector-stores/file-batches.js.map +1 -0
- package/resources/vector-stores/file-batches.mjs +38 -0
- package/resources/vector-stores/file-batches.mjs.map +1 -0
- package/resources/vector-stores/files.d.ts +335 -0
- package/resources/vector-stores/files.d.ts.map +1 -0
- package/resources/vector-stores/files.js +60 -0
- package/resources/vector-stores/files.js.map +1 -0
- package/resources/vector-stores/files.mjs +55 -0
- package/resources/vector-stores/files.mjs.map +1 -0
- package/resources/vector-stores/index.d.ts +4 -0
- package/resources/vector-stores/index.d.ts.map +1 -0
- package/resources/vector-stores/index.js +19 -0
- package/resources/vector-stores/index.js.map +1 -0
- package/resources/vector-stores/index.mjs +11 -0
- package/resources/vector-stores/index.mjs.map +1 -0
- package/resources/vector-stores/vector-stores.d.ts +412 -0
- package/resources/vector-stores/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores/vector-stores.js +92 -0
- package/resources/vector-stores/vector-stores.js.map +1 -0
- package/resources/vector-stores/vector-stores.mjs +64 -0
- package/resources/vector-stores/vector-stores.mjs.map +1 -0
- package/resources/vector-stores.d.ts +2 -0
- package/resources/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores.js +25 -0
- package/resources/vector-stores.js.map +1 -0
- package/resources/vector-stores.mjs +9 -0
- package/resources/vector-stores.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +23 -0
- package/resources.js.map +1 -0
- package/resources.mjs +7 -0
- package/resources.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +36 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +10 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +36 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +10 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +15 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +10 -0
- package/src/_shims/auto/runtime-node.ts +10 -0
- package/src/_shims/auto/runtime.ts +10 -0
- package/src/_shims/auto/types-node.ts +10 -0
- package/src/_shims/auto/types.d.ts +107 -0
- package/src/_shims/auto/types.js +9 -0
- package/src/_shims/auto/types.mjs +10 -0
- package/src/_shims/bun-runtime.ts +20 -0
- package/src/_shims/index.d.ts +89 -0
- package/src/_shims/index.js +23 -0
- package/src/_shims/index.mjs +18 -0
- package/src/_shims/manual-types.d.ts +18 -0
- package/src/_shims/manual-types.js +9 -0
- package/src/_shims/manual-types.mjs +10 -0
- package/src/_shims/node-runtime.ts +87 -0
- package/src/_shims/node-types.d.ts +48 -0
- package/src/_shims/node-types.js +9 -0
- package/src/_shims/node-types.mjs +10 -0
- package/src/_shims/registry.ts +73 -0
- package/src/_shims/web-runtime.ts +109 -0
- package/src/_shims/web-types.d.ts +89 -0
- package/src/_shims/web-types.js +9 -0
- package/src/_shims/web-types.mjs +10 -0
- package/src/core.ts +1253 -0
- package/src/error.ts +137 -0
- package/src/index.ts +554 -0
- package/src/internal/decoders/line.ts +182 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +15 -0
- package/src/internal/qs/index.ts +19 -0
- package/src/internal/qs/stringify.ts +394 -0
- package/src/internal/qs/types.ts +77 -0
- package/src/internal/qs/utils.ts +271 -0
- package/src/internal/stream-utils.ts +38 -0
- package/src/internal/utils/query.ts +13 -0
- package/src/lib/response-helpers.ts +60 -0
- package/src/pagination.ts +80 -0
- package/src/resource.ts +18 -0
- package/src/resources/alpha/admin.ts +87 -0
- package/src/resources/alpha/alpha.ts +31 -0
- package/src/resources/alpha/benchmarks.ts +152 -0
- package/src/resources/alpha/index.ts +11 -0
- package/src/resources/alpha/inference.ts +191 -0
- package/src/resources/alpha.ts +9 -0
- package/src/resources/batches.ts +692 -0
- package/src/resources/chat/chat.ts +351 -0
- package/src/resources/chat/completions.ts +2430 -0
- package/src/resources/chat/index.ts +19 -0
- package/src/resources/chat.ts +9 -0
- package/src/resources/completions.ts +350 -0
- package/src/resources/conversations/conversations.ts +627 -0
- package/src/resources/conversations/index.ts +25 -0
- package/src/resources/conversations/items.ts +2061 -0
- package/src/resources/conversations.ts +9 -0
- package/src/resources/embeddings.ts +130 -0
- package/src/resources/files.ts +225 -0
- package/src/resources/index.ts +104 -0
- package/src/resources/inspect.ts +30 -0
- package/src/resources/models/index.ts +10 -0
- package/src/resources/models/models.ts +133 -0
- package/src/resources/models/openai.ts +20 -0
- package/src/resources/models.ts +9 -0
- package/src/resources/moderations.ts +97 -0
- package/src/resources/prompts/index.ts +19 -0
- package/src/resources/prompts/prompts.ts +188 -0
- package/src/resources/prompts/versions.ts +27 -0
- package/src/resources/prompts.ts +9 -0
- package/src/resources/providers.ts +41 -0
- package/src/resources/responses/index.ts +26 -0
- package/src/resources/responses/input-items.ts +571 -0
- package/src/resources/responses/responses.ts +6718 -0
- package/src/resources/responses.ts +9 -0
- package/src/resources/routes.ts +55 -0
- package/src/resources/safety.ts +367 -0
- package/src/resources/shared.ts +544 -0
- package/src/resources/shields.ts +119 -0
- package/src/resources/vector-io.ts +485 -0
- package/src/resources/vector-stores/file-batches.ts +386 -0
- package/src/resources/vector-stores/files.ts +496 -0
- package/src/resources/vector-stores/index.ts +38 -0
- package/src/resources/vector-stores/vector-stores.ts +588 -0
- package/src/resources/vector-stores.ts +9 -0
- package/src/resources.ts +7 -0
- package/src/shims/node.ts +56 -0
- package/src/shims/web.ts +56 -0
- package/src/streaming.ts +315 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +261 -0
- package/src/version.ts +7 -0
- package/streaming.d.ts +32 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +272 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +267 -0
- package/streaming.mjs.map +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +176 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +163 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +10 -0
- package/version.js.map +1 -0
- package/version.mjs +7 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
import { APIResource } from "../resource.mjs";
|
|
9
|
+
import { isRequestOptions } from "../core.mjs";
|
|
10
|
+
import * as Core from "../core.mjs";
|
|
11
|
+
import { OpenAICursorPage } from "../pagination.mjs";
|
|
12
|
+
/**
|
|
13
|
+
* This API is used to upload documents that can be used with other OGX APIs.
|
|
14
|
+
*/
|
|
15
|
+
export class Files extends APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Upload a file.
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/v1/files', Core.multipartFormRequestOptions({ body, ...options }));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get file
|
|
24
|
+
*/
|
|
25
|
+
retrieve(fileId, options) {
|
|
26
|
+
return this._client.get(`/v1/files/${fileId}`, options);
|
|
27
|
+
}
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
if (isRequestOptions(query)) {
|
|
30
|
+
return this.list({}, query);
|
|
31
|
+
}
|
|
32
|
+
return this._client.getAPIList('/v1/files', FilesOpenAICursorPage, { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete file
|
|
36
|
+
*/
|
|
37
|
+
delete(fileId, options) {
|
|
38
|
+
return this._client.delete(`/v1/files/${fileId}`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve file content
|
|
42
|
+
*/
|
|
43
|
+
content(fileId, options) {
|
|
44
|
+
return this._client.get(`/v1/files/${fileId}/content`, options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export class FilesOpenAICursorPage extends OpenAICursorPage {
|
|
48
|
+
}
|
|
49
|
+
Files.FilesOpenAICursorPage = FilesOpenAICursorPage;
|
|
50
|
+
//# sourceMappingURL=files.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OACpB,KAAK,IAAI;OACT,EAAE,gBAAgB,EAA+B;AAExD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAOD,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,MAAc,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,gBAAsB;CAAG;AAuJpE,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./shared.js";
|
|
2
|
+
export { Alpha } from "./alpha/alpha.js";
|
|
3
|
+
export { BatchListResponsesOpenAICursorPage, Batches, type BatchCreateResponse, type BatchRetrieveResponse, type BatchListResponse, type BatchCancelResponse, type BatchCreateParams, type BatchListParams, } from "./batches.js";
|
|
4
|
+
export { Chat, type ChatCompletionChunk } from "./chat/chat.js";
|
|
5
|
+
export { Completions, type CompletionCreateResponse, type CompletionCreateParams, type CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming, } from "./completions.js";
|
|
6
|
+
export { Conversations, type ConversationObject, type ConversationDeleteResponse, type ConversationCreateParams, type ConversationUpdateParams, } from "./conversations/conversations.js";
|
|
7
|
+
export { Embeddings, type CreateEmbeddingsResponse, type EmbeddingCreateParams } from "./embeddings.js";
|
|
8
|
+
export { FilesOpenAICursorPage, Files, type DeleteFileResponse, type File, type ListFilesResponse, type FileContentResponse, type FileCreateParams, type FileListParams, } from "./files.js";
|
|
9
|
+
export { Inspect } from "./inspect.js";
|
|
10
|
+
export { Models, type ListModelsResponse, type Model, type ModelRetrieveResponse } from "./models/models.js";
|
|
11
|
+
export { Moderations, type CreateResponse, type ModerationCreateParams } from "./moderations.js";
|
|
12
|
+
export { Prompts, type ListPromptsResponse, type Prompt, type PromptListResponse, type PromptCreateParams, type PromptRetrieveParams, type PromptUpdateParams, type PromptSetDefaultVersionParams, } from "./prompts/prompts.js";
|
|
13
|
+
export { Providers, type ProviderListResponse } from "./providers.js";
|
|
14
|
+
export { ResponseListResponsesOpenAICursorPage, Responses, type CompactedResponse, type ResponseInput, type ResponseMessage, type ResponseObject, type ResponseObjectStream, type ResponseOutput, type ResponseListResponse, type ResponseDeleteResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, type ResponseListParams, type ResponseCompactParams, } from "./responses/responses.js";
|
|
15
|
+
export { Routes, type RouteListResponse, type RouteListParams } from "./routes.js";
|
|
16
|
+
export { Safety, type RunShieldResponse, type SafetyRunShieldParams } from "./safety.js";
|
|
17
|
+
export { Shields, type ListShieldsResponse, type Shield, type ShieldListResponse, type ShieldRegisterParams, } from "./shields.js";
|
|
18
|
+
export { VectorIo, type QueryChunksResponse, type VectorIoInsertParams, type VectorIoQueryParams, } from "./vector-io.js";
|
|
19
|
+
export { VectorStoresOpenAICursorPage, VectorStores, type ListVectorStoresResponse, type VectorStore, type VectorStoreDeleteResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.js";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,GACrC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EACL,qBAAqB,EACrB,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,KAAK,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC9F,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,GACnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,qCAAqC,EACrC,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.VectorStores = exports.VectorStoresOpenAICursorPage = exports.VectorIo = exports.Shields = exports.Safety = exports.Routes = exports.Responses = exports.ResponseListResponsesOpenAICursorPage = exports.Providers = exports.Prompts = exports.Moderations = exports.Models = exports.Inspect = exports.Files = exports.FilesOpenAICursorPage = exports.Embeddings = exports.Conversations = exports.Completions = exports.Chat = exports.Batches = exports.BatchListResponsesOpenAICursorPage = exports.Alpha = void 0;
|
|
25
|
+
__exportStar(require("./shared.js"), exports);
|
|
26
|
+
var alpha_1 = require("./alpha/alpha.js");
|
|
27
|
+
Object.defineProperty(exports, "Alpha", { enumerable: true, get: function () { return alpha_1.Alpha; } });
|
|
28
|
+
var batches_1 = require("./batches.js");
|
|
29
|
+
Object.defineProperty(exports, "BatchListResponsesOpenAICursorPage", { enumerable: true, get: function () { return batches_1.BatchListResponsesOpenAICursorPage; } });
|
|
30
|
+
Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } });
|
|
31
|
+
var chat_1 = require("./chat/chat.js");
|
|
32
|
+
Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } });
|
|
33
|
+
var completions_1 = require("./completions.js");
|
|
34
|
+
Object.defineProperty(exports, "Completions", { enumerable: true, get: function () { return completions_1.Completions; } });
|
|
35
|
+
var conversations_1 = require("./conversations/conversations.js");
|
|
36
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
37
|
+
var embeddings_1 = require("./embeddings.js");
|
|
38
|
+
Object.defineProperty(exports, "Embeddings", { enumerable: true, get: function () { return embeddings_1.Embeddings; } });
|
|
39
|
+
var files_1 = require("./files.js");
|
|
40
|
+
Object.defineProperty(exports, "FilesOpenAICursorPage", { enumerable: true, get: function () { return files_1.FilesOpenAICursorPage; } });
|
|
41
|
+
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
42
|
+
var inspect_1 = require("./inspect.js");
|
|
43
|
+
Object.defineProperty(exports, "Inspect", { enumerable: true, get: function () { return inspect_1.Inspect; } });
|
|
44
|
+
var models_1 = require("./models/models.js");
|
|
45
|
+
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
46
|
+
var moderations_1 = require("./moderations.js");
|
|
47
|
+
Object.defineProperty(exports, "Moderations", { enumerable: true, get: function () { return moderations_1.Moderations; } });
|
|
48
|
+
var prompts_1 = require("./prompts/prompts.js");
|
|
49
|
+
Object.defineProperty(exports, "Prompts", { enumerable: true, get: function () { return prompts_1.Prompts; } });
|
|
50
|
+
var providers_1 = require("./providers.js");
|
|
51
|
+
Object.defineProperty(exports, "Providers", { enumerable: true, get: function () { return providers_1.Providers; } });
|
|
52
|
+
var responses_1 = require("./responses/responses.js");
|
|
53
|
+
Object.defineProperty(exports, "ResponseListResponsesOpenAICursorPage", { enumerable: true, get: function () { return responses_1.ResponseListResponsesOpenAICursorPage; } });
|
|
54
|
+
Object.defineProperty(exports, "Responses", { enumerable: true, get: function () { return responses_1.Responses; } });
|
|
55
|
+
var routes_1 = require("./routes.js");
|
|
56
|
+
Object.defineProperty(exports, "Routes", { enumerable: true, get: function () { return routes_1.Routes; } });
|
|
57
|
+
var safety_1 = require("./safety.js");
|
|
58
|
+
Object.defineProperty(exports, "Safety", { enumerable: true, get: function () { return safety_1.Safety; } });
|
|
59
|
+
var shields_1 = require("./shields.js");
|
|
60
|
+
Object.defineProperty(exports, "Shields", { enumerable: true, get: function () { return shields_1.Shields; } });
|
|
61
|
+
var vector_io_1 = require("./vector-io.js");
|
|
62
|
+
Object.defineProperty(exports, "VectorIo", { enumerable: true, get: function () { return vector_io_1.VectorIo; } });
|
|
63
|
+
var vector_stores_1 = require("./vector-stores/vector-stores.js");
|
|
64
|
+
Object.defineProperty(exports, "VectorStoresOpenAICursorPage", { enumerable: true, get: function () { return vector_stores_1.VectorStoresOpenAICursorPage; } });
|
|
65
|
+
Object.defineProperty(exports, "VectorStores", { enumerable: true, get: function () { return vector_stores_1.VectorStores; } });
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,wCASmB;AARjB,6HAAA,kCAAkC,OAAA;AAClC,kGAAA,OAAO,OAAA;AAQT,uCAA6D;AAApD,4FAAA,IAAI,OAAA;AACb,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,kEAMuC;AALrC,8GAAA,aAAa,OAAA;AAMf,8CAAqG;AAA5F,wGAAA,UAAU,OAAA;AACnB,oCASiB;AARf,8GAAA,qBAAqB,OAAA;AACrB,8FAAA,KAAK,OAAA;AAQP,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,6CAA0G;AAAjG,gGAAA,MAAM,OAAA;AACf,gDAA8F;AAArF,0GAAA,WAAW,OAAA;AACpB,gDAS2B;AARzB,kGAAA,OAAO,OAAA;AAST,4CAAmE;AAA1D,sGAAA,SAAS,OAAA;AAClB,sDAgB+B;AAf7B,kIAAA,qCAAqC,OAAA;AACrC,sGAAA,SAAS,OAAA;AAeX,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,sCAAsF;AAA7E,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4CAKqB;AAJnB,qGAAA,QAAQ,OAAA;AAKV,kEAWuC;AAVrC,6HAAA,4BAA4B,OAAA;AAC5B,6GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
export * from "./shared.mjs";
|
|
9
|
+
export { Alpha } from "./alpha/alpha.mjs";
|
|
10
|
+
export { BatchListResponsesOpenAICursorPage, Batches, } from "./batches.mjs";
|
|
11
|
+
export { Chat } from "./chat/chat.mjs";
|
|
12
|
+
export { Completions, } from "./completions.mjs";
|
|
13
|
+
export { Conversations, } from "./conversations/conversations.mjs";
|
|
14
|
+
export { Embeddings } from "./embeddings.mjs";
|
|
15
|
+
export { FilesOpenAICursorPage, Files, } from "./files.mjs";
|
|
16
|
+
export { Inspect } from "./inspect.mjs";
|
|
17
|
+
export { Models } from "./models/models.mjs";
|
|
18
|
+
export { Moderations } from "./moderations.mjs";
|
|
19
|
+
export { Prompts, } from "./prompts/prompts.mjs";
|
|
20
|
+
export { Providers } from "./providers.mjs";
|
|
21
|
+
export { ResponseListResponsesOpenAICursorPage, Responses, } from "./responses/responses.mjs";
|
|
22
|
+
export { Routes } from "./routes.mjs";
|
|
23
|
+
export { Safety } from "./safety.mjs";
|
|
24
|
+
export { Shields, } from "./shields.mjs";
|
|
25
|
+
export { VectorIo, } from "./vector-io.mjs";
|
|
26
|
+
export { VectorStoresOpenAICursorPage, VectorStores, } from "./vector-stores/vector-stores.mjs";
|
|
27
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;OAG/E,EAAE,KAAK,EAAE;OACT,EACL,kCAAkC,EAClC,OAAO,GAOR;OACM,EAAE,IAAI,EAA4B;OAClC,EACL,WAAW,GAKZ;OACM,EACL,aAAa,GAKd;OACM,EAAE,UAAU,EAA6D;OACzE,EACL,qBAAqB,EACrB,KAAK,GAON;OACM,EAAE,OAAO,EAAE;OACX,EAAE,MAAM,EAAmE;OAC3E,EAAE,WAAW,EAAoD;OACjE,EACL,OAAO,GAQR;OACM,EAAE,SAAS,EAA6B;OACxC,EACL,qCAAqC,EACrC,SAAS,GAcV;OACM,EAAE,MAAM,EAAgD;OACxD,EAAE,MAAM,EAAsD;OAC9D,EACL,OAAO,GAKR;OACM,EACL,QAAQ,GAIT;OACM,EACL,4BAA4B,EAC5B,YAAY,GASb"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
import * as Shared from "./shared.js";
|
|
4
|
+
/**
|
|
5
|
+
* APIs for inspecting the OGX service, including health status, available API routes with methods and implementing providers.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Inspect extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the current health status of the service.
|
|
10
|
+
*/
|
|
11
|
+
health(options?: Core.RequestOptions): Core.APIPromise<Shared.HealthInfo>;
|
|
12
|
+
/**
|
|
13
|
+
* Get the version of the service.
|
|
14
|
+
*/
|
|
15
|
+
version(options?: Core.RequestOptions): Core.APIPromise<Shared.VersionInfo>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=inspect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;IAIzE;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;CAG5E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Inspect = void 0;
|
|
11
|
+
const resource_1 = require("../resource.js");
|
|
12
|
+
/**
|
|
13
|
+
* APIs for inspecting the OGX service, including health status, available API routes with methods and implementing providers.
|
|
14
|
+
*/
|
|
15
|
+
class Inspect extends resource_1.APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get the current health status of the service.
|
|
18
|
+
*/
|
|
19
|
+
health(options) {
|
|
20
|
+
return this._client.get('/v1/health', options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get the version of the service.
|
|
24
|
+
*/
|
|
25
|
+
version(options) {
|
|
26
|
+
return this._client.get('/v1/version', options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Inspect = Inspect;
|
|
30
|
+
//# sourceMappingURL=inspect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAI1C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAA6B;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AAdD,0BAcC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
import { APIResource } from "../resource.mjs";
|
|
9
|
+
/**
|
|
10
|
+
* APIs for inspecting the OGX service, including health status, available API routes with methods and implementing providers.
|
|
11
|
+
*/
|
|
12
|
+
export class Inspect extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get the current health status of the service.
|
|
15
|
+
*/
|
|
16
|
+
health(options) {
|
|
17
|
+
return this._client.get('/v1/health', options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the version of the service.
|
|
21
|
+
*/
|
|
22
|
+
version(options) {
|
|
23
|
+
return this._client.get('/v1/version', options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=inspect.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.mjs","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAA6B;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,KAAK,EAAE,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.OpenAI = exports.Models = void 0;
|
|
11
|
+
var models_1 = require("./models.js");
|
|
12
|
+
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
13
|
+
var openai_1 = require("./openai.js");
|
|
14
|
+
Object.defineProperty(exports, "OpenAI", { enumerable: true, get: function () { return openai_1.OpenAI; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,sCAAmG;AAA1F,gGAAA,MAAM,OAAA;AACf,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
export { Models } from "./models.mjs";
|
|
9
|
+
export { OpenAI } from "./openai.mjs";
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,MAAM,EAAmE;OAC3E,EAAE,MAAM,EAAE"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as OpenAIAPI from "./openai.js";
|
|
4
|
+
import { OpenAI } from "./openai.js";
|
|
5
|
+
export declare class Models extends APIResource {
|
|
6
|
+
openai: OpenAIAPI.OpenAI;
|
|
7
|
+
/**
|
|
8
|
+
* Get a model by its identifier.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(modelId: string, options?: Core.RequestOptions): Core.APIPromise<ModelRetrieveResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* List models using the OpenAI API.
|
|
13
|
+
*/
|
|
14
|
+
list(options?: Core.RequestOptions): Core.APIPromise<ListModelsResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Response containing a list of OpenAI model objects.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListModelsResponse {
|
|
20
|
+
/**
|
|
21
|
+
* List of OpenAI model objects.
|
|
22
|
+
*/
|
|
23
|
+
data: Array<Model>;
|
|
24
|
+
object?: 'list';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A model from OpenAI.
|
|
28
|
+
*
|
|
29
|
+
* :id: The ID of the model :object: The object type, which will be "model"
|
|
30
|
+
* :created: The Unix timestamp in seconds when the model was created :owned_by:
|
|
31
|
+
* The owner of the model :custom_metadata: OGX-specific metadata including
|
|
32
|
+
* model_type, provider info, and additional metadata
|
|
33
|
+
*/
|
|
34
|
+
export interface Model {
|
|
35
|
+
id: string;
|
|
36
|
+
created: number;
|
|
37
|
+
owned_by: string;
|
|
38
|
+
custom_metadata?: {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
} | null;
|
|
41
|
+
object?: 'model';
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A model resource representing an AI model registered in OGX.
|
|
45
|
+
*/
|
|
46
|
+
export interface ModelRetrieveResponse {
|
|
47
|
+
/**
|
|
48
|
+
* The model identifier (OpenAI-compatible alias for identifier).
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
/**
|
|
52
|
+
* Unique identifier for this resource in ogx
|
|
53
|
+
*/
|
|
54
|
+
identifier: string;
|
|
55
|
+
/**
|
|
56
|
+
* The object type, always 'model'.
|
|
57
|
+
*/
|
|
58
|
+
object: 'model';
|
|
59
|
+
/**
|
|
60
|
+
* ID of the provider that owns this resource
|
|
61
|
+
*/
|
|
62
|
+
provider_id: string;
|
|
63
|
+
/**
|
|
64
|
+
* The Unix timestamp in seconds when the model was created.
|
|
65
|
+
*/
|
|
66
|
+
created?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Any additional metadata for this model
|
|
69
|
+
*/
|
|
70
|
+
metadata?: {
|
|
71
|
+
[key: string]: unknown;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Enumeration of supported model types in OGX.
|
|
75
|
+
*/
|
|
76
|
+
model_type?: 'llm' | 'embedding' | 'rerank';
|
|
77
|
+
/**
|
|
78
|
+
* Enable model availability check during registration. When false (default),
|
|
79
|
+
* validation is deferred to runtime and model is preserved during provider
|
|
80
|
+
* refresh.
|
|
81
|
+
*/
|
|
82
|
+
model_validation?: boolean | null;
|
|
83
|
+
/**
|
|
84
|
+
* The owner of the model.
|
|
85
|
+
*/
|
|
86
|
+
owned_by?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Unique identifier for this resource in the provider
|
|
89
|
+
*/
|
|
90
|
+
provider_resource_id?: string | null;
|
|
91
|
+
type?: 'model';
|
|
92
|
+
}
|
|
93
|
+
export declare namespace Models {
|
|
94
|
+
export { type ListModelsResponse as ListModelsResponse, type Model as Model, type ModelRetrieveResponse as ModelRetrieveResponse, };
|
|
95
|
+
export { OpenAI as OpenAI };
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,MAAO,SAAQ,WAAW;IACrC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIhG;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAGzE;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAEjB,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEpD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,WAAW,GAAG,QAAQ,CAAC;IAE5C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.Models = void 0;
|
|
34
|
+
const resource_1 = require("../../resource.js");
|
|
35
|
+
const OpenAIAPI = __importStar(require("./openai.js"));
|
|
36
|
+
const openai_1 = require("./openai.js");
|
|
37
|
+
class Models extends resource_1.APIResource {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.openai = new OpenAIAPI.OpenAI(this._client);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a model by its identifier.
|
|
44
|
+
*/
|
|
45
|
+
retrieve(modelId, options) {
|
|
46
|
+
return this._client.get(`/v1/models/${modelId}`, options);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* List models using the OpenAI API.
|
|
50
|
+
*/
|
|
51
|
+
list(options) {
|
|
52
|
+
return this._client.get('/v1/models', options);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Models = Models;
|
|
56
|
+
Models.OpenAI = openai_1.OpenAI;
|
|
57
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,uDAAsC;AACtC,wCAAkC;AAElC,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAehE,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AAhBD,wBAgBC;AA6FD,MAAM,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
import { APIResource } from "../../resource.mjs";
|
|
9
|
+
import * as OpenAIAPI from "./openai.mjs";
|
|
10
|
+
import { OpenAI } from "./openai.mjs";
|
|
11
|
+
export class Models extends APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.openai = new OpenAIAPI.OpenAI(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get a model by its identifier.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(modelId, options) {
|
|
20
|
+
return this._client.get(`/v1/models/${modelId}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List models using the OpenAI API.
|
|
24
|
+
*/
|
|
25
|
+
list(options) {
|
|
26
|
+
return this._client.get('/v1/models', options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
Models.OpenAI = OpenAI;
|
|
30
|
+
//# sourceMappingURL=models.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/models/models.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;AAEjB,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAehE,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AA6FD,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as ModelsAPI from "./models.js";
|
|
4
|
+
export declare class OpenAI extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List models using the OpenAI API.
|
|
7
|
+
*/
|
|
8
|
+
list(options?: Core.RequestOptions): Core.APIPromise<ModelsAPI.ListModelsResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../src/resources/models/openai.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AAEtC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,CAAC;CAGnF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.OpenAI = void 0;
|
|
11
|
+
const resource_1 = require("../../resource.js");
|
|
12
|
+
class OpenAI extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* List models using the OpenAI API.
|
|
15
|
+
*/
|
|
16
|
+
list(options) {
|
|
17
|
+
return this._client.get('/v1/models', options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.OpenAI = OpenAI;
|
|
21
|
+
//# sourceMappingURL=openai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../src/resources/models/openai.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AAPD,wBAOC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
import { APIResource } from "../../resource.mjs";
|
|
9
|
+
export class OpenAI extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List models using the OpenAI API.
|
|
12
|
+
*/
|
|
13
|
+
list(options) {
|
|
14
|
+
return this._client.get('/v1/models', options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=openai.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.mjs","sourceRoot":"","sources":["../../src/resources/models/openai.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
__exportStar(require("./models/index.js"), exports);
|
|
25
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;AAEtF,oDAA+B"}
|