@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
|
@@ -152,7 +152,7 @@ function State (input, options) {
|
|
|
152
152
|
this.json = options['json'] || false
|
|
153
153
|
this.listener = options['listener'] || null
|
|
154
154
|
this.maxDepth = typeof options['maxDepth'] === 'number' ? options['maxDepth'] : 100
|
|
155
|
-
this.
|
|
155
|
+
this.maxTotalMergeKeys = typeof options['maxTotalMergeKeys'] === 'number' ? options['maxTotalMergeKeys'] : 10000
|
|
156
156
|
|
|
157
157
|
this.implicitTypes = this.schema.compiledImplicit
|
|
158
158
|
this.typeMap = this.schema.compiledTypeMap
|
|
@@ -163,6 +163,7 @@ function State (input, options) {
|
|
|
163
163
|
this.lineStart = 0
|
|
164
164
|
this.lineIndent = 0
|
|
165
165
|
this.depth = 0
|
|
166
|
+
this.totalMergeKeys = 0
|
|
166
167
|
|
|
167
168
|
// position of first leading tab in the current line,
|
|
168
169
|
// used to make sure there are no tabs in the indentation
|
|
@@ -380,6 +381,10 @@ function mergeMappings (state, destination, source, overridableKeys) {
|
|
|
380
381
|
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
381
382
|
const key = sourceKeys[index]
|
|
382
383
|
|
|
384
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
385
|
+
throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')')
|
|
386
|
+
}
|
|
387
|
+
|
|
383
388
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
384
389
|
setProperty(destination, key, source[key])
|
|
385
390
|
overridableKeys[key] = true
|
|
@@ -421,17 +426,8 @@ function storeMappingPair (state, _result, overridableKeys, keyTag, keyNode, val
|
|
|
421
426
|
|
|
422
427
|
if (keyTag === 'tag:yaml.org,2002:merge') {
|
|
423
428
|
if (Array.isArray(valueNode)) {
|
|
424
|
-
if (valueNode.length > state.maxMergeSeqLength) {
|
|
425
|
-
throwError(state, 'merge sequence length exceeded maxMergeSeqLength (' + state.maxMergeSeqLength + ')')
|
|
426
|
-
}
|
|
427
|
-
const seen = new Set()
|
|
428
429
|
for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
429
|
-
|
|
430
|
-
// Existing keys are not overridden on merge, so dedupe sources to
|
|
431
|
-
// avoid redundant work on repeated aliases.
|
|
432
|
-
if (seen.has(src)) continue
|
|
433
|
-
seen.add(src)
|
|
434
|
-
mergeMappings(state, _result, src, overridableKeys)
|
|
430
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys)
|
|
435
431
|
}
|
|
436
432
|
} else {
|
|
437
433
|
mergeMappings(state, _result, valueNode, overridableKeys)
|
|
@@ -49,7 +49,7 @@ function resolveYamlInteger (data) {
|
|
|
49
49
|
if (ch !== '0' && ch !== '1') return false
|
|
50
50
|
hasDigits = true
|
|
51
51
|
}
|
|
52
|
-
return hasDigits &&
|
|
52
|
+
return hasDigits && isFinite(parseYamlInteger(data))
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
if (ch === 'x') {
|
|
@@ -60,7 +60,7 @@ function resolveYamlInteger (data) {
|
|
|
60
60
|
if (!isHexCode(data.charCodeAt(index))) return false
|
|
61
61
|
hasDigits = true
|
|
62
62
|
}
|
|
63
|
-
return hasDigits &&
|
|
63
|
+
return hasDigits && isFinite(parseYamlInteger(data))
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
if (ch === 'o') {
|
|
@@ -71,7 +71,7 @@ function resolveYamlInteger (data) {
|
|
|
71
71
|
if (!isOctCode(data.charCodeAt(index))) return false
|
|
72
72
|
hasDigits = true
|
|
73
73
|
}
|
|
74
|
-
return hasDigits &&
|
|
74
|
+
return hasDigits && isFinite(parseYamlInteger(data))
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -86,7 +86,7 @@ function resolveYamlInteger (data) {
|
|
|
86
86
|
|
|
87
87
|
if (!hasDigits) return false
|
|
88
88
|
|
|
89
|
-
return
|
|
89
|
+
return isFinite(parseYamlInteger(data))
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
function parseYamlInteger (data) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js-yaml",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "YAML 1.2 parser and serializer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yaml",
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
"bin/",
|
|
33
33
|
"dist/"
|
|
34
34
|
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"tag": "v4-legacy"
|
|
37
|
+
},
|
|
35
38
|
"bin": {
|
|
36
39
|
"js-yaml": "bin/js-yaml.js"
|
|
37
40
|
},
|
|
@@ -53,8 +56,7 @@
|
|
|
53
56
|
"build": "node support/build-dist.mjs",
|
|
54
57
|
"build:demo": "npm run lint && node support/build_demo.mjs",
|
|
55
58
|
"gh-demo": "npm run build:demo && gh-pages -d demo -f",
|
|
56
|
-
"prepack": "npm test && npm run build
|
|
57
|
-
"postpublish": "npm run gh-demo"
|
|
59
|
+
"prepack": "npm test && npm run build"
|
|
58
60
|
},
|
|
59
61
|
"unpkg": "dist/js-yaml.min.js",
|
|
60
62
|
"jsdelivr": "dist/js-yaml.min.js",
|
|
@@ -62,6 +64,10 @@
|
|
|
62
64
|
"argparse": "^2.0.1"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
67
|
+
"@babel/core": "8.0.1",
|
|
68
|
+
"@babel/preset-env": "8.0.1",
|
|
69
|
+
"@rollup/plugin-commonjs": "29.0.3",
|
|
70
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
65
71
|
"c8": "^11.0.0",
|
|
66
72
|
"codemirror": "^5.65.21",
|
|
67
73
|
"eslint": "^9.39.4",
|
|
@@ -69,7 +75,7 @@
|
|
|
69
75
|
"gh-pages": "^6.3.0",
|
|
70
76
|
"neostandard": "^0.13.0",
|
|
71
77
|
"tinybench": "^6.0.2",
|
|
72
|
-
"vite": "
|
|
78
|
+
"vite": "7.3.6",
|
|
73
79
|
"vite-plugin-node-polyfills": "^0.28.0",
|
|
74
80
|
"vite-plugin-singlefile": "^2.3.3",
|
|
75
81
|
"workerpool": "^10.0.2"
|
|
@@ -438,9 +438,16 @@
|
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
"abi": "148",
|
|
441
|
-
"future":
|
|
441
|
+
"future": false,
|
|
442
442
|
"lts": false,
|
|
443
443
|
"runtime": "electron",
|
|
444
444
|
"target": "43.0.0-alpha.1"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"abi": "149",
|
|
448
|
+
"future": true,
|
|
449
|
+
"lts": false,
|
|
450
|
+
"runtime": "electron",
|
|
451
|
+
"target": "44.0.0-alpha.1"
|
|
445
452
|
}
|
|
446
453
|
]
|
|
@@ -1,5 +1,122 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.48.0 (2026-07-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v6.47.0...v6.48.0](https://github.com/openai/openai-node/compare/v6.47.0...v6.48.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** /organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys" endpoint ([9133b54](https://github.com/openai/openai-node/commit/9133b5490b766bf9105588ca13829b10a3726aca))
|
|
10
|
+
* **api:** manual updates ([34acd23](https://github.com/openai/openai-node/commit/34acd239caf745069cca2b13ba62b0fe0b26acd9))
|
|
11
|
+
* **api:** manual updates ([3188968](https://github.com/openai/openai-node/commit/31889688373788b4b1eae7702e222fb6f34a537f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* normalize header names before appending ([#1941](https://github.com/openai/openai-node/issues/1941)) ([18e8c29](https://github.com/openai/openai-node/commit/18e8c290d422ef1dfb09a4940f2a0b7703691cc1))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
|
|
21
|
+
* refresh ecosystem test dependencies ([#2002](https://github.com/openai/openai-node/issues/2002)) ([8009491](https://github.com/openai/openai-node/commit/8009491ae3509fc5919eb9353f464a1064996a54))
|
|
22
|
+
|
|
23
|
+
## 6.47.0 (2026-07-14)
|
|
24
|
+
|
|
25
|
+
Full Changelog: [v6.46.0...v6.47.0](https://github.com/openai/openai-node/compare/v6.46.0...v6.47.0)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add async event iterators ([#1977](https://github.com/openai/openai-node/issues/1977)) ([2ece8aa](https://github.com/openai/openai-node/commit/2ece8aa848c6e90d68df636cfff1e3fde2075d8f))
|
|
30
|
+
* add fromReadableStream to ResponseStream ([#1987](https://github.com/openai/openai-node/issues/1987)) ([5984f44](https://github.com/openai/openai-node/commit/5984f442e0cdb5151ccf29562362131c98a3615a))
|
|
31
|
+
* **api:** add owner_project_access to APIKeyListParams ([7bfce97](https://github.com/openai/openai-node/commit/7bfce973a114e04471796e375faf0b62229c71c1))
|
|
32
|
+
* pass context to runTools callbacks ([#1973](https://github.com/openai/openai-node/issues/1973)) ([a6f01e5](https://github.com/openai/openai-node/commit/a6f01e53de019e71a3a21f6097c38c9c674005c9))
|
|
33
|
+
* support streaming file uploads ([#1970](https://github.com/openai/openai-node/issues/1970)) ([a86f1fd](https://github.com/openai/openai-node/commit/a86f1fde303df05ce6c5e4130bb07add3de89b7d))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **assistants:** preserve readable stream deltas ([#1994](https://github.com/openai/openai-node/issues/1994)) ([1cdc019](https://github.com/openai/openai-node/commit/1cdc0196b4341ee641ec6839e08744b2771250e4))
|
|
39
|
+
* avoid deep Deno Zod types ([#1980](https://github.com/openai/openai-node/issues/1980)) ([ae17127](https://github.com/openai/openai-node/commit/ae17127eff0160ce1af7bcb2cc456a4275272a14)), closes [#984](https://github.com/openai/openai-node/issues/984)
|
|
40
|
+
* **ci:** bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 ([baa0b2a](https://github.com/openai/openai-node/commit/baa0b2ad9006e879f28abe45999ef0901eabeea9))
|
|
41
|
+
* emit stream finalization errors ([#1972](https://github.com/openai/openai-node/issues/1972)) ([9555b71](https://github.com/openai/openai-node/commit/9555b71ab8300cad057dd7699b75ae80e3967573))
|
|
42
|
+
* handle Azure filter stream chunks ([#1982](https://github.com/openai/openai-node/issues/1982)) ([c1c5c28](https://github.com/openai/openai-node/commit/c1c5c28267ec36f6afef55e1dfe6eabeda22c2ee)), closes [#1015](https://github.com/openai/openai-node/issues/1015)
|
|
43
|
+
* **zod:** support zod v4 mini schemas ([#1985](https://github.com/openai/openai-node/issues/1985)) ([2df10fc](https://github.com/openai/openai-node/commit/2df10fc19add2cf78aff96c5e4dceac271dab33a))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Documentation
|
|
47
|
+
|
|
48
|
+
* clarify strict Zod function schemas ([#1988](https://github.com/openai/openai-node/issues/1988)) ([373b08a](https://github.com/openai/openai-node/commit/373b08ac3b7127392f1607fc8e82001e4776b959))
|
|
49
|
+
|
|
50
|
+
## 6.46.0 (2026-07-09)
|
|
51
|
+
|
|
52
|
+
Full Changelog: [v6.45.0...v6.46.0](https://github.com/openai/openai-node/compare/v6.45.0...v6.46.0)
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* **api:** gpt-5.6-sol updates ([6c397d5](https://github.com/openai/openai-node/commit/6c397d5d281d6061e88b4a0120fab335ec862a89))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* **assistants:** place array delta entries by index instead of appending ([#1963](https://github.com/openai/openai-node/issues/1963)) ([0e18d30](https://github.com/openai/openai-node/commit/0e18d30a31595acf0fd5e03b8e6bbf8bf31d15d1))
|
|
62
|
+
* **runner:** normalize missing tool call IDs ([#1958](https://github.com/openai/openai-node/issues/1958)) ([6371623](https://github.com/openai/openai-node/commit/6371623aadd26ec34a0edecba62a0a10c834b37d))
|
|
63
|
+
* upgrade next to 15.5.16 in examples ([#1967](https://github.com/openai/openai-node/issues/1967)) ([95b54e5](https://github.com/openai/openai-node/commit/95b54e5894910e31d01ef418ef0de31e9d653b08))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Documentation
|
|
67
|
+
|
|
68
|
+
* add Azure Assistants example ([#1975](https://github.com/openai/openai-node/issues/1975)) ([90a72e5](https://github.com/openai/openai-node/commit/90a72e53452fca62e0c1da42c304eba87d8e87e7)), closes [#701](https://github.com/openai/openai-node/issues/701)
|
|
69
|
+
* document assistant stream failures ([#1979](https://github.com/openai/openai-node/issues/1979)) ([d93fbe5](https://github.com/openai/openai-node/commit/d93fbe5bc5a7879ff4a2b81f3840614da6df594e)), closes [#959](https://github.com/openai/openai-node/issues/959)
|
|
70
|
+
* document file search result limits ([#1981](https://github.com/openai/openai-node/issues/1981)) ([e9dc283](https://github.com/openai/openai-node/commit/e9dc283dce5a75c569c1aa418f973da69cf7eaae)), closes [#1004](https://github.com/openai/openai-node/issues/1004)
|
|
71
|
+
|
|
72
|
+
## 6.45.0 (2026-06-24)
|
|
73
|
+
|
|
74
|
+
Full Changelog: [v6.44.0...v6.45.0](https://github.com/openai/openai-node/compare/v6.44.0...v6.45.0)
|
|
75
|
+
|
|
76
|
+
### Features
|
|
77
|
+
|
|
78
|
+
* add afterCompletion hook to runTools ([#1064](https://github.com/openai/openai-node/issues/1064)) ([4976c22](https://github.com/openai/openai-node/commit/4976c22bf608e4d5f70d6386cfe9c428cf8ff2c7))
|
|
79
|
+
* **realtime:** support sideband call_id connections ([#1795](https://github.com/openai/openai-node/issues/1795)) ([4fd59e1](https://github.com/openai/openai-node/commit/4fd59e1be4ad478373cdcb4f185109af29067da8))
|
|
80
|
+
* reject emitted promise on error in EventEmitter ([#1596](https://github.com/openai/openai-node/issues/1596)) ([e0b09da](https://github.com/openai/openai-node/commit/e0b09da782f0d6ce69a383fd3f3d02a0c7608d6d))
|
|
81
|
+
* **responses:** add response input items helper ([#1794](https://github.com/openai/openai-node/issues/1794)) ([7e5a86a](https://github.com/openai/openai-node/commit/7e5a86a6162d76a7248fa983cb16a16c185a097a))
|
|
82
|
+
* **responses:** add response stream accumulator helper ([#1793](https://github.com/openai/openai-node/issues/1793)) ([32e3e39](https://github.com/openai/openai-node/commit/32e3e39e1736659196aadd7d0bb8d6ca90f69168))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
* avoid serializing null optional bodies ([e4ddff6](https://github.com/openai/openai-node/commit/e4ddff6f2085b1c69eaa790e48d1a22d2dd9d7fb))
|
|
88
|
+
* clean up stream abort listeners ([#1884](https://github.com/openai/openai-node/issues/1884)) ([be55b8f](https://github.com/openai/openai-node/commit/be55b8fb352be80d9d30dd263451615f4342d69f))
|
|
89
|
+
* Leading whitespace chunks break partial parser (structured outputs) ([#1213](https://github.com/openai/openai-node/issues/1213)) ([88d806e](https://github.com/openai/openai-node/commit/88d806eb91f2b41ba4cac3ee69eb73656cab1849))
|
|
90
|
+
* **responses:** avoid parsing incomplete structured output ([#1852](https://github.com/openai/openai-node/issues/1852)) ([4c39681](https://github.com/openai/openai-node/commit/4c396817cbc9586654fa7a376d55a29d8793995d))
|
|
91
|
+
* **responses:** restore output_text on streamed final responses ([#1681](https://github.com/openai/openai-node/issues/1681)) ([bbde4d9](https://github.com/openai/openai-node/commit/bbde4d9e3bbceef5e14bcb71b3a7c36388dbab2b))
|
|
92
|
+
* validate workload identity access tokens ([#1885](https://github.com/openai/openai-node/issues/1885)) ([80febe4](https://github.com/openai/openai-node/commit/80febe441c2dc2d110b412be022fe044bbae2cd9))
|
|
93
|
+
* **zod:** fully resolve extracted wrapper definitions ([#1766](https://github.com/openai/openai-node/issues/1766)) ([5d46ed2](https://github.com/openai/openai-node/commit/5d46ed2012f73b18d6594c62b9fb6351bef76d3d))
|
|
94
|
+
* **zod:** sanitize extracted definition refs ([#1903](https://github.com/openai/openai-node/issues/1903)) ([6ef2111](https://github.com/openai/openai-node/commit/6ef21116801bdaa8e9f25686a8bd365a270401bf))
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Chores
|
|
98
|
+
|
|
99
|
+
* **internal:** codegen related update ([81fcf96](https://github.com/openai/openai-node/commit/81fcf96fccca29dbcbf33bcb7578b98e06d7a6b0))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Documentation
|
|
103
|
+
|
|
104
|
+
* add vision example using image URL ([#1571](https://github.com/openai/openai-node/issues/1571)) ([70966c9](https://github.com/openai/openai-node/commit/70966c922d0f65eb4711552cf5acb85c7842c2a9))
|
|
105
|
+
* **azure:** add Responses API example ([#1675](https://github.com/openai/openai-node/issues/1675)) ([46453b0](https://github.com/openai/openai-node/commit/46453b06aa8682e5d37be810296bd2f96fe11096))
|
|
106
|
+
* **azure:** use standard client for v1 chat ([#1692](https://github.com/openai/openai-node/issues/1692)) ([fba57e5](https://github.com/openai/openai-node/commit/fba57e577c484c579fbc12741aba6f7df2875eca))
|
|
107
|
+
* clarify abort-on-function-call example ([#1843](https://github.com/openai/openai-node/issues/1843)) ([f21f248](https://github.com/openai/openai-node/commit/f21f24842827f514262bf3c0b5ba4c634585ce31))
|
|
108
|
+
* clarify assistant stream event names ([#1860](https://github.com/openai/openai-node/issues/1860)) ([95fc6cd](https://github.com/openai/openai-node/commit/95fc6cd2d0790797eb62b62a0da45dd13de62c0e))
|
|
109
|
+
* clarify supported zod schema features ([#1880](https://github.com/openai/openai-node/issues/1880)) ([ea93760](https://github.com/openai/openai-node/commit/ea93760643871960ad28cbb8654432f091902241))
|
|
110
|
+
* fix helper example links ([#1890](https://github.com/openai/openai-node/issues/1890)) ([9c58f39](https://github.com/openai/openai-node/commit/9c58f399bd71201d4ff08d5192ca84608aba082b))
|
|
111
|
+
* fix typos in tool calls stream example ([#1817](https://github.com/openai/openai-node/issues/1817)) ([8915ef0](https://github.com/openai/openai-node/commit/8915ef0d46ab47b03c561d87e4271b79bc569793))
|
|
112
|
+
* **readme:** fix two typos and remove duplicate section ([#1733](https://github.com/openai/openai-node/issues/1733)) ([e2f8051](https://github.com/openai/openai-node/commit/e2f80517c01b25432371f7814c20221b3aed67d4))
|
|
113
|
+
* **runner:** remove "the the" duplicate-word typo in JSDoc ([#1892](https://github.com/openai/openai-node/issues/1892)) ([52f075f](https://github.com/openai/openai-node/commit/52f075ff39c14a6114c74b73e9dfbc230445f681))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Build System
|
|
117
|
+
|
|
118
|
+
* vendor tsc-multi build tool ([#1948](https://github.com/openai/openai-node/issues/1948)) ([7c35bcd](https://github.com/openai/openai-node/commit/7c35bcd186140f47a13f9e60e19e40a1994cbf5e))
|
|
119
|
+
|
|
3
120
|
## 6.44.0 (2026-06-17)
|
|
4
121
|
|
|
5
122
|
Full Changelog: [v6.43.0...v6.44.0](https://github.com/openai/openai-node/compare/v6.43.0...v6.44.0)
|
|
@@ -49,6 +49,18 @@ const response = await client.responses.create({
|
|
|
49
49
|
console.log(response.output_text);
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
### Multi-turn conversations
|
|
53
|
+
|
|
54
|
+
When you manage Responses API conversation history manually, preserve output items in order. Filtering
|
|
55
|
+
`response.output` to messages can drop required reasoning or tool-call items and cause the next request to
|
|
56
|
+
fail.
|
|
57
|
+
|
|
58
|
+
Use the SDK's `toResponseInputItems()` helper to normalize all replayable output items before adding them to
|
|
59
|
+
the next request. For simple continuation, you can pass `previous_response_id` instead.
|
|
60
|
+
|
|
61
|
+
See the [manual conversation state example](examples/responses/manual-conversation-state.ts) and
|
|
62
|
+
[conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state).
|
|
63
|
+
|
|
52
64
|
The previous standard (supported indefinitely) for generating text is the [Chat Completions API](https://platform.openai.com/docs/api-reference/chat). You can use that API to generate text from the model with the code below.
|
|
53
65
|
|
|
54
66
|
```ts
|
|
@@ -69,6 +81,37 @@ const completion = await client.chat.completions.create({
|
|
|
69
81
|
console.log(completion.choices[0].message.content);
|
|
70
82
|
```
|
|
71
83
|
|
|
84
|
+
## Vision
|
|
85
|
+
|
|
86
|
+
Use the Responses API to analyze images and generate text about visual content.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import OpenAI from 'openai';
|
|
90
|
+
|
|
91
|
+
const client = new OpenAI({
|
|
92
|
+
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const response = await client.responses.create({
|
|
96
|
+
model: 'gpt-5.5',
|
|
97
|
+
input: [
|
|
98
|
+
{
|
|
99
|
+
role: 'user',
|
|
100
|
+
content: [
|
|
101
|
+
{ type: 'input_text', text: 'What is in this image?' },
|
|
102
|
+
{
|
|
103
|
+
type: 'input_image',
|
|
104
|
+
image_url:
|
|
105
|
+
'https://api.nga.gov/iiif/a2e6da57-3cd1-4235-b20e-95dcaefed6c8/full/!800,800/0/default.jpg',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
console.log(response.output_text);
|
|
113
|
+
```
|
|
114
|
+
|
|
72
115
|
## Workload Identity Authentication
|
|
73
116
|
|
|
74
117
|
For secure, automated environments like cloud-managed Kubernetes, Azure, and GCP, you can use workload identity authentication with short-lived tokens from cloud identity providers instead of long-lived API keys.
|
|
@@ -164,7 +207,7 @@ const client = new OpenAI({
|
|
|
164
207
|
|
|
165
208
|
## Streaming responses
|
|
166
209
|
|
|
167
|
-
We provide support for streaming responses using Server
|
|
210
|
+
We provide support for streaming responses using Server-Sent Events (SSE).
|
|
168
211
|
|
|
169
212
|
```ts
|
|
170
213
|
import OpenAI from 'openai';
|
|
@@ -189,11 +232,11 @@ Request parameters that correspond to file uploads can be passed in many differe
|
|
|
189
232
|
- `File` (or an object with the same structure)
|
|
190
233
|
- a `fetch` `Response` (or an object with the same structure)
|
|
191
234
|
- an `fs.ReadStream`
|
|
192
|
-
- the return value of our `toFile`
|
|
235
|
+
- the return value of our `toFile` or `toStreamingFile` helpers
|
|
193
236
|
|
|
194
237
|
```ts
|
|
195
238
|
import fs from 'fs';
|
|
196
|
-
import OpenAI, { toFile } from 'openai';
|
|
239
|
+
import OpenAI, { toFile, toStreamingFile } from 'openai';
|
|
197
240
|
|
|
198
241
|
const client = new OpenAI();
|
|
199
242
|
|
|
@@ -218,6 +261,13 @@ await client.files.create({
|
|
|
218
261
|
file: await toFile(new Uint8Array([0, 1, 2]), 'input.jsonl'),
|
|
219
262
|
purpose: 'fine-tune',
|
|
220
263
|
});
|
|
264
|
+
|
|
265
|
+
// `toFile()` creates a web File, so it must buffer stream inputs before sending them.
|
|
266
|
+
// Use `toStreamingFile()` to stream an arbitrary web, Node, or cloud-storage stream directly:
|
|
267
|
+
await client.files.create({
|
|
268
|
+
file: toStreamingFile(myReadableStream, 'input.jsonl', { type: 'application/jsonl' }),
|
|
269
|
+
purpose: 'fine-tune',
|
|
270
|
+
});
|
|
221
271
|
```
|
|
222
272
|
|
|
223
273
|
## Webhook Verification
|
|
@@ -334,106 +384,6 @@ Error codes are as follows:
|
|
|
334
384
|
| >=500 | `InternalServerError` |
|
|
335
385
|
| N/A | `APIConnectionError` |
|
|
336
386
|
|
|
337
|
-
## Request IDs
|
|
338
|
-
|
|
339
|
-
> For more information on debugging requests, see [these docs](https://platform.openai.com/docs/api-reference/debugging-requests)
|
|
340
|
-
|
|
341
|
-
All object responses in the SDK provide a `_request_id` property which is added from the `x-request-id` response header so that you can quickly log failing requests and report them back to OpenAI.
|
|
342
|
-
|
|
343
|
-
```ts
|
|
344
|
-
const completion = await client.chat.completions.create({
|
|
345
|
-
messages: [{ role: 'user', content: 'Say this is a test' }],
|
|
346
|
-
model: 'gpt-5.5',
|
|
347
|
-
});
|
|
348
|
-
console.log(completion._request_id); // req_123
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
You can also access the Request ID using the `.withResponse()` method:
|
|
352
|
-
|
|
353
|
-
```ts
|
|
354
|
-
const { data: stream, request_id } = await openai.chat.completions
|
|
355
|
-
.create({
|
|
356
|
-
model: 'gpt-5.5',
|
|
357
|
-
messages: [{ role: 'user', content: 'Say this is a test' }],
|
|
358
|
-
stream: true,
|
|
359
|
-
})
|
|
360
|
-
.withResponse();
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
## Realtime API
|
|
364
|
-
|
|
365
|
-
The Realtime API enables you to build low-latency, multi-modal conversational experiences. It currently supports text and audio as both input and output, as well as [function calling](https://platform.openai.com/docs/guides/function-calling) through a `WebSocket` connection.
|
|
366
|
-
|
|
367
|
-
```ts
|
|
368
|
-
import { OpenAIRealtimeWebSocket } from 'openai/realtime/websocket';
|
|
369
|
-
|
|
370
|
-
const rt = new OpenAIRealtimeWebSocket({ model: 'gpt-realtime-2' });
|
|
371
|
-
|
|
372
|
-
rt.on('response.output_text.delta', (event) => process.stdout.write(event.delta));
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
For more information see [realtime.md](realtime.md).
|
|
376
|
-
|
|
377
|
-
## Microsoft Azure OpenAI
|
|
378
|
-
|
|
379
|
-
To use this library with [Azure OpenAI](https://learn.microsoft.com/azure/ai-services/openai/overview), use the `AzureOpenAI`
|
|
380
|
-
class instead of the `OpenAI` class.
|
|
381
|
-
|
|
382
|
-
> [!IMPORTANT]
|
|
383
|
-
> The Azure API shape slightly differs from the core API shape which means that the static types for responses / params
|
|
384
|
-
> won't always be correct.
|
|
385
|
-
|
|
386
|
-
```ts
|
|
387
|
-
import { AzureOpenAI } from 'openai';
|
|
388
|
-
import { getBearerTokenProvider, DefaultAzureCredential } from '@azure/identity';
|
|
389
|
-
|
|
390
|
-
const credential = new DefaultAzureCredential();
|
|
391
|
-
const scope = 'https://cognitiveservices.azure.com/.default';
|
|
392
|
-
const azureADTokenProvider = getBearerTokenProvider(credential, scope);
|
|
393
|
-
|
|
394
|
-
const openai = new AzureOpenAI({ azureADTokenProvider });
|
|
395
|
-
|
|
396
|
-
const result = await openai.chat.completions.create({
|
|
397
|
-
model: 'gpt-5.5',
|
|
398
|
-
messages: [{ role: 'user', content: 'Say hello!' }],
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
console.log(result.choices[0]!.message?.content);
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
## Amazon Bedrock
|
|
405
|
-
|
|
406
|
-
To use this library with [Amazon Bedrock's OpenAI-compatible API](https://docs.aws.amazon.com/bedrock/latest/userguide/models-api-compatibility.html), use the `BedrockOpenAI` class instead of the `OpenAI` class.
|
|
407
|
-
|
|
408
|
-
```ts
|
|
409
|
-
import { BedrockOpenAI } from 'openai';
|
|
410
|
-
|
|
411
|
-
// gets the bearer token from AWS_BEARER_TOKEN_BEDROCK and the region from AWS_REGION/AWS_DEFAULT_REGION
|
|
412
|
-
const client = new BedrockOpenAI();
|
|
413
|
-
|
|
414
|
-
const response = await client.responses.create({
|
|
415
|
-
model: 'openai.gpt-5.4',
|
|
416
|
-
input: 'Say hello!',
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
console.log(response.output_text);
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
`BedrockOpenAI` configures AWS bearer auth and the Bedrock Mantle endpoint, then uses the normal SDK resources. AWS controls which endpoints and features are supported; unsupported calls surface the provider's normal HTTP errors through the SDK.
|
|
423
|
-
|
|
424
|
-
Pass `baseURL` or set `AWS_BEDROCK_BASE_URL` to override the derived `https://bedrock-mantle.<region>.api.aws/openai/v1` endpoint. For long-running apps, pass `bedrockTokenProvider` to refresh the Bedrock bearer token before each request.
|
|
425
|
-
|
|
426
|
-
Set `AWS_BEARER_TOKEN_BEDROCK` to an [Amazon Bedrock API key](https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys.html). To refresh tokens yourself, pass a provider instead of `apiKey`:
|
|
427
|
-
|
|
428
|
-
```ts
|
|
429
|
-
const client = new BedrockOpenAI({
|
|
430
|
-
awsRegion: 'us-west-2',
|
|
431
|
-
bedrockTokenProvider: async () => refreshBedrockToken(),
|
|
432
|
-
});
|
|
433
|
-
```
|
|
434
|
-
|
|
435
|
-
For more information on support for Amazon Bedrock, see [bedrock.md](bedrock.md).
|
|
436
|
-
|
|
437
387
|
### Retries
|
|
438
388
|
|
|
439
389
|
Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
|
|
@@ -576,6 +526,46 @@ console.log(result.choices[0]!.message?.content);
|
|
|
576
526
|
|
|
577
527
|
For more information on support for the Azure API, see [azure.md](azure.md).
|
|
578
528
|
|
|
529
|
+
## Amazon Bedrock
|
|
530
|
+
|
|
531
|
+
To use this library with [Amazon Bedrock's OpenAI-compatible API](https://docs.aws.amazon.com/bedrock/latest/userguide/models-api-compatibility.html), configure the standard `OpenAI` client with the Bedrock provider:
|
|
532
|
+
|
|
533
|
+
```ts
|
|
534
|
+
import OpenAI from 'openai';
|
|
535
|
+
import { bedrock } from 'openai/providers/bedrock/aws';
|
|
536
|
+
|
|
537
|
+
const client = new OpenAI({
|
|
538
|
+
provider: bedrock({ region: 'us-west-2' }),
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
const response = await client.responses.create({
|
|
542
|
+
model: 'openai.gpt-5.4',
|
|
543
|
+
input: 'Say hello!',
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
console.log(response.output_text);
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
Use a model that [supports the Responses API](https://docs.aws.amazon.com/bedrock/latest/userguide/models-api-compatibility.html). A model returned by the Models API may support a different Bedrock inference API instead.
|
|
550
|
+
|
|
551
|
+
This uses the regional `https://bedrock-mantle.<region>.api.aws/openai/v1` endpoint. The region can also come from `AWS_REGION` or `AWS_DEFAULT_REGION`, and `AWS_BEDROCK_BASE_URL` can override the endpoint.
|
|
552
|
+
|
|
553
|
+
The AWS entrypoint uses the standard AWS credential chain by default. It also accepts a named profile, static credentials, or a custom credential provider. Install its peer dependencies before importing it:
|
|
554
|
+
|
|
555
|
+
```bash
|
|
556
|
+
npm install @aws-sdk/credential-provider-node @smithy/hash-node @smithy/signature-v4
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
The AWS entrypoint uses normal static imports so bundlers and serverless packagers can trace these dependencies. If one is missing, importing `openai/providers/bedrock/aws` fails immediately with the runtime's normal module-not-found error, for example:
|
|
560
|
+
|
|
561
|
+
```text
|
|
562
|
+
Cannot find module '@aws-sdk/credential-provider-node'
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
For Bedrock API key authentication, import `bedrock` from `openai/providers/bedrock` instead. That entrypoint has no AWS dependencies and works in browser-compatible runtimes when `dangerouslyAllowBrowser` is enabled. SigV4 authentication is supported in Node.js and compatible server runtimes and requires replayable request bodies. The legacy, bearer-only `BedrockOpenAI` class remains available for compatibility.
|
|
566
|
+
|
|
567
|
+
For more information on support for Amazon Bedrock, see [bedrock.md](bedrock.md).
|
|
568
|
+
|
|
579
569
|
## Advanced Usage
|
|
580
570
|
|
|
581
571
|
### Accessing raw Response data (e.g., headers)
|
|
@@ -808,7 +798,7 @@ The following runtimes are supported:
|
|
|
808
798
|
- Vercel Edge Runtime.
|
|
809
799
|
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
|
|
810
800
|
- Nitro v2.6 or greater.
|
|
811
|
-
- Web browsers: disabled by default to avoid exposing your secret API credentials. Enable browser support by explicitly setting `dangerouslyAllowBrowser` to true
|
|
801
|
+
- Web browsers: disabled by default to avoid exposing your secret API credentials. Enable browser support by explicitly setting `dangerouslyAllowBrowser` to `true`.
|
|
812
802
|
<details>
|
|
813
803
|
<summary>More explanation</summary>
|
|
814
804
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDef.d.mts","sourceRoot":"","sources":["../../src/_vendor/zod-to-json-schema/parseDef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAe,0BAAsB;AAChE,OAAO,EAAE,oBAAoB,EAAiB,4BAAwB;AACtE,OAAO,EAAE,qBAAqB,EAAkB,6BAAyB;AACzE,OAAO,EAAE,sBAAsB,EAAmB,8BAA0B;AAG5E,OAAO,EAAE,mBAAmB,EAAgB,2BAAuB;AAGnE,OAAO,EAAE,mBAAmB,EAAgB,2BAAuB;AACnE,OAAO,EAAE,oBAAoB,EAAwB,mCAA+B;AACpF,OAAO,EAAE,sBAAsB,EAAmB,8BAA0B;AAC5E,OAAO,EAAE,kBAAkB,EAAe,0BAAsB;AAChE,OAAO,EAAE,yBAAyB,EAAsB,iCAA6B;AACrF,OAAO,EAAE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