@coro-ai/runner 0.1.32 → 0.1.34
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/dashboard-dist/assets/{index--JceWwKS.js → index-C7l2FOsX.js} +9 -3
- package/dashboard-dist/index.html +1 -1
- package/dist/src/clients/tracker/jira.js +6 -0
- package/dist/src/clients/tracker/jira.js.map +1 -1
- package/dist/src/clients/tracker/linear.js +6 -2
- package/dist/src/clients/tracker/linear.js.map +1 -1
- package/dist/src/clients/tracker/types.d.ts +11 -0
- package/dist/src/config/local-config.d.ts +3 -0
- package/dist/src/config/local-config.js +2 -0
- package/dist/src/config/local-config.js.map +1 -1
- package/dist/src/intake/handler.js +27 -9
- package/dist/src/intake/handler.js.map +1 -1
- package/dist/src/intake/system-prompt.d.ts +1 -0
- package/dist/src/intake/system-prompt.js +8 -1
- package/dist/src/intake/system-prompt.js.map +1 -1
- package/dist/src/intake/tools.js +5 -0
- package/dist/src/intake/tools.js.map +1 -1
- package/dist/src/jobs/runner.d.ts +6 -0
- package/dist/src/jobs/runner.js +7 -0
- package/dist/src/jobs/runner.js.map +1 -1
- package/dist/src/mcp-handlers.d.ts +1 -0
- package/dist/src/mcp-handlers.js +6 -2
- package/dist/src/mcp-handlers.js.map +1 -1
- package/dist/src/mcp-server.js +6 -1
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/plugins/builtin/github-tracker/intelligence/snippets/github-issues-keys.md +4 -1
- package/dist/src/plugins/builtin/jira/index.js +12 -0
- package/dist/src/plugins/builtin/jira/index.js.map +1 -1
- package/dist/src/plugins/builtin/jira/intelligence/snippets/jira-transitions.md +6 -1
- package/dist/src/plugins/builtin/linear/index.js +12 -0
- package/dist/src/plugins/builtin/linear/index.js.map +1 -1
- package/dist/src/plugins/builtin/linear/intelligence/snippets/linear-keys.md +6 -2
- package/dist/src/plugins/types.d.ts +12 -0
- package/node_modules/@coro-ai/cloud-protocol/package.json +1 -1
- package/node_modules/@coro-ai/intelligence-base/package.json +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/chat-via-sdk.d.ts +2 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/chat-via-sdk.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/chat-via-sdk.js +25 -46
- package/node_modules/@coro-ai/llm-anthropic/dist/chat-via-sdk.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts +7 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.js +76 -6
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.js +3 -2
- package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.d.ts +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.js +2 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/login.d.ts +3 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/login.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/login.js +5 -2
- package/node_modules/@coro-ai/llm-anthropic/dist/login.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.d.ts +2 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.js +8 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/package.json +1 -1
- package/node_modules/@coro-ai/llm-openai/README.md +3 -3
- package/node_modules/@coro-ai/llm-openai/dist/executor.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/executor.js +129 -87
- package/node_modules/@coro-ai/llm-openai/dist/executor.js.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/models.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/models.js +24 -0
- package/node_modules/@coro-ai/llm-openai/dist/models.js.map +1 -1
- package/node_modules/@coro-ai/llm-openai/package.json +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.d.ts +30 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.d.ts.map +1 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.js +85 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.js.map +1 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/index.d.ts +1 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/index.js +1 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/index.js.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts +20 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/package.json +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +10 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +2 -0
- package/node_modules/body-parser/HISTORY.md +7 -1
- package/node_modules/body-parser/lib/types/json.js +7 -3
- package/node_modules/body-parser/lib/types/raw.js +7 -3
- package/node_modules/body-parser/lib/types/text.js +7 -3
- package/node_modules/body-parser/lib/types/urlencoded.js +7 -3
- package/node_modules/body-parser/package.json +1 -1
- package/node_modules/express-rate-limit/dist/index.cjs +69 -5
- package/node_modules/express-rate-limit/dist/index.d.cts +18 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +18 -0
- package/node_modules/express-rate-limit/dist/index.d.ts +18 -0
- package/node_modules/express-rate-limit/dist/index.mjs +55 -5
- package/node_modules/express-rate-limit/node_modules/debug/LICENSE +20 -0
- package/node_modules/express-rate-limit/node_modules/debug/README.md +481 -0
- package/node_modules/express-rate-limit/node_modules/debug/package.json +64 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/browser.js +272 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/common.js +292 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/index.js +10 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/node.js +263 -0
- package/node_modules/express-rate-limit/node_modules/ms/index.js +162 -0
- package/node_modules/express-rate-limit/node_modules/ms/license.md +21 -0
- package/node_modules/express-rate-limit/node_modules/ms/package.json +38 -0
- package/node_modules/express-rate-limit/node_modules/ms/readme.md +59 -0
- package/node_modules/express-rate-limit/package.json +11 -8
- package/node_modules/express-rate-limit/readme.md +2 -2
- package/node_modules/fast-copy/README.md +46 -46
- package/node_modules/fast-copy/dist/cjs/index.cjs +13 -19
- package/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -1
- package/node_modules/fast-copy/dist/cjs/index.d.cts +40 -6
- package/node_modules/fast-copy/dist/es/index.d.mts +40 -6
- package/node_modules/fast-copy/dist/es/index.mjs +13 -19
- package/node_modules/fast-copy/dist/es/index.mjs.map +1 -1
- package/node_modules/fast-copy/dist/umd/index.d.ts +40 -6
- package/node_modules/fast-copy/dist/umd/index.js +13 -19
- package/node_modules/fast-copy/dist/umd/index.js.map +1 -1
- package/node_modules/fast-copy/index.d.ts +22 -22
- package/node_modules/fast-copy/package.json +30 -23
- package/node_modules/fast-uri/index.js +1 -1
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/security.test.js +28 -0
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +11 -22
- package/node_modules/hono/dist/adapter/bun/websocket.js +3 -1
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +12 -2
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +11 -22
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +3 -1
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +12 -2
- package/node_modules/hono/dist/cjs/client/client.js +10 -1
- package/node_modules/hono/dist/cjs/client/utils.js +1 -1
- package/node_modules/hono/dist/cjs/helper/css/common.js +3 -1
- package/node_modules/hono/dist/cjs/helper/css/index.js +9 -1
- package/node_modules/hono/dist/cjs/jsx/base.js +8 -14
- package/node_modules/hono/dist/cjs/jsx/components.js +41 -21
- package/node_modules/hono/dist/cjs/jsx/context.js +131 -5
- package/node_modules/hono/dist/cjs/jsx/streaming.js +9 -7
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +2 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -1
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +9 -0
- package/node_modules/hono/dist/cjs/utils/body.js +12 -4
- package/node_modules/hono/dist/cjs/utils/buffer.js +2 -1
- package/node_modules/hono/dist/cjs/validator/validator.js +3 -3
- package/node_modules/hono/dist/client/client.js +10 -1
- package/node_modules/hono/dist/client/utils.js +1 -1
- package/node_modules/hono/dist/helper/css/common.js +3 -1
- package/node_modules/hono/dist/helper/css/index.js +9 -1
- package/node_modules/hono/dist/jsx/base.js +15 -15
- package/node_modules/hono/dist/jsx/components.js +42 -22
- package/node_modules/hono/dist/jsx/context.js +129 -5
- package/node_modules/hono/dist/jsx/streaming.js +10 -8
- package/node_modules/hono/dist/middleware/cache/index.js +1 -1
- package/node_modules/hono/dist/middleware/compress/index.js +2 -1
- package/node_modules/hono/dist/middleware/etag/index.js +2 -1
- package/node_modules/hono/dist/middleware/method-override/index.js +5 -3
- package/node_modules/hono/dist/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/router/trie-router/node.js +9 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
- package/node_modules/hono/dist/types/jsx/base.d.ts +1 -3
- package/node_modules/hono/dist/types/jsx/context.d.ts +39 -0
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +2 -2
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
- package/node_modules/hono/dist/types/utils/body.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/types.d.ts +1 -1
- package/node_modules/hono/dist/utils/body.js +12 -4
- package/node_modules/hono/dist/utils/buffer.js +2 -1
- package/node_modules/hono/dist/validator/validator.js +3 -3
- package/node_modules/hono/package.json +11 -10
- package/node_modules/js-yaml/README.md +5 -3
- package/node_modules/js-yaml/dist/js-yaml.js +3009 -2402
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -33
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +3073 -2381
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/lib/loader.js +7 -11
- package/node_modules/js-yaml/lib/type/float.js +1 -1
- package/node_modules/js-yaml/lib/type/int.js +4 -4
- package/node_modules/js-yaml/package.json +10 -4
- package/node_modules/node-abi/abi_registry.json +8 -1
- package/node_modules/node-abi/package.json +1 -1
- package/node_modules/openai/CHANGELOG.md +117 -0
- package/node_modules/openai/README.md +94 -104
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.js +41 -15
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.mjs +41 -15
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.js +3 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.mjs +3 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.js +3 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.mjs +3 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.mjs.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.js.map +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.mjs.map +1 -1
- package/node_modules/openai/auth/workload-identity-auth.d.mts.map +1 -1
- package/node_modules/openai/auth/workload-identity-auth.d.ts.map +1 -1
- package/node_modules/openai/auth/workload-identity-auth.js +12 -4
- package/node_modules/openai/auth/workload-identity-auth.js.map +1 -1
- package/node_modules/openai/auth/workload-identity-auth.mjs +13 -5
- package/node_modules/openai/auth/workload-identity-auth.mjs.map +1 -1
- package/node_modules/openai/azure.d.mts +3 -1
- package/node_modules/openai/azure.d.mts.map +1 -1
- package/node_modules/openai/azure.d.ts +3 -1
- package/node_modules/openai/azure.d.ts.map +1 -1
- package/node_modules/openai/azure.js.map +1 -1
- package/node_modules/openai/azure.mjs.map +1 -1
- package/node_modules/openai/beta/realtime/internal-base.d.mts +14 -1
- package/node_modules/openai/beta/realtime/internal-base.d.mts.map +1 -1
- package/node_modules/openai/beta/realtime/internal-base.d.ts +14 -1
- package/node_modules/openai/beta/realtime/internal-base.d.ts.map +1 -1
- package/node_modules/openai/beta/realtime/internal-base.js +21 -5
- package/node_modules/openai/beta/realtime/internal-base.js.map +1 -1
- package/node_modules/openai/beta/realtime/internal-base.mjs +21 -5
- package/node_modules/openai/beta/realtime/internal-base.mjs.map +1 -1
- package/node_modules/openai/beta/realtime/websocket.d.mts +3 -5
- package/node_modules/openai/beta/realtime/websocket.d.mts.map +1 -1
- package/node_modules/openai/beta/realtime/websocket.d.ts +3 -5
- package/node_modules/openai/beta/realtime/websocket.d.ts.map +1 -1
- package/node_modules/openai/beta/realtime/websocket.js +2 -3
- package/node_modules/openai/beta/realtime/websocket.js.map +1 -1
- package/node_modules/openai/beta/realtime/websocket.mjs +3 -4
- package/node_modules/openai/beta/realtime/websocket.mjs.map +1 -1
- package/node_modules/openai/beta/realtime/ws.d.mts +3 -5
- package/node_modules/openai/beta/realtime/ws.d.mts.map +1 -1
- package/node_modules/openai/beta/realtime/ws.d.ts +3 -5
- package/node_modules/openai/beta/realtime/ws.d.ts.map +1 -1
- package/node_modules/openai/beta/realtime/ws.js +2 -3
- package/node_modules/openai/beta/realtime/ws.js.map +1 -1
- package/node_modules/openai/beta/realtime/ws.mjs +3 -4
- package/node_modules/openai/beta/realtime/ws.mjs.map +1 -1
- package/node_modules/openai/client.d.mts +10 -1
- package/node_modules/openai/client.d.mts.map +1 -1
- package/node_modules/openai/client.d.ts +10 -1
- package/node_modules/openai/client.d.ts.map +1 -1
- package/node_modules/openai/client.js +67 -14
- package/node_modules/openai/client.js.map +1 -1
- package/node_modules/openai/client.mjs +67 -14
- package/node_modules/openai/client.mjs.map +1 -1
- package/node_modules/openai/core/streaming.d.mts.map +1 -1
- package/node_modules/openai/core/streaming.d.ts.map +1 -1
- package/node_modules/openai/core/streaming.js +38 -6
- package/node_modules/openai/core/streaming.js.map +1 -1
- package/node_modules/openai/core/streaming.mjs +38 -6
- package/node_modules/openai/core/streaming.mjs.map +1 -1
- package/node_modules/openai/core/uploads.d.mts +1 -1
- package/node_modules/openai/core/uploads.d.mts.map +1 -1
- package/node_modules/openai/core/uploads.d.ts +1 -1
- package/node_modules/openai/core/uploads.d.ts.map +1 -1
- package/node_modules/openai/core/uploads.js +3 -1
- package/node_modules/openai/core/uploads.js.map +1 -1
- package/node_modules/openai/core/uploads.mjs +1 -0
- package/node_modules/openai/core/uploads.mjs.map +1 -1
- package/node_modules/openai/helpers/audio.d.mts.map +1 -1
- package/node_modules/openai/helpers/audio.d.ts.map +1 -1
- package/node_modules/openai/helpers/audio.js +16 -3
- package/node_modules/openai/helpers/audio.js.map +1 -1
- package/node_modules/openai/helpers/audio.mjs +17 -4
- package/node_modules/openai/helpers/audio.mjs.map +1 -1
- package/node_modules/openai/helpers/zod.d.mts +20 -7
- package/node_modules/openai/helpers/zod.d.mts.map +1 -1
- package/node_modules/openai/helpers/zod.d.ts +20 -7
- package/node_modules/openai/helpers/zod.d.ts.map +1 -1
- package/node_modules/openai/helpers/zod.js +36 -12
- package/node_modules/openai/helpers/zod.js.map +1 -1
- package/node_modules/openai/helpers/zod.mjs +36 -12
- package/node_modules/openai/helpers/zod.mjs.map +1 -1
- package/node_modules/openai/index.d.mts +1 -1
- package/node_modules/openai/index.d.mts.map +1 -1
- package/node_modules/openai/index.d.ts +1 -1
- package/node_modules/openai/index.d.ts.map +1 -1
- package/node_modules/openai/index.js +2 -1
- package/node_modules/openai/index.js.map +1 -1
- package/node_modules/openai/index.mjs +1 -1
- package/node_modules/openai/index.mjs.map +1 -1
- package/node_modules/openai/internal/bedrock.d.mts +34 -0
- package/node_modules/openai/internal/bedrock.d.mts.map +1 -0
- package/node_modules/openai/internal/bedrock.d.ts +34 -0
- package/node_modules/openai/internal/bedrock.d.ts.map +1 -0
- package/node_modules/openai/internal/bedrock.js +107 -0
- package/node_modules/openai/internal/bedrock.js.map +1 -0
- package/node_modules/openai/internal/bedrock.mjs +99 -0
- package/node_modules/openai/internal/bedrock.mjs.map +1 -0
- package/node_modules/openai/internal/headers.d.mts.map +1 -1
- package/node_modules/openai/internal/headers.d.ts.map +1 -1
- package/node_modules/openai/internal/headers.js +7 -3
- package/node_modules/openai/internal/headers.js.map +1 -1
- package/node_modules/openai/internal/headers.mjs +7 -3
- package/node_modules/openai/internal/headers.mjs.map +1 -1
- package/node_modules/openai/internal/provider.d.mts +23 -0
- package/node_modules/openai/internal/provider.d.mts.map +1 -0
- package/node_modules/openai/internal/provider.d.ts +23 -0
- package/node_modules/openai/internal/provider.d.ts.map +1 -0
- package/node_modules/openai/internal/provider.js +36 -0
- package/node_modules/openai/internal/provider.js.map +1 -0
- package/node_modules/openai/internal/provider.mjs +32 -0
- package/node_modules/openai/internal/provider.mjs.map +1 -0
- package/node_modules/openai/internal/uploads.d.mts +26 -1
- package/node_modules/openai/internal/uploads.d.mts.map +1 -1
- package/node_modules/openai/internal/uploads.d.ts +26 -1
- package/node_modules/openai/internal/uploads.d.ts.map +1 -1
- package/node_modules/openai/internal/uploads.js +169 -1
- package/node_modules/openai/internal/uploads.js.map +1 -1
- package/node_modules/openai/internal/uploads.mjs +169 -2
- package/node_modules/openai/internal/uploads.mjs.map +1 -1
- package/node_modules/openai/internal/utils/log.d.mts.map +1 -1
- package/node_modules/openai/internal/utils/log.d.ts.map +1 -1
- package/node_modules/openai/internal/utils/log.js +1 -0
- package/node_modules/openai/internal/utils/log.js.map +1 -1
- package/node_modules/openai/internal/utils/log.mjs +1 -0
- package/node_modules/openai/internal/utils/log.mjs.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +15 -4
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +15 -4
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js +79 -41
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +79 -41
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/node_modules/openai/lib/AssistantStream.d.mts.map +1 -1
- package/node_modules/openai/lib/AssistantStream.d.ts.map +1 -1
- package/node_modules/openai/lib/AssistantStream.js +8 -27
- package/node_modules/openai/lib/AssistantStream.js.map +1 -1
- package/node_modules/openai/lib/AssistantStream.mjs +8 -27
- package/node_modules/openai/lib/AssistantStream.mjs.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.d.mts +26 -2
- package/node_modules/openai/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.d.ts +26 -2
- package/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.js +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.js.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.mjs +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.mjs.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.mts +14 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.mts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.ts +14 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.ts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.js +79 -29
- package/node_modules/openai/lib/ChatCompletionStream.js.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.mjs +78 -29
- package/node_modules/openai/lib/ChatCompletionStream.mjs.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +25 -2
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +25 -2
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.js +78 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +79 -2
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/node_modules/openai/lib/EventEmitter.d.mts.map +1 -1
- package/node_modules/openai/lib/EventEmitter.d.ts.map +1 -1
- package/node_modules/openai/lib/EventEmitter.js +12 -2
- package/node_modules/openai/lib/EventEmitter.js.map +1 -1
- package/node_modules/openai/lib/EventEmitter.mjs +12 -2
- package/node_modules/openai/lib/EventEmitter.mjs.map +1 -1
- package/node_modules/openai/lib/EventStream.d.mts +14 -0
- package/node_modules/openai/lib/EventStream.d.mts.map +1 -1
- package/node_modules/openai/lib/EventStream.d.ts +14 -0
- package/node_modules/openai/lib/EventStream.d.ts.map +1 -1
- package/node_modules/openai/lib/EventStream.js +126 -4
- package/node_modules/openai/lib/EventStream.js.map +1 -1
- package/node_modules/openai/lib/EventStream.mjs +126 -4
- package/node_modules/openai/lib/EventStream.mjs.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.d.mts.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.d.ts.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.js +12 -4
- package/node_modules/openai/lib/ResponsesParser.js.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.mjs +12 -4
- package/node_modules/openai/lib/ResponsesParser.mjs.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.d.mts +38 -21
- package/node_modules/openai/lib/RunnableFunction.d.mts.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.d.ts +38 -21
- package/node_modules/openai/lib/RunnableFunction.d.ts.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.js.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.mjs.map +1 -1
- package/node_modules/openai/lib/parser.d.mts +2 -2
- package/node_modules/openai/lib/parser.d.mts.map +1 -1
- package/node_modules/openai/lib/parser.d.ts +2 -2
- package/node_modules/openai/lib/parser.d.ts.map +1 -1
- package/node_modules/openai/lib/parser.js.map +1 -1
- package/node_modules/openai/lib/parser.mjs.map +1 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts +15 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts.map +1 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts +15 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts.map +1 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.js +403 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.js.map +1 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.mjs +400 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.mjs.map +1 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.d.mts +19 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.d.mts.map +1 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.d.ts +19 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.d.ts.map +1 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.js +104 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.js.map +1 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.mjs +100 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.mjs.map +1 -0
- package/node_modules/openai/lib/responses/ResponseStream.d.mts +6 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.mts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.ts +6 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.ts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.js +26 -90
- package/node_modules/openai/lib/responses/ResponseStream.js.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.mjs +26 -90
- package/node_modules/openai/lib/responses/ResponseStream.mjs.map +1 -1
- package/node_modules/openai/package.json +24 -1
- package/node_modules/openai/providers/bedrock/aws.d.mts +24 -0
- package/node_modules/openai/providers/bedrock/aws.d.mts.map +1 -0
- package/node_modules/openai/providers/bedrock/aws.d.ts +24 -0
- package/node_modules/openai/providers/bedrock/aws.d.ts.map +1 -0
- package/node_modules/openai/providers/bedrock/aws.js +170 -0
- package/node_modules/openai/providers/bedrock/aws.js.map +1 -0
- package/node_modules/openai/providers/bedrock/aws.mjs +166 -0
- package/node_modules/openai/providers/bedrock/aws.mjs.map +1 -0
- package/node_modules/openai/providers/bedrock.d.mts +7 -0
- package/node_modules/openai/providers/bedrock.d.mts.map +1 -0
- package/node_modules/openai/providers/bedrock.d.ts +7 -0
- package/node_modules/openai/providers/bedrock.d.ts.map +1 -0
- package/node_modules/openai/providers/bedrock.js +26 -0
- package/node_modules/openai/providers/bedrock.js.map +1 -0
- package/node_modules/openai/providers/bedrock.mjs +22 -0
- package/node_modules/openai/providers/bedrock.mjs.map +1 -0
- package/node_modules/openai/realtime/internal-base.d.mts +28 -1
- package/node_modules/openai/realtime/internal-base.d.mts.map +1 -1
- package/node_modules/openai/realtime/internal-base.d.ts +28 -1
- package/node_modules/openai/realtime/internal-base.d.ts.map +1 -1
- package/node_modules/openai/realtime/internal-base.js +50 -7
- package/node_modules/openai/realtime/internal-base.js.map +1 -1
- package/node_modules/openai/realtime/internal-base.mjs +49 -7
- package/node_modules/openai/realtime/internal-base.mjs.map +1 -1
- package/node_modules/openai/realtime/websocket.d.mts +4 -7
- package/node_modules/openai/realtime/websocket.d.mts.map +1 -1
- package/node_modules/openai/realtime/websocket.d.ts +4 -7
- package/node_modules/openai/realtime/websocket.d.ts.map +1 -1
- package/node_modules/openai/realtime/websocket.js +4 -8
- package/node_modules/openai/realtime/websocket.js.map +1 -1
- package/node_modules/openai/realtime/websocket.mjs +5 -9
- package/node_modules/openai/realtime/websocket.mjs.map +1 -1
- package/node_modules/openai/realtime/ws.d.mts +4 -7
- package/node_modules/openai/realtime/ws.d.mts.map +1 -1
- package/node_modules/openai/realtime/ws.d.ts +4 -7
- package/node_modules/openai/realtime/ws.d.ts.map +1 -1
- package/node_modules/openai/realtime/ws.js +4 -8
- package/node_modules/openai/realtime/ws.js.map +1 -1
- package/node_modules/openai/realtime/ws.mjs +5 -9
- package/node_modules/openai/realtime/ws.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.d.mts +2 -2
- package/node_modules/openai/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.d.ts +2 -2
- package/node_modules/openai/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +12 -0
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts +12 -0
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.mts +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.ts +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.js +4 -4
- package/node_modules/openai/resources/admin/organization/projects/index.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.d.mts +2 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.d.ts +2 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.js +2 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.mjs +2 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts +58 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts +58 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js +9 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +177 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +177 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts +1 -167
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts +1 -167
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.js +2 -97
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs +1 -95
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/usage.d.mts +517 -88
- package/node_modules/openai/resources/admin/organization/usage.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/usage.d.ts +517 -88
- package/node_modules/openai/resources/admin/organization/usage.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/assistants.d.mts +12 -26
- package/node_modules/openai/resources/beta/assistants.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/assistants.d.ts +12 -26
- package/node_modules/openai/resources/beta/assistants.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/beta.d.mts +6 -1
- package/node_modules/openai/resources/beta/beta.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/beta.d.ts +6 -1
- package/node_modules/openai/resources/beta/beta.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/beta.js +4 -0
- package/node_modules/openai/resources/beta/beta.js.map +1 -1
- package/node_modules/openai/resources/beta/beta.mjs +4 -0
- package/node_modules/openai/resources/beta/beta.mjs.map +1 -1
- package/node_modules/openai/resources/beta/index.d.mts +1 -0
- package/node_modules/openai/resources/beta/index.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/index.d.ts +1 -0
- package/node_modules/openai/resources/beta/index.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/index.js +5 -3
- package/node_modules/openai/resources/beta/index.js.map +1 -1
- package/node_modules/openai/resources/beta/index.mjs +1 -0
- package/node_modules/openai/resources/beta/index.mjs.map +1 -1
- package/node_modules/openai/resources/beta/responses/index.d.mts +6 -0
- package/node_modules/openai/resources/beta/responses/index.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/index.d.ts +6 -0
- package/node_modules/openai/resources/beta/responses/index.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/index.js +11 -0
- package/node_modules/openai/resources/beta/responses/index.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/index.mjs +5 -0
- package/node_modules/openai/resources/beta/responses/index.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.mts +69 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.ts +69 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.js +37 -0
- package/node_modules/openai/resources/beta/responses/input-items.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.mjs +33 -0
- package/node_modules/openai/resources/beta/responses/input-items.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.mts +191 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.ts +191 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.js +34 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.mjs +30 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.mts +71 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.ts +71 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.js +48 -0
- package/node_modules/openai/resources/beta/responses/internal-base.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.mjs +42 -0
- package/node_modules/openai/resources/beta/responses/internal-base.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.d.mts +9986 -0
- package/node_modules/openai/resources/beta/responses/responses.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.d.ts +9986 -0
- package/node_modules/openai/resources/beta/responses/responses.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.js +121 -0
- package/node_modules/openai/resources/beta/responses/responses.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.mjs +116 -0
- package/node_modules/openai/resources/beta/responses/responses.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.mts +106 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.ts +106 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.js +476 -0
- package/node_modules/openai/resources/beta/responses/ws-base.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.mjs +472 -0
- package/node_modules/openai/resources/beta/responses/ws-base.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.d.mts +13 -0
- package/node_modules/openai/resources/beta/responses/ws.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.d.ts +13 -0
- package/node_modules/openai/resources/beta/responses/ws.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.js +31 -0
- package/node_modules/openai/resources/beta/responses/ws.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.mjs +26 -0
- package/node_modules/openai/resources/beta/responses/ws.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses.d.mts +2 -0
- package/node_modules/openai/resources/beta/responses.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses.d.ts +2 -0
- package/node_modules/openai/resources/beta/responses.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses.js +6 -0
- package/node_modules/openai/resources/beta/responses.js.map +1 -0
- package/node_modules/openai/resources/beta/responses.mjs +3 -0
- package/node_modules/openai/resources/beta/responses.mjs.map +1 -0
- package/node_modules/openai/resources/beta/threads/runs/runs.d.mts +6 -13
- package/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.d.ts +6 -13
- package/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.js.map +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.d.mts +170 -20
- package/node_modules/openai/resources/chat/completions/completions.d.mts.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.d.ts +170 -20
- package/node_modules/openai/resources/chat/completions/completions.d.ts.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.js.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.mjs.map +1 -1
- package/node_modules/openai/resources/completions.d.mts +4 -0
- package/node_modules/openai/resources/completions.d.mts.map +1 -1
- package/node_modules/openai/resources/completions.d.ts +4 -0
- package/node_modules/openai/resources/completions.d.ts.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.d.mts +19 -0
- package/node_modules/openai/resources/conversations/conversations.d.mts.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.d.ts +19 -0
- package/node_modules/openai/resources/conversations/conversations.d.ts.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.js.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.mjs.map +1 -1
- package/node_modules/openai/resources/conversations/items.d.mts +45 -1
- package/node_modules/openai/resources/conversations/items.d.mts.map +1 -1
- package/node_modules/openai/resources/conversations/items.d.ts +45 -1
- package/node_modules/openai/resources/conversations/items.d.ts.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.d.mts +66 -143
- package/node_modules/openai/resources/evals/runs/runs.d.mts.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.d.ts +66 -143
- package/node_modules/openai/resources/evals/runs/runs.d.ts.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.js.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.mjs.map +1 -1
- package/node_modules/openai/resources/graders/grader-models.d.mts +6 -13
- package/node_modules/openai/resources/graders/grader-models.d.mts.map +1 -1
- package/node_modules/openai/resources/graders/grader-models.d.ts +6 -13
- package/node_modules/openai/resources/graders/grader-models.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/calls.d.mts +1 -1
- package/node_modules/openai/resources/realtime/calls.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/calls.d.ts +1 -1
- package/node_modules/openai/resources/realtime/calls.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.mts +5 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.ts +5 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.d.mts +9 -1
- package/node_modules/openai/resources/realtime/realtime.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.d.ts +9 -1
- package/node_modules/openai/resources/realtime/realtime.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.js.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.mjs.map +1 -1
- package/node_modules/openai/resources/responses/input-tokens.d.mts +7 -1
- package/node_modules/openai/resources/responses/input-tokens.d.mts.map +1 -1
- package/node_modules/openai/resources/responses/input-tokens.d.ts +7 -1
- package/node_modules/openai/resources/responses/input-tokens.d.ts.map +1 -1
- package/node_modules/openai/resources/responses/responses.d.mts +819 -26
- package/node_modules/openai/resources/responses/responses.d.mts.map +1 -1
- package/node_modules/openai/resources/responses/responses.d.ts +819 -26
- package/node_modules/openai/resources/responses/responses.d.ts.map +1 -1
- package/node_modules/openai/resources/responses/responses.js +1 -1
- package/node_modules/openai/resources/responses/responses.js.map +1 -1
- package/node_modules/openai/resources/responses/responses.mjs +1 -1
- package/node_modules/openai/resources/responses/responses.mjs.map +1 -1
- package/node_modules/openai/resources/shared.d.mts +20 -28
- package/node_modules/openai/resources/shared.d.mts.map +1 -1
- package/node_modules/openai/resources/shared.d.ts +20 -28
- package/node_modules/openai/resources/shared.d.ts.map +1 -1
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parseDef.ts +44 -16
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/branded.ts +2 -2
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/catch.ts +2 -2
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/default.ts +6 -2
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nullable.ts +13 -5
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/optional.ts +14 -6
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +3 -2
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/promise.ts +6 -2
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/readonly.ts +2 -2
- package/node_modules/openai/src/auth/workload-identity-auth.ts +16 -5
- package/node_modules/openai/src/azure.ts +4 -1
- package/node_modules/openai/src/beta/realtime/internal-base.ts +43 -5
- package/node_modules/openai/src/beta/realtime/websocket.ts +10 -7
- package/node_modules/openai/src/beta/realtime/ws.ts +10 -7
- package/node_modules/openai/src/client.ts +93 -23
- package/node_modules/openai/src/core/streaming.ts +36 -8
- package/node_modules/openai/src/core/uploads.ts +6 -1
- package/node_modules/openai/src/helpers/audio.ts +18 -4
- package/node_modules/openai/src/helpers/zod.ts +78 -23
- package/node_modules/openai/src/index.ts +1 -1
- package/node_modules/openai/src/internal/bedrock.ts +153 -0
- package/node_modules/openai/src/internal/headers.ts +7 -3
- package/node_modules/openai/src/internal/provider.ts +60 -0
- package/node_modules/openai/src/internal/uploads.ts +214 -4
- package/node_modules/openai/src/internal/utils/log.ts +1 -0
- package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +124 -50
- package/node_modules/openai/src/lib/AssistantStream.ts +8 -23
- package/node_modules/openai/src/lib/ChatCompletionRunner.ts +47 -7
- package/node_modules/openai/src/lib/ChatCompletionStream.ts +119 -28
- package/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +145 -8
- package/node_modules/openai/src/lib/EventEmitter.ts +11 -2
- package/node_modules/openai/src/lib/EventStream.ts +134 -4
- package/node_modules/openai/src/lib/ResponsesParser.ts +18 -4
- package/node_modules/openai/src/lib/RunnableFunction.ts +60 -31
- package/node_modules/openai/src/lib/parser.ts +4 -0
- package/node_modules/openai/src/lib/responses/ResponseAccumulator.ts +421 -0
- package/node_modules/openai/src/lib/responses/ResponseInputItems.ts +129 -0
- package/node_modules/openai/src/lib/responses/ResponseStream.ts +29 -90
- package/node_modules/openai/src/providers/bedrock/aws.ts +255 -0
- package/node_modules/openai/src/providers/bedrock.ts +33 -0
- package/node_modules/openai/src/realtime/internal-base.ts +90 -7
- package/node_modules/openai/src/realtime/websocket.ts +15 -13
- package/node_modules/openai/src/realtime/ws.ts +15 -13
- package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +169 -1
- package/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +15 -1
- package/node_modules/openai/src/resources/admin/organization/projects/index.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +13 -13
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/api-keys.ts +80 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +284 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +1 -264
- package/node_modules/openai/src/resources/admin/organization/usage.ts +616 -88
- package/node_modules/openai/src/resources/beta/assistants.ts +12 -26
- package/node_modules/openai/src/resources/beta/beta.ts +330 -2
- package/node_modules/openai/src/resources/beta/index.ts +163 -0
- package/node_modules/openai/src/resources/beta/responses/index.ts +169 -0
- package/node_modules/openai/src/resources/beta/responses/input-items.ts +105 -0
- package/node_modules/openai/src/resources/beta/responses/input-tokens.ts +245 -0
- package/node_modules/openai/src/resources/beta/responses/internal-base.ts +117 -0
- package/node_modules/openai/src/resources/beta/responses/responses.ts +12633 -0
- package/node_modules/openai/src/resources/beta/responses/ws-base.ts +615 -0
- package/node_modules/openai/src/resources/beta/responses/ws.ts +38 -0
- package/node_modules/openai/src/resources/beta/responses.ts +3 -0
- package/node_modules/openai/src/resources/beta/threads/runs/runs.ts +6 -13
- package/node_modules/openai/src/resources/chat/completions/completions.ts +237 -23
- package/node_modules/openai/src/resources/completions.ts +5 -0
- package/node_modules/openai/src/resources/conversations/conversations.ts +21 -0
- package/node_modules/openai/src/resources/conversations/items.ts +56 -0
- package/node_modules/openai/src/resources/evals/runs/runs.ts +66 -143
- package/node_modules/openai/src/resources/graders/grader-models.ts +6 -13
- package/node_modules/openai/src/resources/realtime/calls.ts +2 -0
- package/node_modules/openai/src/resources/realtime/client-secrets.ts +7 -0
- package/node_modules/openai/src/resources/realtime/realtime.ts +12 -0
- package/node_modules/openai/src/resources/responses/input-tokens.ts +8 -0
- package/node_modules/openai/src/resources/responses/responses.ts +953 -17
- package/node_modules/openai/src/resources/shared.ts +23 -27
- package/node_modules/openai/src/version.ts +1 -1
- package/node_modules/openai/version.d.mts +1 -1
- package/node_modules/openai/version.d.ts +1 -1
- package/node_modules/openai/version.js +1 -1
- package/node_modules/openai/version.mjs +1 -1
- package/node_modules/qs/CHANGELOG.md +11 -0
- package/node_modules/qs/dist/qs.js +17 -17
- package/node_modules/qs/lib/parse.js +19 -8
- package/node_modules/qs/lib/utils.js +47 -8
- package/node_modules/qs/package.json +6 -5
- package/node_modules/qs/test/parse.js +230 -0
- package/node_modules/qs/test/utils.js +194 -0
- package/node_modules/tar-fs/index.js +39 -10
- package/node_modules/tar-fs/package.json +6 -1
- package/node_modules/tar-fs/test/index.js +111 -0
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/package.json +6 -6
- package/node_modules/fast-copy/CHANGELOG.md +0 -176
- package/node_modules/fast-copy/dist/cjs/copier.d.cts +0 -75
- package/node_modules/fast-copy/dist/cjs/options.d.cts +0 -69
- package/node_modules/fast-copy/dist/cjs/utils.d.cts +0 -13
- package/node_modules/fast-copy/dist/es/copier.d.mts +0 -75
- package/node_modules/fast-copy/dist/es/options.d.mts +0 -69
- package/node_modules/fast-copy/dist/es/utils.d.mts +0 -13
- package/node_modules/fast-copy/dist/umd/copier.d.ts +0 -72
- package/node_modules/fast-copy/dist/umd/options.d.ts +0 -65
- package/node_modules/fast-copy/dist/umd/utils.d.ts +0 -13
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type AllModels = (string & {}) | ChatModel | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max';
|
|
2
|
-
export type ChatModel = 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613';
|
|
2
|
+
export type ChatModel = 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613';
|
|
3
3
|
/**
|
|
4
4
|
* A filter used to compare a specified attribute key to a given value using a
|
|
5
5
|
* defined comparison operation.
|
|
@@ -149,19 +149,12 @@ export interface Reasoning {
|
|
|
149
149
|
*/
|
|
150
150
|
context?: 'auto' | 'current_turn' | 'all_turns' | null;
|
|
151
151
|
/**
|
|
152
|
-
* Constrains effort on reasoning for
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
159
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
160
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
161
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
162
|
-
* support `none`.
|
|
163
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
164
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
152
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
153
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
154
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
155
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
156
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
157
|
+
* model-specific support.
|
|
165
158
|
*/
|
|
166
159
|
effort?: ReasoningEffort | null;
|
|
167
160
|
/**
|
|
@@ -172,6 +165,12 @@ export interface Reasoning {
|
|
|
172
165
|
* `concise`, or `detailed`.
|
|
173
166
|
*/
|
|
174
167
|
generate_summary?: 'auto' | 'concise' | 'detailed' | null;
|
|
168
|
+
/**
|
|
169
|
+
* Controls the reasoning execution mode for the request.
|
|
170
|
+
*
|
|
171
|
+
* When returned on a response, this is the effective execution mode.
|
|
172
|
+
*/
|
|
173
|
+
mode?: (string & {}) | 'standard' | 'pro';
|
|
175
174
|
/**
|
|
176
175
|
* A summary of the reasoning performed by the model. This can be useful for
|
|
177
176
|
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
@@ -183,21 +182,14 @@ export interface Reasoning {
|
|
|
183
182
|
summary?: 'auto' | 'concise' | 'detailed' | null;
|
|
184
183
|
}
|
|
185
184
|
/**
|
|
186
|
-
* Constrains effort on reasoning for
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
193
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
194
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
195
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
196
|
-
* support `none`.
|
|
197
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
198
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
185
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
186
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
187
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
188
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
189
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
190
|
+
* model-specific support.
|
|
199
191
|
*/
|
|
200
|
-
export type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
|
|
192
|
+
export type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
201
193
|
/**
|
|
202
194
|
* JSON object response format. An older method of generating JSON responses. Using
|
|
203
195
|
* `json_schema` is recommended for models that support it. Note that the model
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,QAAQ,GACR,mBAAmB,GACnB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,kCAAkC,GAClC,sBAAsB,GACtB,iCAAiC,GACjC,aAAa,GACb,WAAW,GACX,sBAAsB,GACtB,mBAAmB,CAAC;AAExB,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,cAAc,GACd,cAAc,GACd,yBAAyB,GACzB,yBAAyB,GACzB,qBAAqB,GACrB,SAAS,GACT,oBAAoB,GACpB,qBAAqB,GACrB,aAAa,GACb,wBAAwB,GACxB,SAAS,GACT,oBAAoB,GACpB,eAAe,GACf,cAAc,GACd,qBAAqB,GACrB,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,uBAAuB,GACvB,uBAAuB,GACvB,mBAAmB,GACnB,SAAS,GACT,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,yBAAyB,GACzB,yBAAyB,GACzB,SAAS,GACT,oBAAoB,GACpB,IAAI,GACJ,eAAe,GACf,SAAS,GACT,oBAAoB,GACpB,IAAI,GACJ,eAAe,GACf,YAAY,GACZ,uBAAuB,GACvB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G;IACH,WAAW,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAEjD;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEpC;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GACtB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,SAAS,GACT,QAAQ,GACR,mBAAmB,GACnB,QAAQ,GACR,mBAAmB,GACnB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,kCAAkC,GAClC,sBAAsB,GACtB,iCAAiC,GACjC,aAAa,GACb,WAAW,GACX,sBAAsB,GACtB,mBAAmB,CAAC"}
|
|
@@ -99,15 +99,23 @@ export function parseDef(
|
|
|
99
99
|
|
|
100
100
|
refs.seen.set(def, newItem);
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
try {
|
|
103
|
+
const jsonSchema = selectParser(def, (def as any).typeName, refs, forceResolution);
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
if (jsonSchema) {
|
|
106
|
+
addMeta(def, refs, jsonSchema);
|
|
107
|
+
}
|
|
107
108
|
|
|
108
|
-
|
|
109
|
+
newItem.jsonSchema = jsonSchema;
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
return jsonSchema;
|
|
112
|
+
} finally {
|
|
113
|
+
if (forceResolution && seenItem) {
|
|
114
|
+
// Materializing a definition temporarily moves it to the definition path. Restore the
|
|
115
|
+
// original path so later references to a shared inner type don't inherit wrapper metadata.
|
|
116
|
+
refs.seen.set(def, seenItem);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
const get$ref = (
|
|
@@ -131,7 +139,13 @@ const get$ref = (
|
|
|
131
139
|
// `["#","definitions","contactPerson","properties","person1","properties","name"]`
|
|
132
140
|
// then we'll extract it out to `contactPerson_properties_person1_properties_name`
|
|
133
141
|
case 'extract-to-root':
|
|
134
|
-
const name = item.path
|
|
142
|
+
const name = item.path
|
|
143
|
+
.slice(refs.basePath.length + 1)
|
|
144
|
+
// The first part is either the root schema name or an extracted definition
|
|
145
|
+
// name that is being materialized. Keep it stable so recursive definitions
|
|
146
|
+
// do not generate a new name each time they are resolved.
|
|
147
|
+
.map((part, index) => (index === 0 ? part : encodeDefinitionPathPart(part)))
|
|
148
|
+
.join('_');
|
|
135
149
|
|
|
136
150
|
// we don't need to extract the root schema in this case, as it's already
|
|
137
151
|
// been added to the definitions
|
|
@@ -158,6 +172,20 @@ const get$ref = (
|
|
|
158
172
|
}
|
|
159
173
|
};
|
|
160
174
|
|
|
175
|
+
const encodedDefinitionPathPartPrefix = '_x_';
|
|
176
|
+
|
|
177
|
+
const encodeDefinitionPathPart = (part: string) => {
|
|
178
|
+
if (/^[A-Za-z0-9_-]*$/.test(part) && !part.startsWith(encodedDefinitionPathPartPrefix)) {
|
|
179
|
+
return part;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
let encoded = encodedDefinitionPathPartPrefix;
|
|
183
|
+
for (let i = 0; i < part.length; i++) {
|
|
184
|
+
encoded += part.charCodeAt(i).toString(16).padStart(4, '0');
|
|
185
|
+
}
|
|
186
|
+
return encoded;
|
|
187
|
+
};
|
|
188
|
+
|
|
161
189
|
const getRelativePath = (pathA: string[], pathB: string[]) => {
|
|
162
190
|
let i = 0;
|
|
163
191
|
for (; i < pathA.length && i < pathB.length; i++) {
|
|
@@ -207,17 +235,17 @@ const selectParser = (
|
|
|
207
235
|
case ZodFirstPartyTypeKind.ZodNativeEnum:
|
|
208
236
|
return parseNativeEnumDef(def);
|
|
209
237
|
case ZodFirstPartyTypeKind.ZodNullable:
|
|
210
|
-
return parseNullableDef(def, refs);
|
|
238
|
+
return parseNullableDef(def, refs, forceResolution);
|
|
211
239
|
case ZodFirstPartyTypeKind.ZodOptional:
|
|
212
|
-
return parseOptionalDef(def, refs);
|
|
240
|
+
return parseOptionalDef(def, refs, forceResolution);
|
|
213
241
|
case ZodFirstPartyTypeKind.ZodMap:
|
|
214
242
|
return parseMapDef(def, refs);
|
|
215
243
|
case ZodFirstPartyTypeKind.ZodSet:
|
|
216
244
|
return parseSetDef(def, refs);
|
|
217
245
|
case ZodFirstPartyTypeKind.ZodLazy:
|
|
218
|
-
return parseDef(def.getter()._def, refs);
|
|
246
|
+
return parseDef(def.getter()._def, refs, forceResolution);
|
|
219
247
|
case ZodFirstPartyTypeKind.ZodPromise:
|
|
220
|
-
return parsePromiseDef(def, refs);
|
|
248
|
+
return parsePromiseDef(def, refs, forceResolution);
|
|
221
249
|
case ZodFirstPartyTypeKind.ZodNaN:
|
|
222
250
|
case ZodFirstPartyTypeKind.ZodNever:
|
|
223
251
|
return parseNeverDef();
|
|
@@ -228,15 +256,15 @@ const selectParser = (
|
|
|
228
256
|
case ZodFirstPartyTypeKind.ZodUnknown:
|
|
229
257
|
return parseUnknownDef();
|
|
230
258
|
case ZodFirstPartyTypeKind.ZodDefault:
|
|
231
|
-
return parseDefaultDef(def, refs);
|
|
259
|
+
return parseDefaultDef(def, refs, forceResolution);
|
|
232
260
|
case ZodFirstPartyTypeKind.ZodBranded:
|
|
233
|
-
return parseBrandedDef(def, refs);
|
|
261
|
+
return parseBrandedDef(def, refs, forceResolution);
|
|
234
262
|
case ZodFirstPartyTypeKind.ZodReadonly:
|
|
235
|
-
return parseReadonlyDef(def, refs);
|
|
263
|
+
return parseReadonlyDef(def, refs, forceResolution);
|
|
236
264
|
case ZodFirstPartyTypeKind.ZodCatch:
|
|
237
|
-
return parseCatchDef(def, refs);
|
|
265
|
+
return parseCatchDef(def, refs, forceResolution);
|
|
238
266
|
case ZodFirstPartyTypeKind.ZodPipeline:
|
|
239
|
-
return parsePipelineDef(def, refs);
|
|
267
|
+
return parsePipelineDef(def, refs, forceResolution);
|
|
240
268
|
case ZodFirstPartyTypeKind.ZodFunction:
|
|
241
269
|
case ZodFirstPartyTypeKind.ZodVoid:
|
|
242
270
|
case ZodFirstPartyTypeKind.ZodSymbol:
|
|
@@ -2,6 +2,6 @@ import { ZodBrandedDef } from 'zod/v3';
|
|
|
2
2
|
import { parseDef } from '../parseDef';
|
|
3
3
|
import { Refs } from '../Refs';
|
|
4
4
|
|
|
5
|
-
export function parseBrandedDef(_def: ZodBrandedDef<any>, refs: Refs) {
|
|
6
|
-
return parseDef(_def.type._def, refs);
|
|
5
|
+
export function parseBrandedDef(_def: ZodBrandedDef<any>, refs: Refs, forceResolution: boolean) {
|
|
6
|
+
return parseDef(_def.type._def, refs, forceResolution);
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import { ZodCatchDef } from 'zod/v3';
|
|
|
2
2
|
import { parseDef } from '../parseDef';
|
|
3
3
|
import { Refs } from '../Refs';
|
|
4
4
|
|
|
5
|
-
export const parseCatchDef = (def: ZodCatchDef<any>, refs: Refs) => {
|
|
6
|
-
return parseDef(def.innerType._def, refs);
|
|
5
|
+
export const parseCatchDef = (def: ZodCatchDef<any>, refs: Refs, forceResolution: boolean) => {
|
|
6
|
+
return parseDef(def.innerType._def, refs, forceResolution);
|
|
7
7
|
};
|
|
@@ -2,9 +2,13 @@ import { ZodDefaultDef } from 'zod/v3';
|
|
|
2
2
|
import { JsonSchema7Type, parseDef } from '../parseDef';
|
|
3
3
|
import { Refs } from '../Refs';
|
|
4
4
|
|
|
5
|
-
export function parseDefaultDef(
|
|
5
|
+
export function parseDefaultDef(
|
|
6
|
+
_def: ZodDefaultDef,
|
|
7
|
+
refs: Refs,
|
|
8
|
+
forceResolution: boolean,
|
|
9
|
+
): JsonSchema7Type & { default: any } {
|
|
6
10
|
return {
|
|
7
|
-
...parseDef(_def.innerType._def, refs),
|
|
11
|
+
...parseDef(_def.innerType._def, refs, forceResolution),
|
|
8
12
|
default: _def.defaultValue(),
|
|
9
13
|
};
|
|
10
14
|
}
|
|
@@ -12,7 +12,11 @@ export type JsonSchema7NullableType =
|
|
|
12
12
|
type: [string, 'null'];
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export function parseNullableDef(
|
|
15
|
+
export function parseNullableDef(
|
|
16
|
+
def: ZodNullableDef,
|
|
17
|
+
refs: Refs,
|
|
18
|
+
forceResolution: boolean,
|
|
19
|
+
): JsonSchema7NullableType | undefined {
|
|
16
20
|
if (
|
|
17
21
|
['ZodString', 'ZodNumber', 'ZodBigInt', 'ZodBoolean', 'ZodNull'].includes(def.innerType._def.typeName) &&
|
|
18
22
|
(!def.innerType._def.checks || !def.innerType._def.checks.length)
|
|
@@ -30,10 +34,14 @@ export function parseNullableDef(def: ZodNullableDef, refs: Refs): JsonSchema7Nu
|
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
if (refs.target === 'openApi3') {
|
|
33
|
-
const base = parseDef(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
const base = parseDef(
|
|
38
|
+
def.innerType._def,
|
|
39
|
+
{
|
|
40
|
+
...refs,
|
|
41
|
+
currentPath: [...refs.currentPath],
|
|
42
|
+
},
|
|
43
|
+
forceResolution,
|
|
44
|
+
);
|
|
37
45
|
|
|
38
46
|
if (base && '$ref' in base) return { allOf: [base], nullable: true } as any;
|
|
39
47
|
|
|
@@ -2,18 +2,26 @@ import { ZodOptionalDef } from 'zod/v3';
|
|
|
2
2
|
import { JsonSchema7Type, parseDef } from '../parseDef';
|
|
3
3
|
import { Refs } from '../Refs';
|
|
4
4
|
|
|
5
|
-
export const parseOptionalDef = (
|
|
5
|
+
export const parseOptionalDef = (
|
|
6
|
+
def: ZodOptionalDef,
|
|
7
|
+
refs: Refs,
|
|
8
|
+
forceResolution: boolean,
|
|
9
|
+
): JsonSchema7Type | undefined => {
|
|
6
10
|
if (
|
|
7
11
|
refs.propertyPath &&
|
|
8
12
|
refs.currentPath.slice(0, refs.propertyPath.length).toString() === refs.propertyPath.toString()
|
|
9
13
|
) {
|
|
10
|
-
return parseDef(def.innerType._def, { ...refs, currentPath: refs.currentPath });
|
|
14
|
+
return parseDef(def.innerType._def, { ...refs, currentPath: refs.currentPath }, forceResolution);
|
|
11
15
|
}
|
|
12
16
|
|
|
13
|
-
const innerSchema = parseDef(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
const innerSchema = parseDef(
|
|
18
|
+
def.innerType._def,
|
|
19
|
+
{
|
|
20
|
+
...refs,
|
|
21
|
+
currentPath: [...refs.currentPath, 'anyOf', '1'],
|
|
22
|
+
},
|
|
23
|
+
forceResolution,
|
|
24
|
+
);
|
|
17
25
|
|
|
18
26
|
return innerSchema ?
|
|
19
27
|
{
|
|
@@ -6,11 +6,12 @@ import { JsonSchema7AllOfType } from './intersection';
|
|
|
6
6
|
export const parsePipelineDef = (
|
|
7
7
|
def: ZodPipelineDef<any, any>,
|
|
8
8
|
refs: Refs,
|
|
9
|
+
forceResolution: boolean,
|
|
9
10
|
): JsonSchema7AllOfType | JsonSchema7Type | undefined => {
|
|
10
11
|
if (refs.pipeStrategy === 'input') {
|
|
11
|
-
return parseDef(def.in._def, refs);
|
|
12
|
+
return parseDef(def.in._def, refs, forceResolution);
|
|
12
13
|
} else if (refs.pipeStrategy === 'output') {
|
|
13
|
-
return parseDef(def.out._def, refs);
|
|
14
|
+
return parseDef(def.out._def, refs, forceResolution);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
const a = parseDef(def.in._def, {
|
|
@@ -2,6 +2,10 @@ import { ZodPromiseDef } from 'zod/v3';
|
|
|
2
2
|
import { JsonSchema7Type, parseDef } from '../parseDef';
|
|
3
3
|
import { Refs } from '../Refs';
|
|
4
4
|
|
|
5
|
-
export function parsePromiseDef(
|
|
6
|
-
|
|
5
|
+
export function parsePromiseDef(
|
|
6
|
+
def: ZodPromiseDef,
|
|
7
|
+
refs: Refs,
|
|
8
|
+
forceResolution: boolean,
|
|
9
|
+
): JsonSchema7Type | undefined {
|
|
10
|
+
return parseDef(def.type._def, refs, forceResolution);
|
|
7
11
|
}
|
|
@@ -2,6 +2,6 @@ import { ZodReadonlyDef } from 'zod/v3';
|
|
|
2
2
|
import { parseDef } from '../parseDef';
|
|
3
3
|
import { Refs } from '../Refs';
|
|
4
4
|
|
|
5
|
-
export const parseReadonlyDef = (def: ZodReadonlyDef<any>, refs: Refs) => {
|
|
6
|
-
return parseDef(def.innerType._def, refs);
|
|
5
|
+
export const parseReadonlyDef = (def: ZodReadonlyDef<any>, refs: Refs, forceResolution: boolean) => {
|
|
6
|
+
return parseDef(def.innerType._def, refs, forceResolution);
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WorkloadIdentity, TokenExchangeResponse } from './types';
|
|
2
2
|
import type { Fetch } from '../internal/builtin-types';
|
|
3
3
|
import * as Shims from '../internal/shims';
|
|
4
|
-
import { APIError, OAuthError } from '../core/error';
|
|
4
|
+
import { APIError, OAuthError, OpenAIError } from '../core/error';
|
|
5
5
|
|
|
6
6
|
interface CachedToken {
|
|
7
7
|
token: string;
|
|
@@ -93,16 +93,27 @@ export class WorkloadIdentityAuth {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const tokenResponse =
|
|
97
|
-
|
|
96
|
+
const tokenResponse: unknown = await response.json();
|
|
97
|
+
if (
|
|
98
|
+
typeof tokenResponse !== 'object' ||
|
|
99
|
+
tokenResponse === null ||
|
|
100
|
+
!('access_token' in tokenResponse) ||
|
|
101
|
+
typeof tokenResponse.access_token !== 'string' ||
|
|
102
|
+
tokenResponse.access_token.trim().length === 0
|
|
103
|
+
) {
|
|
104
|
+
throw new OpenAIError("Token exchange response missing 'access_token' field");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const accessToken = tokenResponse.access_token;
|
|
108
|
+
const expiresIn = (tokenResponse as Partial<TokenExchangeResponse>).expires_in ?? 3600;
|
|
98
109
|
const expiresAt = Date.now() + expiresIn * 1000;
|
|
99
110
|
|
|
100
111
|
this.cachedToken = {
|
|
101
|
-
token:
|
|
112
|
+
token: accessToken,
|
|
102
113
|
expiresAt,
|
|
103
114
|
};
|
|
104
115
|
|
|
105
|
-
return
|
|
116
|
+
return accessToken;
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
private isTokenExpired(cachedToken: CachedToken): boolean {
|
|
@@ -8,7 +8,10 @@ import { OpenAI } from './client';
|
|
|
8
8
|
import type { ClientOptions } from './client';
|
|
9
9
|
|
|
10
10
|
/** API Client for interfacing with the Azure OpenAI API. */
|
|
11
|
-
export interface AzureClientOptions extends ClientOptions {
|
|
11
|
+
export interface AzureClientOptions extends Omit<ClientOptions, 'provider'> {
|
|
12
|
+
/** AzureOpenAI does not support third-party provider configuration. */
|
|
13
|
+
provider?: never;
|
|
14
|
+
|
|
12
15
|
/**
|
|
13
16
|
* Defaults to process.env['OPENAI_API_VERSION'].
|
|
14
17
|
*/
|
|
@@ -78,16 +78,54 @@ export function isAzure(client: Pick<OpenAI, 'apiKey' | 'baseURL'>): client is A
|
|
|
78
78
|
return client instanceof AzureOpenAI;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export
|
|
82
|
-
|
|
81
|
+
export type RealtimeConnectionConfig =
|
|
82
|
+
| {
|
|
83
|
+
/**
|
|
84
|
+
* Start a new Realtime session using the given model.
|
|
85
|
+
*/
|
|
86
|
+
model: string;
|
|
87
|
+
callID?: undefined;
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
model?: undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Attach to an in-progress Realtime call over a sideband control connection.
|
|
93
|
+
*/
|
|
94
|
+
callID: string;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export function buildRealtimeURL(
|
|
98
|
+
client: Pick<OpenAI, 'apiKey' | 'baseURL'>,
|
|
99
|
+
connection: string | RealtimeConnectionConfig,
|
|
100
|
+
): URL {
|
|
101
|
+
const config: RealtimeConnectionConfig =
|
|
102
|
+
typeof connection === 'string' ? { model: connection } : connection;
|
|
83
103
|
const baseURL = client.baseURL;
|
|
104
|
+
const azure = isAzure(client);
|
|
105
|
+
const hasModel = !!config.model;
|
|
106
|
+
const hasCallID = !!config.callID;
|
|
107
|
+
|
|
108
|
+
const path = '/realtime';
|
|
84
109
|
const url = new URL(baseURL + (baseURL.endsWith('/') ? path.slice(1) : path));
|
|
110
|
+
|
|
111
|
+
if (hasModel === hasCallID) {
|
|
112
|
+
throw new Error('Pass exactly one of `model` or `callID` when opening a Realtime WebSocket.');
|
|
113
|
+
}
|
|
114
|
+
|
|
85
115
|
url.protocol = 'wss';
|
|
86
|
-
|
|
116
|
+
// Sideband control connections attach to an existing call via `call_id`.
|
|
117
|
+
if (azure) {
|
|
118
|
+
if (hasCallID) {
|
|
119
|
+
throw new Error('Azure `callID` connections require the stable Realtime helpers.');
|
|
120
|
+
}
|
|
87
121
|
url.searchParams.set('api-version', client.apiVersion);
|
|
88
|
-
url.searchParams.set('deployment', model);
|
|
122
|
+
url.searchParams.set('deployment', config.model!);
|
|
89
123
|
} else {
|
|
90
|
-
|
|
124
|
+
if (hasCallID) {
|
|
125
|
+
url.searchParams.set('call_id', config.callID!);
|
|
126
|
+
} else {
|
|
127
|
+
url.searchParams.set('model', config.model!);
|
|
128
|
+
}
|
|
91
129
|
}
|
|
92
130
|
return url;
|
|
93
131
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { AzureOpenAI, OpenAI } from '../../index';
|
|
2
2
|
import { OpenAIError } from '../../error';
|
|
3
3
|
import type { RealtimeClientEvent, RealtimeServerEvent } from '../../resources/beta/realtime/realtime';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
OpenAIRealtimeEmitter,
|
|
6
|
+
buildRealtimeURL,
|
|
7
|
+
isAzure,
|
|
8
|
+
type RealtimeConnectionConfig,
|
|
9
|
+
} from './internal-base';
|
|
5
10
|
import { isRunningInBrowser } from '../../internal/detect-platform';
|
|
6
11
|
|
|
7
12
|
interface MessageEvent {
|
|
@@ -23,8 +28,7 @@ export class OpenAIRealtimeWebSocket extends OpenAIRealtimeEmitter {
|
|
|
23
28
|
socket: _WebSocket;
|
|
24
29
|
|
|
25
30
|
constructor(
|
|
26
|
-
props: {
|
|
27
|
-
model: string;
|
|
31
|
+
props: RealtimeConnectionConfig & {
|
|
28
32
|
dangerouslyAllowBrowser?: boolean;
|
|
29
33
|
/**
|
|
30
34
|
* Callback to mutate the URL, needed for Azure.
|
|
@@ -54,13 +58,12 @@ export class OpenAIRealtimeWebSocket extends OpenAIRealtimeEmitter {
|
|
|
54
58
|
throw new Error(
|
|
55
59
|
[
|
|
56
60
|
'Cannot open Realtime WebSocket with a function-based apiKey.',
|
|
57
|
-
'Use the .create() method so that the key is resolved before connecting
|
|
58
|
-
'await OpenAIRealtimeWebSocket.create(client, { model })',
|
|
61
|
+
'Use the .create() method so that the key is resolved before connecting.',
|
|
59
62
|
].join('\n'),
|
|
60
63
|
);
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
this.url = buildRealtimeURL(client, props
|
|
66
|
+
this.url = buildRealtimeURL(client, props);
|
|
64
67
|
props.onURL?.(this.url);
|
|
65
68
|
|
|
66
69
|
// @ts-ignore
|
|
@@ -107,7 +110,7 @@ export class OpenAIRealtimeWebSocket extends OpenAIRealtimeEmitter {
|
|
|
107
110
|
|
|
108
111
|
static async create(
|
|
109
112
|
client: Pick<OpenAI, 'apiKey' | 'baseURL' | '_callApiKey'>,
|
|
110
|
-
props:
|
|
113
|
+
props: RealtimeConnectionConfig & { dangerouslyAllowBrowser?: boolean },
|
|
111
114
|
): Promise<OpenAIRealtimeWebSocket> {
|
|
112
115
|
return new OpenAIRealtimeWebSocket({ ...props, __resolvedApiKey: await client._callApiKey() }, client);
|
|
113
116
|
}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as WS from 'ws';
|
|
2
2
|
import { AzureOpenAI, OpenAI } from '../../index';
|
|
3
3
|
import type { RealtimeClientEvent, RealtimeServerEvent } from '../../resources/beta/realtime/realtime';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
OpenAIRealtimeEmitter,
|
|
6
|
+
buildRealtimeURL,
|
|
7
|
+
isAzure,
|
|
8
|
+
type RealtimeConnectionConfig,
|
|
9
|
+
} from './internal-base';
|
|
5
10
|
|
|
6
11
|
export class OpenAIRealtimeWS extends OpenAIRealtimeEmitter {
|
|
7
12
|
url: URL;
|
|
8
13
|
socket: WS.WebSocket;
|
|
9
14
|
|
|
10
15
|
constructor(
|
|
11
|
-
props: {
|
|
12
|
-
model: string;
|
|
16
|
+
props: RealtimeConnectionConfig & {
|
|
13
17
|
options?: WS.ClientOptions | undefined;
|
|
14
18
|
/** @internal */ __resolvedApiKey?: boolean;
|
|
15
19
|
},
|
|
@@ -22,12 +26,11 @@ export class OpenAIRealtimeWS extends OpenAIRealtimeEmitter {
|
|
|
22
26
|
throw new Error(
|
|
23
27
|
[
|
|
24
28
|
'Cannot open Realtime WebSocket with a function-based apiKey.',
|
|
25
|
-
'Use the .create() method so that the key is resolved before connecting
|
|
26
|
-
'await OpenAIRealtimeWS.create(client, { model })',
|
|
29
|
+
'Use the .create() method so that the key is resolved before connecting.',
|
|
27
30
|
].join('\n'),
|
|
28
31
|
);
|
|
29
32
|
}
|
|
30
|
-
this.url = buildRealtimeURL(client, props
|
|
33
|
+
this.url = buildRealtimeURL(client, props);
|
|
31
34
|
this.socket = new WS.WebSocket(this.url, {
|
|
32
35
|
...props.options,
|
|
33
36
|
headers: {
|
|
@@ -66,7 +69,7 @@ export class OpenAIRealtimeWS extends OpenAIRealtimeEmitter {
|
|
|
66
69
|
|
|
67
70
|
static async create(
|
|
68
71
|
client: Pick<OpenAI, 'apiKey' | 'baseURL' | '_callApiKey'>,
|
|
69
|
-
props:
|
|
72
|
+
props: RealtimeConnectionConfig & { options?: WS.ClientOptions | undefined },
|
|
70
73
|
): Promise<OpenAIRealtimeWS> {
|
|
71
74
|
return new OpenAIRealtimeWS({ ...props, __resolvedApiKey: await client._callApiKey() }, client);
|
|
72
75
|
}
|