modelmix 2.2.4 → 2.3.2
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/README.md +21 -8
- package/demo/default.env +1 -0
- package/demo/demo.mjs +14 -15
- package/demo/groq.mjs +24 -0
- package/demo/lmstudio.mjs +1 -1
- package/demo/package-lock.json +1 -50
- package/demo/package.json +1 -3
- package/demo/stream.mjs +3 -3
- package/demo/watson.jpg +0 -0
- package/index.js +54 -2
- package/package.json +4 -2
- package/demo/node_modules/.package-lock.json +0 -301
- package/demo/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -859
- package/demo/node_modules/@anthropic-ai/sdk/LICENSE +0 -8
- package/demo/node_modules/@anthropic-ai/sdk/README.md +0 -424
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js +0 -16
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/README.md +0 -46
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.d.ts +0 -101
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts +0 -6
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js +0 -14
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs +0 -10
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/index.d.ts +0 -81
- package/demo/node_modules/@anthropic-ai/sdk/_shims/index.js +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/_shims/index.mjs +0 -7
- package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.d.ts +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js +0 -90
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs +0 -56
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.d.ts +0 -42
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts +0 -37
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js +0 -41
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs +0 -37
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js +0 -78
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs +0 -71
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.d.ts +0 -83
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/core.d.ts +0 -239
- package/demo/node_modules/@anthropic-ai/sdk/core.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/core.js +0 -879
- package/demo/node_modules/@anthropic-ai/sdk/core.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/core.mjs +0 -848
- package/demo/node_modules/@anthropic-ai/sdk/core.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/error.d.ts +0 -53
- package/demo/node_modules/@anthropic-ai/sdk/error.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/error.js +0 -143
- package/demo/node_modules/@anthropic-ai/sdk/error.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/error.mjs +0 -127
- package/demo/node_modules/@anthropic-ai/sdk/error.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/index.d.mts +0 -147
- package/demo/node_modules/@anthropic-ai/sdk/index.d.ts +0 -147
- package/demo/node_modules/@anthropic-ai/sdk/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/index.js +0 -149
- package/demo/node_modules/@anthropic-ai/sdk/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/index.mjs +0 -121
- package/demo/node_modules/@anthropic-ai/sdk/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +0 -94
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +0 -436
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +0 -432
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/package.json +0 -104
- package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -6
- package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resource.js +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/resource.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resource.mjs +0 -7
- package/demo/node_modules/@anthropic-ai/sdk/resource.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +0 -40
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts +0 -462
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js +0 -20
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs +0 -16
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts +0 -19
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js +0 -40
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +0 -184
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -19
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -15
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.js +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +0 -619
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -28
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -23
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts +0 -29
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.js +0 -31
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts +0 -26
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.js +0 -31
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/MultipartBody.ts +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/README.md +0 -46
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-bun.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-node.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types-node.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.d.ts +0 -101
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/bun-runtime.ts +0 -14
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.d.ts +0 -81
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.js +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.mjs +0 -7
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.d.ts +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-runtime.ts +0 -83
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.d.ts +0 -42
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/registry.ts +0 -67
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-runtime.ts +0 -103
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.d.ts +0 -83
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/core.ts +0 -1162
- package/demo/node_modules/@anthropic-ai/sdk/src/error.ts +0 -146
- package/demo/node_modules/@anthropic-ai/sdk/src/index.ts +0 -264
- package/demo/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +0 -535
- package/demo/node_modules/@anthropic-ai/sdk/src/resource.ts +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/index.ts +0 -16
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/messages.ts +0 -531
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/tools.ts +0 -22
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +0 -223
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/index.ts +0 -33
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -729
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/shims/node.ts +0 -50
- package/demo/node_modules/@anthropic-ai/sdk/src/shims/web.ts +0 -50
- package/demo/node_modules/@anthropic-ai/sdk/src/streaming.ts +0 -509
- package/demo/node_modules/@anthropic-ai/sdk/src/tsconfig.json +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/src/uploads.ts +0 -248
- package/demo/node_modules/@anthropic-ai/sdk/src/version.ts +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -41
- package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/streaming.js +0 -431
- package/demo/node_modules/@anthropic-ai/sdk/streaming.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs +0 -424
- package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -75
- package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/uploads.js +0 -165
- package/demo/node_modules/@anthropic-ai/sdk/uploads.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs +0 -152
- package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/version.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/version.js +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/version.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/version.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/version.mjs.map +0 -1
- package/demo/node_modules/@types/node/LICENSE +0 -21
- package/demo/node_modules/@types/node/README.md +0 -15
- package/demo/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/demo/node_modules/@types/node/assert.d.ts +0 -985
- package/demo/node_modules/@types/node/async_hooks.d.ts +0 -522
- package/demo/node_modules/@types/node/buffer.d.ts +0 -2353
- package/demo/node_modules/@types/node/child_process.d.ts +0 -1544
- package/demo/node_modules/@types/node/cluster.d.ts +0 -578
- package/demo/node_modules/@types/node/console.d.ts +0 -452
- package/demo/node_modules/@types/node/constants.d.ts +0 -19
- package/demo/node_modules/@types/node/crypto.d.ts +0 -4457
- package/demo/node_modules/@types/node/dgram.d.ts +0 -596
- package/demo/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
- package/demo/node_modules/@types/node/dns/promises.d.ts +0 -473
- package/demo/node_modules/@types/node/dns.d.ts +0 -853
- package/demo/node_modules/@types/node/dom-events.d.ts +0 -124
- package/demo/node_modules/@types/node/domain.d.ts +0 -170
- package/demo/node_modules/@types/node/events.d.ts +0 -819
- package/demo/node_modules/@types/node/fs/promises.d.ts +0 -1205
- package/demo/node_modules/@types/node/fs.d.ts +0 -4237
- package/demo/node_modules/@types/node/globals.d.ts +0 -377
- package/demo/node_modules/@types/node/globals.global.d.ts +0 -1
- package/demo/node_modules/@types/node/http.d.ts +0 -1803
- package/demo/node_modules/@types/node/http2.d.ts +0 -2392
- package/demo/node_modules/@types/node/https.d.ts +0 -544
- package/demo/node_modules/@types/node/index.d.ts +0 -88
- package/demo/node_modules/@types/node/inspector.d.ts +0 -2738
- package/demo/node_modules/@types/node/module.d.ts +0 -298
- package/demo/node_modules/@types/node/net.d.ts +0 -918
- package/demo/node_modules/@types/node/os.d.ts +0 -473
- package/demo/node_modules/@types/node/package.json +0 -222
- package/demo/node_modules/@types/node/path.d.ts +0 -191
- package/demo/node_modules/@types/node/perf_hooks.d.ts +0 -626
- package/demo/node_modules/@types/node/process.d.ts +0 -1548
- package/demo/node_modules/@types/node/punycode.d.ts +0 -117
- package/demo/node_modules/@types/node/querystring.d.ts +0 -141
- package/demo/node_modules/@types/node/readline/promises.d.ts +0 -143
- package/demo/node_modules/@types/node/readline.d.ts +0 -666
- package/demo/node_modules/@types/node/repl.d.ts +0 -430
- package/demo/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/demo/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/demo/node_modules/@types/node/stream/web.d.ts +0 -352
- package/demo/node_modules/@types/node/stream.d.ts +0 -1731
- package/demo/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/demo/node_modules/@types/node/test.d.ts +0 -1113
- package/demo/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/demo/node_modules/@types/node/timers.d.ts +0 -126
- package/demo/node_modules/@types/node/tls.d.ts +0 -1203
- package/demo/node_modules/@types/node/trace_events.d.ts +0 -171
- package/demo/node_modules/@types/node/tty.d.ts +0 -206
- package/demo/node_modules/@types/node/url.d.ts +0 -954
- package/demo/node_modules/@types/node/util.d.ts +0 -2075
- package/demo/node_modules/@types/node/v8.d.ts +0 -753
- package/demo/node_modules/@types/node/vm.d.ts +0 -667
- package/demo/node_modules/@types/node/wasi.d.ts +0 -160
- package/demo/node_modules/@types/node/worker_threads.d.ts +0 -692
- package/demo/node_modules/@types/node/zlib.d.ts +0 -517
- package/demo/node_modules/@types/node-fetch/LICENSE +0 -21
- package/demo/node_modules/@types/node-fetch/README.md +0 -15
- package/demo/node_modules/@types/node-fetch/externals.d.ts +0 -32
- package/demo/node_modules/@types/node-fetch/index.d.ts +0 -238
- package/demo/node_modules/@types/node-fetch/package.json +0 -83
- package/demo/node_modules/abort-controller/LICENSE +0 -21
- package/demo/node_modules/abort-controller/README.md +0 -98
- package/demo/node_modules/abort-controller/browser.js +0 -13
- package/demo/node_modules/abort-controller/browser.mjs +0 -11
- package/demo/node_modules/abort-controller/package.json +0 -97
- package/demo/node_modules/abort-controller/polyfill.js +0 -21
- package/demo/node_modules/abort-controller/polyfill.mjs +0 -19
- package/demo/node_modules/agentkeepalive/History.md +0 -268
- package/demo/node_modules/agentkeepalive/LICENSE +0 -23
- package/demo/node_modules/agentkeepalive/README.md +0 -256
- package/demo/node_modules/agentkeepalive/browser.js +0 -5
- package/demo/node_modules/agentkeepalive/index.d.ts +0 -65
- package/demo/node_modules/agentkeepalive/index.js +0 -5
- package/demo/node_modules/agentkeepalive/lib/agent.js +0 -402
- package/demo/node_modules/agentkeepalive/lib/constants.js +0 -14
- package/demo/node_modules/agentkeepalive/lib/https_agent.js +0 -51
- package/demo/node_modules/agentkeepalive/package.json +0 -56
- package/demo/node_modules/asynckit/LICENSE +0 -21
- package/demo/node_modules/asynckit/README.md +0 -233
- package/demo/node_modules/asynckit/bench.js +0 -76
- package/demo/node_modules/asynckit/index.js +0 -6
- package/demo/node_modules/asynckit/lib/abort.js +0 -29
- package/demo/node_modules/asynckit/lib/async.js +0 -34
- package/demo/node_modules/asynckit/lib/defer.js +0 -26
- package/demo/node_modules/asynckit/lib/iterate.js +0 -75
- package/demo/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- package/demo/node_modules/asynckit/lib/readable_parallel.js +0 -25
- package/demo/node_modules/asynckit/lib/readable_serial.js +0 -25
- package/demo/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- package/demo/node_modules/asynckit/lib/state.js +0 -37
- package/demo/node_modules/asynckit/lib/streamify.js +0 -141
- package/demo/node_modules/asynckit/lib/terminator.js +0 -29
- package/demo/node_modules/asynckit/package.json +0 -63
- package/demo/node_modules/asynckit/parallel.js +0 -43
- package/demo/node_modules/asynckit/serial.js +0 -17
- package/demo/node_modules/asynckit/serialOrdered.js +0 -75
- package/demo/node_modules/asynckit/stream.js +0 -21
- package/demo/node_modules/combined-stream/License +0 -19
- package/demo/node_modules/combined-stream/Readme.md +0 -138
- package/demo/node_modules/combined-stream/lib/combined_stream.js +0 -208
- package/demo/node_modules/combined-stream/package.json +0 -25
- package/demo/node_modules/combined-stream/yarn.lock +0 -17
- package/demo/node_modules/debug/LICENSE +0 -20
- package/demo/node_modules/debug/README.md +0 -481
- package/demo/node_modules/debug/node_modules/ms/index.js +0 -162
- package/demo/node_modules/debug/node_modules/ms/license.md +0 -21
- package/demo/node_modules/debug/node_modules/ms/package.json +0 -37
- package/demo/node_modules/debug/node_modules/ms/readme.md +0 -60
- package/demo/node_modules/debug/package.json +0 -59
- package/demo/node_modules/debug/src/browser.js +0 -269
- package/demo/node_modules/debug/src/common.js +0 -274
- package/demo/node_modules/debug/src/index.js +0 -10
- package/demo/node_modules/debug/src/node.js +0 -263
- package/demo/node_modules/delayed-stream/License +0 -19
- package/demo/node_modules/delayed-stream/Makefile +0 -7
- package/demo/node_modules/delayed-stream/Readme.md +0 -141
- package/demo/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- package/demo/node_modules/delayed-stream/package.json +0 -27
- package/demo/node_modules/dotenv/CHANGELOG.md +0 -475
- package/demo/node_modules/dotenv/LICENSE +0 -23
- package/demo/node_modules/dotenv/README-es.md +0 -448
- package/demo/node_modules/dotenv/README.md +0 -728
- package/demo/node_modules/dotenv/config.d.ts +0 -1
- package/demo/node_modules/dotenv/config.js +0 -9
- package/demo/node_modules/dotenv/lib/cli-options.js +0 -11
- package/demo/node_modules/dotenv/lib/env-options.js +0 -24
- package/demo/node_modules/dotenv/lib/main.d.ts +0 -153
- package/demo/node_modules/dotenv/lib/main.js +0 -361
- package/demo/node_modules/dotenv/package.json +0 -65
- package/demo/node_modules/event-target-shim/LICENSE +0 -22
- package/demo/node_modules/event-target-shim/README.md +0 -293
- package/demo/node_modules/event-target-shim/index.d.ts +0 -399
- package/demo/node_modules/event-target-shim/package.json +0 -82
- package/demo/node_modules/form-data/License +0 -19
- package/demo/node_modules/form-data/README.md.bak +0 -358
- package/demo/node_modules/form-data/Readme.md +0 -358
- package/demo/node_modules/form-data/index.d.ts +0 -62
- package/demo/node_modules/form-data/lib/browser.js +0 -2
- package/demo/node_modules/form-data/lib/form_data.js +0 -501
- package/demo/node_modules/form-data/lib/populate.js +0 -10
- package/demo/node_modules/form-data/package.json +0 -68
- package/demo/node_modules/form-data-encoder/@type/FileLike.d.ts +0 -23
- package/demo/node_modules/form-data-encoder/@type/FormDataEncoder.d.ts +0 -160
- package/demo/node_modules/form-data-encoder/@type/FormDataLike.d.ts +0 -40
- package/demo/node_modules/form-data-encoder/@type/index.d.ts +0 -5
- package/demo/node_modules/form-data-encoder/@type/util/createBoundary.d.ts +0 -13
- package/demo/node_modules/form-data-encoder/@type/util/escapeName.d.ts +0 -11
- package/demo/node_modules/form-data-encoder/@type/util/isFileLike.d.ts +0 -28
- package/demo/node_modules/form-data-encoder/@type/util/isFormData.d.ts +0 -15
- package/demo/node_modules/form-data-encoder/@type/util/isFunction.d.ts +0 -7
- package/demo/node_modules/form-data-encoder/@type/util/isPlainObject.d.ts +0 -2
- package/demo/node_modules/form-data-encoder/@type/util/normalizeValue.d.ts +0 -11
- package/demo/node_modules/form-data-encoder/lib/cjs/FileLike.js +0 -2
- package/demo/node_modules/form-data-encoder/lib/cjs/FormDataEncoder.js +0 -126
- package/demo/node_modules/form-data-encoder/lib/cjs/FormDataLike.js +0 -2
- package/demo/node_modules/form-data-encoder/lib/cjs/index.js +0 -17
- package/demo/node_modules/form-data-encoder/lib/cjs/package.json +0 -3
- package/demo/node_modules/form-data-encoder/lib/cjs/util/createBoundary.js +0 -12
- package/demo/node_modules/form-data-encoder/lib/cjs/util/escapeName.js +0 -7
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js +0 -16
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isFormData.js +0 -16
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isFunction.js +0 -4
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isPlainObject.js +0 -15
- package/demo/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js +0 -11
- package/demo/node_modules/form-data-encoder/lib/esm/FileLike.js +0 -1
- package/demo/node_modules/form-data-encoder/lib/esm/FormDataEncoder.js +0 -119
- package/demo/node_modules/form-data-encoder/lib/esm/FormDataLike.js +0 -1
- package/demo/node_modules/form-data-encoder/lib/esm/index.js +0 -5
- package/demo/node_modules/form-data-encoder/lib/esm/package.json +0 -3
- package/demo/node_modules/form-data-encoder/lib/esm/util/createBoundary.js +0 -10
- package/demo/node_modules/form-data-encoder/lib/esm/util/escapeName.js +0 -5
- package/demo/node_modules/form-data-encoder/lib/esm/util/isFileLike.js +0 -9
- package/demo/node_modules/form-data-encoder/lib/esm/util/isFormData.js +0 -9
- package/demo/node_modules/form-data-encoder/lib/esm/util/isFunction.js +0 -2
- package/demo/node_modules/form-data-encoder/lib/esm/util/isPlainObject.js +0 -13
- package/demo/node_modules/form-data-encoder/lib/esm/util/normalizeValue.js +0 -9
- package/demo/node_modules/form-data-encoder/license +0 -21
- package/demo/node_modules/form-data-encoder/package.json +0 -63
- package/demo/node_modules/form-data-encoder/readme.md +0 -366
- package/demo/node_modules/formdata-node/@type/Blob.d.ts +0 -66
- package/demo/node_modules/formdata-node/@type/BlobPart.d.ts +0 -2
- package/demo/node_modules/formdata-node/@type/File.d.ts +0 -53
- package/demo/node_modules/formdata-node/@type/FormData.d.ts +0 -105
- package/demo/node_modules/formdata-node/@type/blobHelpers.d.ts +0 -9
- package/demo/node_modules/formdata-node/@type/browser.d.ts +0 -10
- package/demo/node_modules/formdata-node/@type/deprecateConstructorEntries.d.ts +0 -1
- package/demo/node_modules/formdata-node/@type/fileFromPath.d.ts +0 -55
- package/demo/node_modules/formdata-node/@type/index.d.ts +0 -3
- package/demo/node_modules/formdata-node/@type/isBlob.d.ts +0 -2
- package/demo/node_modules/formdata-node/@type/isFile.d.ts +0 -7
- package/demo/node_modules/formdata-node/@type/isFunction.d.ts +0 -1
- package/demo/node_modules/formdata-node/@type/isPlainObject.d.ts +0 -2
- package/demo/node_modules/formdata-node/lib/cjs/Blob.js +0 -122
- package/demo/node_modules/formdata-node/lib/cjs/BlobPart.js +0 -2
- package/demo/node_modules/formdata-node/lib/cjs/File.js +0 -52
- package/demo/node_modules/formdata-node/lib/cjs/FormData.js +0 -148
- package/demo/node_modules/formdata-node/lib/cjs/blobHelpers.js +0 -80
- package/demo/node_modules/formdata-node/lib/cjs/browser.js +0 -13
- package/demo/node_modules/formdata-node/lib/cjs/deprecateConstructorEntries.js +0 -6
- package/demo/node_modules/formdata-node/lib/cjs/fileFromPath.js +0 -97
- package/demo/node_modules/formdata-node/lib/cjs/index.js +0 -15
- package/demo/node_modules/formdata-node/lib/cjs/isBlob.js +0 -6
- package/demo/node_modules/formdata-node/lib/cjs/isFile.js +0 -6
- package/demo/node_modules/formdata-node/lib/cjs/isFunction.js +0 -5
- package/demo/node_modules/formdata-node/lib/cjs/isPlainObject.js +0 -15
- package/demo/node_modules/formdata-node/lib/cjs/package.json +0 -3
- package/demo/node_modules/formdata-node/lib/esm/Blob.js +0 -118
- package/demo/node_modules/formdata-node/lib/esm/BlobPart.js +0 -1
- package/demo/node_modules/formdata-node/lib/esm/File.js +0 -48
- package/demo/node_modules/formdata-node/lib/esm/FormData.js +0 -144
- package/demo/node_modules/formdata-node/lib/esm/blobHelpers.js +0 -75
- package/demo/node_modules/formdata-node/lib/esm/browser.js +0 -10
- package/demo/node_modules/formdata-node/lib/esm/deprecateConstructorEntries.js +0 -3
- package/demo/node_modules/formdata-node/lib/esm/fileFromPath.js +0 -79
- package/demo/node_modules/formdata-node/lib/esm/index.js +0 -3
- package/demo/node_modules/formdata-node/lib/esm/isBlob.js +0 -2
- package/demo/node_modules/formdata-node/lib/esm/isFile.js +0 -2
- package/demo/node_modules/formdata-node/lib/esm/isFunction.js +0 -1
- package/demo/node_modules/formdata-node/lib/esm/isPlainObject.js +0 -13
- package/demo/node_modules/formdata-node/lib/esm/package.json +0 -3
- package/demo/node_modules/formdata-node/lib/node-domexception.d.ts +0 -5
- package/demo/node_modules/formdata-node/license +0 -21
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/LICENSE +0 -22
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/README.md +0 -135
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/es5/package.json +0 -6
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/package.json +0 -101
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/es5/package.json +0 -5
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/package.json +0 -5
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/polyfill.d.ts +0 -62
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts +0 -775
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/tsdoc-metadata.json +0 -11
- package/demo/node_modules/formdata-node/package.json +0 -94
- package/demo/node_modules/formdata-node/readme.md +0 -444
- package/demo/node_modules/humanize-ms/History.md +0 -25
- package/demo/node_modules/humanize-ms/LICENSE +0 -17
- package/demo/node_modules/humanize-ms/README.md +0 -40
- package/demo/node_modules/humanize-ms/index.js +0 -24
- package/demo/node_modules/humanize-ms/package.json +0 -37
- package/demo/node_modules/lemonlog/README.md +0 -133
- package/demo/node_modules/lemonlog/demo/demo.js +0 -31
- package/demo/node_modules/lemonlog/index.js +0 -94
- package/demo/node_modules/lemonlog/package.json +0 -31
- package/demo/node_modules/mime-db/HISTORY.md +0 -507
- package/demo/node_modules/mime-db/LICENSE +0 -23
- package/demo/node_modules/mime-db/README.md +0 -100
- package/demo/node_modules/mime-db/db.json +0 -8519
- package/demo/node_modules/mime-db/index.js +0 -12
- package/demo/node_modules/mime-db/package.json +0 -60
- package/demo/node_modules/mime-types/HISTORY.md +0 -397
- package/demo/node_modules/mime-types/LICENSE +0 -23
- package/demo/node_modules/mime-types/README.md +0 -113
- package/demo/node_modules/mime-types/index.js +0 -188
- package/demo/node_modules/mime-types/package.json +0 -44
- package/demo/node_modules/ms/index.js +0 -162
- package/demo/node_modules/ms/license.md +0 -21
- package/demo/node_modules/ms/package.json +0 -38
- package/demo/node_modules/ms/readme.md +0 -59
- package/demo/node_modules/node-domexception/.history/README_20210527203617.md +0 -2
- package/demo/node_modules/node-domexception/.history/README_20210527212714.md +0 -41
- package/demo/node_modules/node-domexception/.history/README_20210527213345.md +0 -36
- package/demo/node_modules/node-domexception/.history/README_20210527213411.md +0 -36
- package/demo/node_modules/node-domexception/.history/README_20210527213803.md +0 -36
- package/demo/node_modules/node-domexception/.history/README_20210527214323.md +0 -38
- package/demo/node_modules/node-domexception/.history/README_20210527214408.md +0 -38
- package/demo/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
- package/demo/node_modules/node-domexception/.history/index_20210527203947.js +0 -8
- package/demo/node_modules/node-domexception/.history/index_20210527204259.js +0 -9
- package/demo/node_modules/node-domexception/.history/index_20210527204418.js +0 -9
- package/demo/node_modules/node-domexception/.history/index_20210527204756.js +0 -11
- package/demo/node_modules/node-domexception/.history/index_20210527204833.js +0 -11
- package/demo/node_modules/node-domexception/.history/index_20210527211208.js +0 -15
- package/demo/node_modules/node-domexception/.history/index_20210527211248.js +0 -15
- package/demo/node_modules/node-domexception/.history/index_20210527212722.js +0 -23
- package/demo/node_modules/node-domexception/.history/index_20210527212731.js +0 -23
- package/demo/node_modules/node-domexception/.history/index_20210527212746.js +0 -15
- package/demo/node_modules/node-domexception/.history/index_20210527212900.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527213022.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527213822.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527213843.js +0 -17
- package/demo/node_modules/node-domexception/.history/index_20210527213852.js +0 -17
- package/demo/node_modules/node-domexception/.history/index_20210527213910.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527214034.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527214643.js +0 -41
- package/demo/node_modules/node-domexception/.history/index_20210527214654.js +0 -41
- package/demo/node_modules/node-domexception/.history/index_20210527214700.js +0 -16
- package/demo/node_modules/node-domexception/.history/package_20210527203733.json +0 -19
- package/demo/node_modules/node-domexception/.history/package_20210527203825.json +0 -16
- package/demo/node_modules/node-domexception/.history/package_20210527204621.json +0 -19
- package/demo/node_modules/node-domexception/.history/package_20210527204913.json +0 -25
- package/demo/node_modules/node-domexception/.history/package_20210527204925.json +0 -25
- package/demo/node_modules/node-domexception/.history/package_20210527205145.json +0 -29
- package/demo/node_modules/node-domexception/.history/package_20210527205156.json +0 -29
- package/demo/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
- package/demo/node_modules/node-domexception/.history/test_20210527205957.js +0 -3
- package/demo/node_modules/node-domexception/.history/test_20210527210021.js +0 -3
- package/demo/node_modules/node-domexception/LICENSE +0 -21
- package/demo/node_modules/node-domexception/README.md +0 -46
- package/demo/node_modules/node-domexception/index.js +0 -16
- package/demo/node_modules/node-domexception/package.json +0 -29
- package/demo/node_modules/node-fetch/LICENSE.md +0 -22
- package/demo/node_modules/node-fetch/README.md +0 -634
- package/demo/node_modules/node-fetch/browser.js +0 -25
- package/demo/node_modules/node-fetch/lib/index.es.js +0 -1777
- package/demo/node_modules/node-fetch/lib/index.js +0 -1787
- package/demo/node_modules/node-fetch/lib/index.mjs +0 -1775
- package/demo/node_modules/node-fetch/package.json +0 -89
- package/demo/node_modules/openai/CHANGELOG.md +0 -1176
- package/demo/node_modules/openai/LICENSE +0 -201
- package/demo/node_modules/openai/README.md +0 -616
- package/demo/node_modules/openai/_shims/MultipartBody.d.ts +0 -9
- package/demo/node_modules/openai/_shims/MultipartBody.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/MultipartBody.js +0 -16
- package/demo/node_modules/openai/_shims/MultipartBody.js.map +0 -1
- package/demo/node_modules/openai/_shims/MultipartBody.mjs +0 -12
- package/demo/node_modules/openai/_shims/MultipartBody.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/README.md +0 -46
- package/demo/node_modules/openai/_shims/auto/runtime-bun.d.ts +0 -5
- package/demo/node_modules/openai/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime-bun.js +0 -21
- package/demo/node_modules/openai/_shims/auto/runtime-bun.js.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime-bun.mjs +0 -2
- package/demo/node_modules/openai/_shims/auto/runtime-bun.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime-node.d.ts +0 -5
- package/demo/node_modules/openai/_shims/auto/runtime-node.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime-node.js +0 -21
- package/demo/node_modules/openai/_shims/auto/runtime-node.js.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime-node.mjs +0 -2
- package/demo/node_modules/openai/_shims/auto/runtime-node.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime.d.ts +0 -5
- package/demo/node_modules/openai/_shims/auto/runtime.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime.js +0 -21
- package/demo/node_modules/openai/_shims/auto/runtime.js.map +0 -1
- package/demo/node_modules/openai/_shims/auto/runtime.mjs +0 -2
- package/demo/node_modules/openai/_shims/auto/runtime.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/auto/types-node.d.ts +0 -5
- package/demo/node_modules/openai/_shims/auto/types-node.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/auto/types-node.js +0 -21
- package/demo/node_modules/openai/_shims/auto/types-node.js.map +0 -1
- package/demo/node_modules/openai/_shims/auto/types-node.mjs +0 -2
- package/demo/node_modules/openai/_shims/auto/types-node.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/auto/types.d.ts +0 -101
- package/demo/node_modules/openai/_shims/auto/types.js +0 -3
- package/demo/node_modules/openai/_shims/auto/types.mjs +0 -3
- package/demo/node_modules/openai/_shims/bun-runtime.d.ts +0 -6
- package/demo/node_modules/openai/_shims/bun-runtime.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/bun-runtime.js +0 -14
- package/demo/node_modules/openai/_shims/bun-runtime.js.map +0 -1
- package/demo/node_modules/openai/_shims/bun-runtime.mjs +0 -10
- package/demo/node_modules/openai/_shims/bun-runtime.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/index.d.ts +0 -81
- package/demo/node_modules/openai/_shims/index.js +0 -13
- package/demo/node_modules/openai/_shims/index.mjs +0 -7
- package/demo/node_modules/openai/_shims/manual-types.d.ts +0 -12
- package/demo/node_modules/openai/_shims/manual-types.js +0 -3
- package/demo/node_modules/openai/_shims/manual-types.mjs +0 -3
- package/demo/node_modules/openai/_shims/node-runtime.d.ts +0 -3
- package/demo/node_modules/openai/_shims/node-runtime.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/node-runtime.js +0 -90
- package/demo/node_modules/openai/_shims/node-runtime.js.map +0 -1
- package/demo/node_modules/openai/_shims/node-runtime.mjs +0 -56
- package/demo/node_modules/openai/_shims/node-runtime.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/node-types.d.ts +0 -42
- package/demo/node_modules/openai/_shims/node-types.js +0 -3
- package/demo/node_modules/openai/_shims/node-types.mjs +0 -3
- package/demo/node_modules/openai/_shims/registry.d.ts +0 -37
- package/demo/node_modules/openai/_shims/registry.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/registry.js +0 -41
- package/demo/node_modules/openai/_shims/registry.js.map +0 -1
- package/demo/node_modules/openai/_shims/registry.mjs +0 -37
- package/demo/node_modules/openai/_shims/registry.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/web-runtime.d.ts +0 -5
- package/demo/node_modules/openai/_shims/web-runtime.d.ts.map +0 -1
- package/demo/node_modules/openai/_shims/web-runtime.js +0 -78
- package/demo/node_modules/openai/_shims/web-runtime.js.map +0 -1
- package/demo/node_modules/openai/_shims/web-runtime.mjs +0 -71
- package/demo/node_modules/openai/_shims/web-runtime.mjs.map +0 -1
- package/demo/node_modules/openai/_shims/web-types.d.ts +0 -83
- package/demo/node_modules/openai/_shims/web-types.js +0 -3
- package/demo/node_modules/openai/_shims/web-types.mjs +0 -3
- package/demo/node_modules/openai/bin/cli +0 -49
- package/demo/node_modules/openai/core.d.ts +0 -239
- package/demo/node_modules/openai/core.d.ts.map +0 -1
- package/demo/node_modules/openai/core.js +0 -879
- package/demo/node_modules/openai/core.js.map +0 -1
- package/demo/node_modules/openai/core.mjs +0 -848
- package/demo/node_modules/openai/core.mjs.map +0 -1
- package/demo/node_modules/openai/error.d.ts +0 -57
- package/demo/node_modules/openai/error.d.ts.map +0 -1
- package/demo/node_modules/openai/error.js +0 -148
- package/demo/node_modules/openai/error.js.map +0 -1
- package/demo/node_modules/openai/error.mjs +0 -132
- package/demo/node_modules/openai/error.mjs.map +0 -1
- package/demo/node_modules/openai/index.d.mts +0 -267
- package/demo/node_modules/openai/index.d.ts +0 -267
- package/demo/node_modules/openai/index.d.ts.map +0 -1
- package/demo/node_modules/openai/index.js +0 -262
- package/demo/node_modules/openai/index.js.map +0 -1
- package/demo/node_modules/openai/index.mjs +0 -232
- package/demo/node_modules/openai/index.mjs.map +0 -1
- package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.d.ts +0 -74
- package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.js +0 -246
- package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.js.map +0 -1
- package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.mjs +0 -242
- package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.mjs.map +0 -1
- package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +0 -114
- package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.js +0 -519
- package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +0 -1
- package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +0 -515
- package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +0 -1
- package/demo/node_modules/openai/lib/AssistantStream.d.ts +0 -58
- package/demo/node_modules/openai/lib/AssistantStream.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/AssistantStream.js +0 -548
- package/demo/node_modules/openai/lib/AssistantStream.js.map +0 -1
- package/demo/node_modules/openai/lib/AssistantStream.mjs +0 -521
- package/demo/node_modules/openai/lib/AssistantStream.mjs.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.d.ts +0 -2
- package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.js +0 -2177
- package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.js.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.mjs +0 -2172
- package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.mjs.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionRunner.d.ts +0 -19
- package/demo/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionRunner.js +0 -34
- package/demo/node_modules/openai/lib/ChatCompletionRunner.js.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionRunner.mjs +0 -30
- package/demo/node_modules/openai/lib/ChatCompletionRunner.mjs.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionStream.d.ts +0 -149
- package/demo/node_modules/openai/lib/ChatCompletionStream.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionStream.js +0 -312
- package/demo/node_modules/openai/lib/ChatCompletionStream.js.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionStream.mjs +0 -308
- package/demo/node_modules/openai/lib/ChatCompletionStream.mjs.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +0 -22
- package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.js +0 -32
- package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +0 -1
- package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +0 -28
- package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +0 -1
- package/demo/node_modules/openai/lib/RunnableFunction.d.ts +0 -95
- package/demo/node_modules/openai/lib/RunnableFunction.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/RunnableFunction.js +0 -35
- package/demo/node_modules/openai/lib/RunnableFunction.js.map +0 -1
- package/demo/node_modules/openai/lib/RunnableFunction.mjs +0 -29
- package/demo/node_modules/openai/lib/RunnableFunction.mjs.map +0 -1
- package/demo/node_modules/openai/lib/Util.d.ts +0 -5
- package/demo/node_modules/openai/lib/Util.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/Util.js +0 -26
- package/demo/node_modules/openai/lib/Util.js.map +0 -1
- package/demo/node_modules/openai/lib/Util.mjs +0 -22
- package/demo/node_modules/openai/lib/Util.mjs.map +0 -1
- package/demo/node_modules/openai/lib/chatCompletionUtils.d.ts +0 -6
- package/demo/node_modules/openai/lib/chatCompletionUtils.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/chatCompletionUtils.js +0 -20
- package/demo/node_modules/openai/lib/chatCompletionUtils.js.map +0 -1
- package/demo/node_modules/openai/lib/chatCompletionUtils.mjs +0 -13
- package/demo/node_modules/openai/lib/chatCompletionUtils.mjs.map +0 -1
- package/demo/node_modules/openai/lib/jsonschema.d.ts +0 -106
- package/demo/node_modules/openai/lib/jsonschema.d.ts.map +0 -1
- package/demo/node_modules/openai/lib/jsonschema.js +0 -11
- package/demo/node_modules/openai/lib/jsonschema.js.map +0 -1
- package/demo/node_modules/openai/lib/jsonschema.mjs +0 -10
- package/demo/node_modules/openai/lib/jsonschema.mjs.map +0 -1
- package/demo/node_modules/openai/package.json +0 -105
- package/demo/node_modules/openai/pagination.d.ts +0 -37
- package/demo/node_modules/openai/pagination.d.ts.map +0 -1
- package/demo/node_modules/openai/pagination.js +0 -64
- package/demo/node_modules/openai/pagination.js.map +0 -1
- package/demo/node_modules/openai/pagination.mjs +0 -59
- package/demo/node_modules/openai/pagination.mjs.map +0 -1
- package/demo/node_modules/openai/resource.d.ts +0 -6
- package/demo/node_modules/openai/resource.d.ts.map +0 -1
- package/demo/node_modules/openai/resource.js +0 -11
- package/demo/node_modules/openai/resource.js.map +0 -1
- package/demo/node_modules/openai/resource.mjs +0 -7
- package/demo/node_modules/openai/resource.mjs.map +0 -1
- package/demo/node_modules/openai/resources/audio/audio.d.ts +0 -20
- package/demo/node_modules/openai/resources/audio/audio.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/audio/audio.js +0 -46
- package/demo/node_modules/openai/resources/audio/audio.js.map +0 -1
- package/demo/node_modules/openai/resources/audio/audio.mjs +0 -19
- package/demo/node_modules/openai/resources/audio/audio.mjs.map +0 -1
- package/demo/node_modules/openai/resources/audio/index.d.ts +0 -5
- package/demo/node_modules/openai/resources/audio/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/audio/index.js +0 -13
- package/demo/node_modules/openai/resources/audio/index.js.map +0 -1
- package/demo/node_modules/openai/resources/audio/index.mjs +0 -6
- package/demo/node_modules/openai/resources/audio/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/audio/speech.d.ts +0 -42
- package/demo/node_modules/openai/resources/audio/speech.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/audio/speech.js +0 -17
- package/demo/node_modules/openai/resources/audio/speech.js.map +0 -1
- package/demo/node_modules/openai/resources/audio/speech.mjs +0 -13
- package/demo/node_modules/openai/resources/audio/speech.mjs.map +0 -1
- package/demo/node_modules/openai/resources/audio/transcriptions.d.ts +0 -71
- package/demo/node_modules/openai/resources/audio/transcriptions.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/audio/transcriptions.js +0 -18
- package/demo/node_modules/openai/resources/audio/transcriptions.js.map +0 -1
- package/demo/node_modules/openai/resources/audio/transcriptions.mjs +0 -14
- package/demo/node_modules/openai/resources/audio/transcriptions.mjs.map +0 -1
- package/demo/node_modules/openai/resources/audio/translations.d.ts +0 -50
- package/demo/node_modules/openai/resources/audio/translations.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/audio/translations.js +0 -18
- package/demo/node_modules/openai/resources/audio/translations.js.map +0 -1
- package/demo/node_modules/openai/resources/audio/translations.mjs +0 -14
- package/demo/node_modules/openai/resources/audio/translations.mjs.map +0 -1
- package/demo/node_modules/openai/resources/batches.d.ts +0 -189
- package/demo/node_modules/openai/resources/batches.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/batches.js +0 -65
- package/demo/node_modules/openai/resources/batches.js.map +0 -1
- package/demo/node_modules/openai/resources/batches.mjs +0 -37
- package/demo/node_modules/openai/resources/batches.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/assistants.d.ts +0 -1048
- package/demo/node_modules/openai/resources/beta/assistants.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/assistants.js +0 -89
- package/demo/node_modules/openai/resources/beta/assistants.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/assistants.mjs +0 -61
- package/demo/node_modules/openai/resources/beta/assistants.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/beta.d.ts +0 -53
- package/demo/node_modules/openai/resources/beta/beta.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/beta.js +0 -51
- package/demo/node_modules/openai/resources/beta/beta.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/beta.mjs +0 -24
- package/demo/node_modules/openai/resources/beta/beta.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/chat.d.ts +0 -9
- package/demo/node_modules/openai/resources/beta/chat/chat.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/chat.js +0 -40
- package/demo/node_modules/openai/resources/beta/chat/chat.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/chat.mjs +0 -13
- package/demo/node_modules/openai/resources/beta/chat/chat.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/completions.d.ts +0 -37
- package/demo/node_modules/openai/resources/beta/chat/completions.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/completions.js +0 -39
- package/demo/node_modules/openai/resources/beta/chat/completions.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/completions.mjs +0 -30
- package/demo/node_modules/openai/resources/beta/chat/completions.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/index.d.ts +0 -3
- package/demo/node_modules/openai/resources/beta/chat/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/index.js +0 -9
- package/demo/node_modules/openai/resources/beta/chat/index.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/chat/index.mjs +0 -4
- package/demo/node_modules/openai/resources/beta/chat/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/index.d.ts +0 -6
- package/demo/node_modules/openai/resources/beta/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/index.js +0 -17
- package/demo/node_modules/openai/resources/beta/index.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/index.mjs +0 -7
- package/demo/node_modules/openai/resources/beta/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/index.d.ts +0 -4
- package/demo/node_modules/openai/resources/beta/threads/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/index.js +0 -13
- package/demo/node_modules/openai/resources/beta/threads/index.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/index.mjs +0 -5
- package/demo/node_modules/openai/resources/beta/threads/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/messages.d.ts +0 -552
- package/demo/node_modules/openai/resources/beta/threads/messages.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/messages.js +0 -89
- package/demo/node_modules/openai/resources/beta/threads/messages.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/messages.mjs +0 -61
- package/demo/node_modules/openai/resources/beta/threads/messages.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/index.d.ts +0 -3
- package/demo/node_modules/openai/resources/beta/threads/runs/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/index.js +0 -11
- package/demo/node_modules/openai/resources/beta/threads/runs/index.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/index.mjs +0 -4
- package/demo/node_modules/openai/resources/beta/threads/runs/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/runs.d.ts +0 -1194
- package/demo/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/runs.js +0 -190
- package/demo/node_modules/openai/resources/beta/threads/runs/runs.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/runs.mjs +0 -162
- package/demo/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/steps.d.ts +0 -520
- package/demo/node_modules/openai/resources/beta/threads/runs/steps.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/steps.js +0 -60
- package/demo/node_modules/openai/resources/beta/threads/runs/steps.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/runs/steps.mjs +0 -32
- package/demo/node_modules/openai/resources/beta/threads/runs/steps.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/threads.d.ts +0 -1240
- package/demo/node_modules/openai/resources/beta/threads/threads.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/threads.js +0 -108
- package/demo/node_modules/openai/resources/beta/threads/threads.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/threads/threads.mjs +0 -81
- package/demo/node_modules/openai/resources/beta/threads/threads.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.d.ts +0 -142
- package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.js +0 -129
- package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.mjs +0 -125
- package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/files.d.ts +0 -154
- package/demo/node_modules/openai/resources/beta/vector-stores/files.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/files.js +0 -149
- package/demo/node_modules/openai/resources/beta/vector-stores/files.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/files.mjs +0 -121
- package/demo/node_modules/openai/resources/beta/vector-stores/files.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/index.d.ts +0 -4
- package/demo/node_modules/openai/resources/beta/vector-stores/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/index.js +0 -13
- package/demo/node_modules/openai/resources/beta/vector-stores/index.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/index.mjs +0 -5
- package/demo/node_modules/openai/resources/beta/vector-stores/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.d.ts +0 -233
- package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.js +0 -99
- package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.js.map +0 -1
- package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.mjs +0 -71
- package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.mjs.map +0 -1
- package/demo/node_modules/openai/resources/chat/chat.d.ts +0 -42
- package/demo/node_modules/openai/resources/chat/chat.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/chat/chat.js +0 -40
- package/demo/node_modules/openai/resources/chat/chat.js.map +0 -1
- package/demo/node_modules/openai/resources/chat/chat.mjs +0 -13
- package/demo/node_modules/openai/resources/chat/chat.mjs.map +0 -1
- package/demo/node_modules/openai/resources/chat/completions.d.ts +0 -845
- package/demo/node_modules/openai/resources/chat/completions.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/chat/completions.js +0 -14
- package/demo/node_modules/openai/resources/chat/completions.js.map +0 -1
- package/demo/node_modules/openai/resources/chat/completions.mjs +0 -10
- package/demo/node_modules/openai/resources/chat/completions.mjs.map +0 -1
- package/demo/node_modules/openai/resources/chat/index.d.ts +0 -3
- package/demo/node_modules/openai/resources/chat/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/chat/index.js +0 -9
- package/demo/node_modules/openai/resources/chat/index.js.map +0 -1
- package/demo/node_modules/openai/resources/chat/index.mjs +0 -4
- package/demo/node_modules/openai/resources/chat/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/completions.d.ts +0 -272
- package/demo/node_modules/openai/resources/completions.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/completions.js +0 -14
- package/demo/node_modules/openai/resources/completions.js.map +0 -1
- package/demo/node_modules/openai/resources/completions.mjs +0 -10
- package/demo/node_modules/openai/resources/completions.mjs.map +0 -1
- package/demo/node_modules/openai/resources/embeddings.d.ts +0 -103
- package/demo/node_modules/openai/resources/embeddings.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/embeddings.js +0 -17
- package/demo/node_modules/openai/resources/embeddings.js.map +0 -1
- package/demo/node_modules/openai/resources/embeddings.mjs +0 -13
- package/demo/node_modules/openai/resources/embeddings.mjs.map +0 -1
- package/demo/node_modules/openai/resources/files.d.ts +0 -140
- package/demo/node_modules/openai/resources/files.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/files.js +0 -120
- package/demo/node_modules/openai/resources/files.js.map +0 -1
- package/demo/node_modules/openai/resources/files.mjs +0 -92
- package/demo/node_modules/openai/resources/files.mjs.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts +0 -19
- package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.js +0 -42
- package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.js.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.mjs +0 -15
- package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.mjs.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/index.d.ts +0 -3
- package/demo/node_modules/openai/resources/fine-tuning/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/index.js +0 -11
- package/demo/node_modules/openai/resources/fine-tuning/index.js.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/index.mjs +0 -4
- package/demo/node_modules/openai/resources/fine-tuning/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +0 -69
- package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +0 -47
- package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs +0 -19
- package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/index.d.ts +0 -3
- package/demo/node_modules/openai/resources/fine-tuning/jobs/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/index.js +0 -12
- package/demo/node_modules/openai/resources/fine-tuning/jobs/index.js.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/index.mjs +0 -4
- package/demo/node_modules/openai/resources/fine-tuning/jobs/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +0 -362
- package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.js +0 -93
- package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.js.map +0 -1
- package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs +0 -64
- package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs.map +0 -1
- package/demo/node_modules/openai/resources/images.d.ts +0 -174
- package/demo/node_modules/openai/resources/images.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/images.js +0 -30
- package/demo/node_modules/openai/resources/images.js.map +0 -1
- package/demo/node_modules/openai/resources/images.mjs +0 -26
- package/demo/node_modules/openai/resources/images.mjs.map +0 -1
- package/demo/node_modules/openai/resources/index.d.ts +0 -13
- package/demo/node_modules/openai/resources/index.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/index.js +0 -44
- package/demo/node_modules/openai/resources/index.js.map +0 -1
- package/demo/node_modules/openai/resources/index.mjs +0 -14
- package/demo/node_modules/openai/resources/index.mjs.map +0 -1
- package/demo/node_modules/openai/resources/models.d.ts +0 -58
- package/demo/node_modules/openai/resources/models.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/models.js +0 -64
- package/demo/node_modules/openai/resources/models.js.map +0 -1
- package/demo/node_modules/openai/resources/models.mjs +0 -36
- package/demo/node_modules/openai/resources/models.mjs.map +0 -1
- package/demo/node_modules/openai/resources/moderations.d.ts +0 -176
- package/demo/node_modules/openai/resources/moderations.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/moderations.js +0 -17
- package/demo/node_modules/openai/resources/moderations.js.map +0 -1
- package/demo/node_modules/openai/resources/moderations.mjs +0 -13
- package/demo/node_modules/openai/resources/moderations.mjs.map +0 -1
- package/demo/node_modules/openai/resources/shared.d.ts +0 -39
- package/demo/node_modules/openai/resources/shared.d.ts.map +0 -1
- package/demo/node_modules/openai/resources/shared.js +0 -4
- package/demo/node_modules/openai/resources/shared.js.map +0 -1
- package/demo/node_modules/openai/resources/shared.mjs +0 -3
- package/demo/node_modules/openai/resources/shared.mjs.map +0 -1
- package/demo/node_modules/openai/shims/node.d.ts +0 -29
- package/demo/node_modules/openai/shims/node.d.ts.map +0 -1
- package/demo/node_modules/openai/shims/node.js +0 -31
- package/demo/node_modules/openai/shims/node.js.map +0 -1
- package/demo/node_modules/openai/shims/node.mjs +0 -5
- package/demo/node_modules/openai/shims/node.mjs.map +0 -1
- package/demo/node_modules/openai/shims/web.d.ts +0 -26
- package/demo/node_modules/openai/shims/web.d.ts.map +0 -1
- package/demo/node_modules/openai/shims/web.js +0 -31
- package/demo/node_modules/openai/shims/web.js.map +0 -1
- package/demo/node_modules/openai/shims/web.mjs +0 -5
- package/demo/node_modules/openai/shims/web.mjs.map +0 -1
- package/demo/node_modules/openai/src/_shims/MultipartBody.ts +0 -9
- package/demo/node_modules/openai/src/_shims/README.md +0 -46
- package/demo/node_modules/openai/src/_shims/auto/runtime-bun.ts +0 -4
- package/demo/node_modules/openai/src/_shims/auto/runtime-node.ts +0 -4
- package/demo/node_modules/openai/src/_shims/auto/runtime.ts +0 -4
- package/demo/node_modules/openai/src/_shims/auto/types-node.ts +0 -4
- package/demo/node_modules/openai/src/_shims/auto/types.d.ts +0 -101
- package/demo/node_modules/openai/src/_shims/auto/types.js +0 -3
- package/demo/node_modules/openai/src/_shims/auto/types.mjs +0 -3
- package/demo/node_modules/openai/src/_shims/bun-runtime.ts +0 -14
- package/demo/node_modules/openai/src/_shims/index.d.ts +0 -81
- package/demo/node_modules/openai/src/_shims/index.js +0 -13
- package/demo/node_modules/openai/src/_shims/index.mjs +0 -7
- package/demo/node_modules/openai/src/_shims/manual-types.d.ts +0 -12
- package/demo/node_modules/openai/src/_shims/manual-types.js +0 -3
- package/demo/node_modules/openai/src/_shims/manual-types.mjs +0 -3
- package/demo/node_modules/openai/src/_shims/node-runtime.ts +0 -83
- package/demo/node_modules/openai/src/_shims/node-types.d.ts +0 -42
- package/demo/node_modules/openai/src/_shims/node-types.js +0 -3
- package/demo/node_modules/openai/src/_shims/node-types.mjs +0 -3
- package/demo/node_modules/openai/src/_shims/registry.ts +0 -65
- package/demo/node_modules/openai/src/_shims/web-runtime.ts +0 -103
- package/demo/node_modules/openai/src/_shims/web-types.d.ts +0 -83
- package/demo/node_modules/openai/src/_shims/web-types.js +0 -3
- package/demo/node_modules/openai/src/_shims/web-types.mjs +0 -3
- package/demo/node_modules/openai/src/core.ts +0 -1162
- package/demo/node_modules/openai/src/error.ts +0 -158
- package/demo/node_modules/openai/src/index.ts +0 -502
- package/demo/node_modules/openai/src/lib/.keep +0 -4
- package/demo/node_modules/openai/src/lib/AbstractAssistantStreamRunner.ts +0 -340
- package/demo/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +0 -682
- package/demo/node_modules/openai/src/lib/AssistantStream.ts +0 -723
- package/demo/node_modules/openai/src/lib/ChatCompletionRunFunctions.test.ts +0 -2328
- package/demo/node_modules/openai/src/lib/ChatCompletionRunner.ts +0 -68
- package/demo/node_modules/openai/src/lib/ChatCompletionStream.ts +0 -494
- package/demo/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +0 -68
- package/demo/node_modules/openai/src/lib/RunnableFunction.ts +0 -134
- package/demo/node_modules/openai/src/lib/Util.ts +0 -23
- package/demo/node_modules/openai/src/lib/chatCompletionUtils.ts +0 -28
- package/demo/node_modules/openai/src/lib/jsonschema.ts +0 -148
- package/demo/node_modules/openai/src/pagination.ts +0 -98
- package/demo/node_modules/openai/src/resource.ts +0 -11
- package/demo/node_modules/openai/src/resources/audio/audio.ts +0 -23
- package/demo/node_modules/openai/src/resources/audio/index.ts +0 -6
- package/demo/node_modules/openai/src/resources/audio/speech.ts +0 -52
- package/demo/node_modules/openai/src/resources/audio/transcriptions.ts +0 -84
- package/demo/node_modules/openai/src/resources/audio/translations.ts +0 -61
- package/demo/node_modules/openai/src/resources/batches.ts +0 -252
- package/demo/node_modules/openai/src/resources/beta/assistants.ts +0 -1315
- package/demo/node_modules/openai/src/resources/beta/beta.ts +0 -56
- package/demo/node_modules/openai/src/resources/beta/chat/chat.ts +0 -12
- package/demo/node_modules/openai/src/resources/beta/chat/completions.ts +0 -106
- package/demo/node_modules/openai/src/resources/beta/chat/index.ts +0 -4
- package/demo/node_modules/openai/src/resources/beta/index.ts +0 -48
- package/demo/node_modules/openai/src/resources/beta/threads/index.ts +0 -72
- package/demo/node_modules/openai/src/resources/beta/threads/messages.ts +0 -706
- package/demo/node_modules/openai/src/resources/beta/threads/runs/index.ts +0 -44
- package/demo/node_modules/openai/src/resources/beta/threads/runs/runs.ts +0 -1627
- package/demo/node_modules/openai/src/resources/beta/threads/runs/steps.ts +0 -641
- package/demo/node_modules/openai/src/resources/beta/threads/threads.ts +0 -1536
- package/demo/node_modules/openai/src/resources/beta/vector-stores/file-batches.ts +0 -293
- package/demo/node_modules/openai/src/resources/beta/vector-stores/files.ts +0 -284
- package/demo/node_modules/openai/src/resources/beta/vector-stores/index.ts +0 -25
- package/demo/node_modules/openai/src/resources/beta/vector-stores/vector-stores.ts +0 -318
- package/demo/node_modules/openai/src/resources/chat/chat.ts +0 -67
- package/demo/node_modules/openai/src/resources/chat/completions.ts +0 -996
- package/demo/node_modules/openai/src/resources/chat/index.ts +0 -33
- package/demo/node_modules/openai/src/resources/completions.ts +0 -329
- package/demo/node_modules/openai/src/resources/embeddings.ts +0 -125
- package/demo/node_modules/openai/src/resources/files.ts +0 -214
- package/demo/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +0 -22
- package/demo/node_modules/openai/src/resources/fine-tuning/index.ts +0 -16
- package/demo/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +0 -108
- package/demo/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +0 -21
- package/demo/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +0 -458
- package/demo/node_modules/openai/src/resources/images.ts +0 -215
- package/demo/node_modules/openai/src/resources/index.ts +0 -45
- package/demo/node_modules/openai/src/resources/models.ts +0 -76
- package/demo/node_modules/openai/src/resources/moderations.ts +0 -214
- package/demo/node_modules/openai/src/resources/shared.ts +0 -47
- package/demo/node_modules/openai/src/shims/node.ts +0 -50
- package/demo/node_modules/openai/src/shims/web.ts +0 -50
- package/demo/node_modules/openai/src/streaming.ts +0 -508
- package/demo/node_modules/openai/src/tsconfig.json +0 -11
- package/demo/node_modules/openai/src/uploads.ts +0 -248
- package/demo/node_modules/openai/src/version.ts +0 -1
- package/demo/node_modules/openai/streaming.d.ts +0 -41
- package/demo/node_modules/openai/streaming.d.ts.map +0 -1
- package/demo/node_modules/openai/streaming.js +0 -433
- package/demo/node_modules/openai/streaming.js.map +0 -1
- package/demo/node_modules/openai/streaming.mjs +0 -426
- package/demo/node_modules/openai/streaming.mjs.map +0 -1
- package/demo/node_modules/openai/uploads.d.ts +0 -75
- package/demo/node_modules/openai/uploads.d.ts.map +0 -1
- package/demo/node_modules/openai/uploads.js +0 -165
- package/demo/node_modules/openai/uploads.js.map +0 -1
- package/demo/node_modules/openai/uploads.mjs +0 -152
- package/demo/node_modules/openai/uploads.mjs.map +0 -1
- package/demo/node_modules/openai/version.d.ts +0 -2
- package/demo/node_modules/openai/version.d.ts.map +0 -1
- package/demo/node_modules/openai/version.js +0 -5
- package/demo/node_modules/openai/version.js.map +0 -1
- package/demo/node_modules/openai/version.mjs +0 -2
- package/demo/node_modules/openai/version.mjs.map +0 -1
- package/demo/node_modules/tr46/index.js +0 -193
- package/demo/node_modules/tr46/lib/.gitkeep +0 -0
- package/demo/node_modules/tr46/lib/mappingTable.json +0 -1
- package/demo/node_modules/tr46/package.json +0 -31
- package/demo/node_modules/undici-types/README.md +0 -6
- package/demo/node_modules/undici-types/agent.d.ts +0 -31
- package/demo/node_modules/undici-types/api.d.ts +0 -43
- package/demo/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/demo/node_modules/undici-types/cache.d.ts +0 -36
- package/demo/node_modules/undici-types/client.d.ts +0 -97
- package/demo/node_modules/undici-types/connector.d.ts +0 -34
- package/demo/node_modules/undici-types/content-type.d.ts +0 -21
- package/demo/node_modules/undici-types/cookies.d.ts +0 -28
- package/demo/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/demo/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/demo/node_modules/undici-types/errors.d.ts +0 -128
- package/demo/node_modules/undici-types/fetch.d.ts +0 -209
- package/demo/node_modules/undici-types/file.d.ts +0 -39
- package/demo/node_modules/undici-types/filereader.d.ts +0 -54
- package/demo/node_modules/undici-types/formdata.d.ts +0 -108
- package/demo/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/demo/node_modules/undici-types/global-origin.d.ts +0 -7
- package/demo/node_modules/undici-types/handlers.d.ts +0 -9
- package/demo/node_modules/undici-types/header.d.ts +0 -4
- package/demo/node_modules/undici-types/index.d.ts +0 -63
- package/demo/node_modules/undici-types/interceptors.d.ts +0 -5
- package/demo/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/demo/node_modules/undici-types/mock-client.d.ts +0 -25
- package/demo/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/demo/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/demo/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/demo/node_modules/undici-types/package.json +0 -55
- package/demo/node_modules/undici-types/patch.d.ts +0 -71
- package/demo/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/demo/node_modules/undici-types/pool.d.ts +0 -28
- package/demo/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/demo/node_modules/undici-types/readable.d.ts +0 -61
- package/demo/node_modules/undici-types/webidl.d.ts +0 -220
- package/demo/node_modules/undici-types/websocket.d.ts +0 -131
- package/demo/node_modules/web-streams-polyfill/LICENSE +0 -22
- package/demo/node_modules/web-streams-polyfill/README.md +0 -110
- package/demo/node_modules/web-streams-polyfill/es2018/package.json +0 -14
- package/demo/node_modules/web-streams-polyfill/es6/package.json +0 -14
- package/demo/node_modules/web-streams-polyfill/package.json +0 -83
- package/demo/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +0 -13
- package/demo/node_modules/web-streams-polyfill/ponyfill/es6/package.json +0 -13
- package/demo/node_modules/web-streams-polyfill/ponyfill/package.json +0 -13
- package/demo/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/demo/node_modules/webidl-conversions/README.md +0 -53
- package/demo/node_modules/webidl-conversions/lib/index.js +0 -189
- package/demo/node_modules/webidl-conversions/package.json +0 -23
- package/demo/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/demo/node_modules/whatwg-url/README.md +0 -67
- package/demo/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/demo/node_modules/whatwg-url/lib/URL.js +0 -196
- package/demo/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/demo/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/demo/node_modules/whatwg-url/lib/utils.js +0 -20
- package/demo/node_modules/whatwg-url/package.json +0 -32
- package/demo/watson.png +0 -0
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
var _a;
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.AzureOpenAI = exports.fileFromPath = exports.toFile = exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.OpenAIError = exports.OpenAI = void 0;
|
|
29
|
-
const Core = __importStar(require("./core.js"));
|
|
30
|
-
const Errors = __importStar(require("./error.js"));
|
|
31
|
-
const Uploads = __importStar(require("./uploads.js"));
|
|
32
|
-
const Pagination = __importStar(require("./pagination.js"));
|
|
33
|
-
const API = __importStar(require("./resources/index.js"));
|
|
34
|
-
/** API Client for interfacing with the OpenAI API. */
|
|
35
|
-
class OpenAI extends Core.APIClient {
|
|
36
|
-
/**
|
|
37
|
-
* API Client for interfacing with the OpenAI API.
|
|
38
|
-
*
|
|
39
|
-
* @param {string | undefined} [opts.apiKey=process.env['OPENAI_API_KEY'] ?? undefined]
|
|
40
|
-
* @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null]
|
|
41
|
-
* @param {string | null | undefined} [opts.project=process.env['OPENAI_PROJECT_ID'] ?? null]
|
|
42
|
-
* @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL'] ?? https://api.openai.com/v1] - Override the default base URL for the API.
|
|
43
|
-
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
44
|
-
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
45
|
-
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
46
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
47
|
-
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
48
|
-
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
49
|
-
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
50
|
-
*/
|
|
51
|
-
constructor({ baseURL = Core.readEnv('OPENAI_BASE_URL'), apiKey = Core.readEnv('OPENAI_API_KEY'), organization = Core.readEnv('OPENAI_ORG_ID') ?? null, project = Core.readEnv('OPENAI_PROJECT_ID') ?? null, ...opts } = {}) {
|
|
52
|
-
if (apiKey === undefined) {
|
|
53
|
-
throw new Errors.OpenAIError("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");
|
|
54
|
-
}
|
|
55
|
-
const options = {
|
|
56
|
-
apiKey,
|
|
57
|
-
organization,
|
|
58
|
-
project,
|
|
59
|
-
...opts,
|
|
60
|
-
baseURL: baseURL || `https://api.openai.com/v1`,
|
|
61
|
-
};
|
|
62
|
-
if (!options.dangerouslyAllowBrowser && Core.isRunningInBrowser()) {
|
|
63
|
-
throw new Errors.OpenAIError("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");
|
|
64
|
-
}
|
|
65
|
-
super({
|
|
66
|
-
baseURL: options.baseURL,
|
|
67
|
-
timeout: options.timeout ?? 600000 /* 10 minutes */,
|
|
68
|
-
httpAgent: options.httpAgent,
|
|
69
|
-
maxRetries: options.maxRetries,
|
|
70
|
-
fetch: options.fetch,
|
|
71
|
-
});
|
|
72
|
-
this.completions = new API.Completions(this);
|
|
73
|
-
this.chat = new API.Chat(this);
|
|
74
|
-
this.embeddings = new API.Embeddings(this);
|
|
75
|
-
this.files = new API.Files(this);
|
|
76
|
-
this.images = new API.Images(this);
|
|
77
|
-
this.audio = new API.Audio(this);
|
|
78
|
-
this.moderations = new API.Moderations(this);
|
|
79
|
-
this.models = new API.Models(this);
|
|
80
|
-
this.fineTuning = new API.FineTuning(this);
|
|
81
|
-
this.beta = new API.Beta(this);
|
|
82
|
-
this.batches = new API.Batches(this);
|
|
83
|
-
this._options = options;
|
|
84
|
-
this.apiKey = apiKey;
|
|
85
|
-
this.organization = organization;
|
|
86
|
-
this.project = project;
|
|
87
|
-
}
|
|
88
|
-
defaultQuery() {
|
|
89
|
-
return this._options.defaultQuery;
|
|
90
|
-
}
|
|
91
|
-
defaultHeaders(opts) {
|
|
92
|
-
return {
|
|
93
|
-
...super.defaultHeaders(opts),
|
|
94
|
-
'OpenAI-Organization': this.organization,
|
|
95
|
-
'OpenAI-Project': this.project,
|
|
96
|
-
...this._options.defaultHeaders,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
authHeaders(opts) {
|
|
100
|
-
return { Authorization: `Bearer ${this.apiKey}` };
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.OpenAI = OpenAI;
|
|
104
|
-
_a = OpenAI;
|
|
105
|
-
OpenAI.OpenAI = _a;
|
|
106
|
-
OpenAI.OpenAIError = Errors.OpenAIError;
|
|
107
|
-
OpenAI.APIError = Errors.APIError;
|
|
108
|
-
OpenAI.APIConnectionError = Errors.APIConnectionError;
|
|
109
|
-
OpenAI.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
110
|
-
OpenAI.APIUserAbortError = Errors.APIUserAbortError;
|
|
111
|
-
OpenAI.NotFoundError = Errors.NotFoundError;
|
|
112
|
-
OpenAI.ConflictError = Errors.ConflictError;
|
|
113
|
-
OpenAI.RateLimitError = Errors.RateLimitError;
|
|
114
|
-
OpenAI.BadRequestError = Errors.BadRequestError;
|
|
115
|
-
OpenAI.AuthenticationError = Errors.AuthenticationError;
|
|
116
|
-
OpenAI.InternalServerError = Errors.InternalServerError;
|
|
117
|
-
OpenAI.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
118
|
-
OpenAI.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
119
|
-
OpenAI.toFile = Uploads.toFile;
|
|
120
|
-
OpenAI.fileFromPath = Uploads.fileFromPath;
|
|
121
|
-
exports.OpenAIError = Errors.OpenAIError, exports.APIError = Errors.APIError, exports.APIConnectionError = Errors.APIConnectionError, exports.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError, exports.APIUserAbortError = Errors.APIUserAbortError, exports.NotFoundError = Errors.NotFoundError, exports.ConflictError = Errors.ConflictError, exports.RateLimitError = Errors.RateLimitError, exports.BadRequestError = Errors.BadRequestError, exports.AuthenticationError = Errors.AuthenticationError, exports.InternalServerError = Errors.InternalServerError, exports.PermissionDeniedError = Errors.PermissionDeniedError, exports.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
122
|
-
exports.toFile = Uploads.toFile;
|
|
123
|
-
exports.fileFromPath = Uploads.fileFromPath;
|
|
124
|
-
(function (OpenAI) {
|
|
125
|
-
OpenAI.Page = Pagination.Page;
|
|
126
|
-
OpenAI.CursorPage = Pagination.CursorPage;
|
|
127
|
-
OpenAI.Completions = API.Completions;
|
|
128
|
-
OpenAI.Chat = API.Chat;
|
|
129
|
-
OpenAI.Embeddings = API.Embeddings;
|
|
130
|
-
OpenAI.Files = API.Files;
|
|
131
|
-
OpenAI.FileObjectsPage = API.FileObjectsPage;
|
|
132
|
-
OpenAI.Images = API.Images;
|
|
133
|
-
OpenAI.Audio = API.Audio;
|
|
134
|
-
OpenAI.Moderations = API.Moderations;
|
|
135
|
-
OpenAI.Models = API.Models;
|
|
136
|
-
OpenAI.ModelsPage = API.ModelsPage;
|
|
137
|
-
OpenAI.FineTuning = API.FineTuning;
|
|
138
|
-
OpenAI.Beta = API.Beta;
|
|
139
|
-
OpenAI.Batches = API.Batches;
|
|
140
|
-
OpenAI.BatchesPage = API.BatchesPage;
|
|
141
|
-
})(OpenAI = exports.OpenAI || (exports.OpenAI = {}));
|
|
142
|
-
/** API Client for interfacing with the Azure OpenAI API. */
|
|
143
|
-
class AzureOpenAI extends OpenAI {
|
|
144
|
-
/**
|
|
145
|
-
* API Client for interfacing with the Azure OpenAI API.
|
|
146
|
-
*
|
|
147
|
-
* @param {string | undefined} [opts.apiVersion=process.env['OPENAI_API_VERSION'] ?? undefined]
|
|
148
|
-
* @param {string | undefined} [opts.endpoint=process.env['AZURE_OPENAI_ENDPOINT'] ?? undefined] - Your Azure endpoint, including the resource, e.g. `https://example-resource.azure.openai.com/`
|
|
149
|
-
* @param {string | undefined} [opts.apiKey=process.env['AZURE_OPENAI_API_KEY'] ?? undefined]
|
|
150
|
-
* @param {string | undefined} opts.deployment - A model deployment, if given, sets the base client URL to include `/deployments/{deployment}`.
|
|
151
|
-
* @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null]
|
|
152
|
-
* @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL']] - Sets the base URL for the API.
|
|
153
|
-
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
154
|
-
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
155
|
-
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
156
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
157
|
-
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
158
|
-
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
159
|
-
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
160
|
-
*/
|
|
161
|
-
constructor({ baseURL = Core.readEnv('OPENAI_BASE_URL'), apiKey = Core.readEnv('AZURE_OPENAI_API_KEY'), apiVersion = Core.readEnv('OPENAI_API_VERSION'), endpoint, deployment, azureADTokenProvider, dangerouslyAllowBrowser, ...opts } = {}) {
|
|
162
|
-
if (!apiVersion) {
|
|
163
|
-
throw new Errors.OpenAIError("The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).");
|
|
164
|
-
}
|
|
165
|
-
if (typeof azureADTokenProvider === 'function') {
|
|
166
|
-
dangerouslyAllowBrowser = true;
|
|
167
|
-
}
|
|
168
|
-
if (!azureADTokenProvider && !apiKey) {
|
|
169
|
-
throw new Errors.OpenAIError('Missing credentials. Please pass one of `apiKey` and `azureADTokenProvider`, or set the `AZURE_OPENAI_API_KEY` environment variable.');
|
|
170
|
-
}
|
|
171
|
-
if (azureADTokenProvider && apiKey) {
|
|
172
|
-
throw new Errors.OpenAIError('The `apiKey` and `azureADTokenProvider` arguments are mutually exclusive; only one can be passed at a time.');
|
|
173
|
-
}
|
|
174
|
-
// define a sentinel value to avoid any typing issues
|
|
175
|
-
apiKey ?? (apiKey = API_KEY_SENTINEL);
|
|
176
|
-
opts.defaultQuery = { ...opts.defaultQuery, 'api-version': apiVersion };
|
|
177
|
-
if (!baseURL) {
|
|
178
|
-
if (!endpoint) {
|
|
179
|
-
endpoint = process.env['AZURE_OPENAI_ENDPOINT'];
|
|
180
|
-
}
|
|
181
|
-
if (!endpoint) {
|
|
182
|
-
throw new Errors.OpenAIError('Must provide one of the `baseURL` or `endpoint` arguments, or the `AZURE_OPENAI_ENDPOINT` environment variable');
|
|
183
|
-
}
|
|
184
|
-
baseURL = `${endpoint}/openai`;
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
if (endpoint) {
|
|
188
|
-
throw new Errors.OpenAIError('baseURL and endpoint are mutually exclusive');
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
super({
|
|
192
|
-
apiKey,
|
|
193
|
-
baseURL,
|
|
194
|
-
...opts,
|
|
195
|
-
...(dangerouslyAllowBrowser !== undefined ? { dangerouslyAllowBrowser } : {}),
|
|
196
|
-
});
|
|
197
|
-
this.apiVersion = '';
|
|
198
|
-
this._azureADTokenProvider = azureADTokenProvider;
|
|
199
|
-
this.apiVersion = apiVersion;
|
|
200
|
-
this._deployment = deployment;
|
|
201
|
-
}
|
|
202
|
-
buildRequest(options) {
|
|
203
|
-
if (_deployments_endpoints.has(options.path) && options.method === 'post' && options.body !== undefined) {
|
|
204
|
-
if (!Core.isObj(options.body)) {
|
|
205
|
-
throw new Error('Expected request body to be an object');
|
|
206
|
-
}
|
|
207
|
-
const model = this._deployment || options.body['model'];
|
|
208
|
-
delete options.body['model'];
|
|
209
|
-
if (model !== undefined && !this.baseURL.includes('/deployments')) {
|
|
210
|
-
options.path = `/deployments/${model}${options.path}`;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return super.buildRequest(options);
|
|
214
|
-
}
|
|
215
|
-
async _getAzureADToken() {
|
|
216
|
-
if (typeof this._azureADTokenProvider === 'function') {
|
|
217
|
-
const token = await this._azureADTokenProvider();
|
|
218
|
-
if (!token || typeof token !== 'string') {
|
|
219
|
-
throw new Errors.OpenAIError(`Expected 'azureADTokenProvider' argument to return a string but it returned ${token}`);
|
|
220
|
-
}
|
|
221
|
-
return token;
|
|
222
|
-
}
|
|
223
|
-
return undefined;
|
|
224
|
-
}
|
|
225
|
-
authHeaders(opts) {
|
|
226
|
-
return {};
|
|
227
|
-
}
|
|
228
|
-
async prepareOptions(opts) {
|
|
229
|
-
if (opts.headers?.['Authorization'] || opts.headers?.['api-key']) {
|
|
230
|
-
return super.prepareOptions(opts);
|
|
231
|
-
}
|
|
232
|
-
const token = await this._getAzureADToken();
|
|
233
|
-
opts.headers ?? (opts.headers = {});
|
|
234
|
-
if (token) {
|
|
235
|
-
opts.headers['Authorization'] = `Bearer ${token}`;
|
|
236
|
-
}
|
|
237
|
-
else if (this.apiKey !== API_KEY_SENTINEL) {
|
|
238
|
-
opts.headers['api-key'] = this.apiKey;
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
throw new Errors.OpenAIError('Unable to handle auth');
|
|
242
|
-
}
|
|
243
|
-
return super.prepareOptions(opts);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
exports.AzureOpenAI = AzureOpenAI;
|
|
247
|
-
const _deployments_endpoints = new Set([
|
|
248
|
-
'/completions',
|
|
249
|
-
'/chat/completions',
|
|
250
|
-
'/embeddings',
|
|
251
|
-
'/audio/transcriptions',
|
|
252
|
-
'/audio/translations',
|
|
253
|
-
'/audio/speech',
|
|
254
|
-
'/images/generations',
|
|
255
|
-
'/batches',
|
|
256
|
-
]);
|
|
257
|
-
const API_KEY_SENTINEL = '<Missing Key>';
|
|
258
|
-
// ---------------------- End Azure ----------------------
|
|
259
|
-
exports = module.exports = OpenAI;
|
|
260
|
-
module.exports.AzureOpenAI = AzureOpenAI;
|
|
261
|
-
exports.default = OpenAI;
|
|
262
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA+B;AAC/B,mDAAkC;AAElC,sDAAqC;AACrC,4DAA2C;AAC3C,0DAAyC;AAiFzC,sDAAsD;AACtD,MAAa,MAAO,SAAQ,IAAI,CAAC,SAAS;IAOxC;;;;;;;;;;;;;;OAcG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EACzC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EACvC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,IAAI,EACpD,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,IAAI,EACnD,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,WAAW,CAC1B,oLAAoL,CACrL,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,YAAY;YACZ,OAAO;YACP,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,2BAA2B;SAChD,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,uBAAuB,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE;YACj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// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
var _a;
|
|
3
|
-
import * as Core from "./core.mjs";
|
|
4
|
-
import * as Errors from "./error.mjs";
|
|
5
|
-
import * as Uploads from "./uploads.mjs";
|
|
6
|
-
import * as Pagination from "./pagination.mjs";
|
|
7
|
-
import * as API from "./resources/index.mjs";
|
|
8
|
-
/** API Client for interfacing with the OpenAI API. */
|
|
9
|
-
export class OpenAI extends Core.APIClient {
|
|
10
|
-
/**
|
|
11
|
-
* API Client for interfacing with the OpenAI API.
|
|
12
|
-
*
|
|
13
|
-
* @param {string | undefined} [opts.apiKey=process.env['OPENAI_API_KEY'] ?? undefined]
|
|
14
|
-
* @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null]
|
|
15
|
-
* @param {string | null | undefined} [opts.project=process.env['OPENAI_PROJECT_ID'] ?? null]
|
|
16
|
-
* @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL'] ?? https://api.openai.com/v1] - Override the default base URL for the API.
|
|
17
|
-
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
18
|
-
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
19
|
-
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
20
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
21
|
-
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
22
|
-
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
23
|
-
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
24
|
-
*/
|
|
25
|
-
constructor({ baseURL = Core.readEnv('OPENAI_BASE_URL'), apiKey = Core.readEnv('OPENAI_API_KEY'), organization = Core.readEnv('OPENAI_ORG_ID') ?? null, project = Core.readEnv('OPENAI_PROJECT_ID') ?? null, ...opts } = {}) {
|
|
26
|
-
if (apiKey === undefined) {
|
|
27
|
-
throw new Errors.OpenAIError("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");
|
|
28
|
-
}
|
|
29
|
-
const options = {
|
|
30
|
-
apiKey,
|
|
31
|
-
organization,
|
|
32
|
-
project,
|
|
33
|
-
...opts,
|
|
34
|
-
baseURL: baseURL || `https://api.openai.com/v1`,
|
|
35
|
-
};
|
|
36
|
-
if (!options.dangerouslyAllowBrowser && Core.isRunningInBrowser()) {
|
|
37
|
-
throw new Errors.OpenAIError("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");
|
|
38
|
-
}
|
|
39
|
-
super({
|
|
40
|
-
baseURL: options.baseURL,
|
|
41
|
-
timeout: options.timeout ?? 600000 /* 10 minutes */,
|
|
42
|
-
httpAgent: options.httpAgent,
|
|
43
|
-
maxRetries: options.maxRetries,
|
|
44
|
-
fetch: options.fetch,
|
|
45
|
-
});
|
|
46
|
-
this.completions = new API.Completions(this);
|
|
47
|
-
this.chat = new API.Chat(this);
|
|
48
|
-
this.embeddings = new API.Embeddings(this);
|
|
49
|
-
this.files = new API.Files(this);
|
|
50
|
-
this.images = new API.Images(this);
|
|
51
|
-
this.audio = new API.Audio(this);
|
|
52
|
-
this.moderations = new API.Moderations(this);
|
|
53
|
-
this.models = new API.Models(this);
|
|
54
|
-
this.fineTuning = new API.FineTuning(this);
|
|
55
|
-
this.beta = new API.Beta(this);
|
|
56
|
-
this.batches = new API.Batches(this);
|
|
57
|
-
this._options = options;
|
|
58
|
-
this.apiKey = apiKey;
|
|
59
|
-
this.organization = organization;
|
|
60
|
-
this.project = project;
|
|
61
|
-
}
|
|
62
|
-
defaultQuery() {
|
|
63
|
-
return this._options.defaultQuery;
|
|
64
|
-
}
|
|
65
|
-
defaultHeaders(opts) {
|
|
66
|
-
return {
|
|
67
|
-
...super.defaultHeaders(opts),
|
|
68
|
-
'OpenAI-Organization': this.organization,
|
|
69
|
-
'OpenAI-Project': this.project,
|
|
70
|
-
...this._options.defaultHeaders,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
authHeaders(opts) {
|
|
74
|
-
return { Authorization: `Bearer ${this.apiKey}` };
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
_a = OpenAI;
|
|
78
|
-
OpenAI.OpenAI = _a;
|
|
79
|
-
OpenAI.OpenAIError = Errors.OpenAIError;
|
|
80
|
-
OpenAI.APIError = Errors.APIError;
|
|
81
|
-
OpenAI.APIConnectionError = Errors.APIConnectionError;
|
|
82
|
-
OpenAI.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
83
|
-
OpenAI.APIUserAbortError = Errors.APIUserAbortError;
|
|
84
|
-
OpenAI.NotFoundError = Errors.NotFoundError;
|
|
85
|
-
OpenAI.ConflictError = Errors.ConflictError;
|
|
86
|
-
OpenAI.RateLimitError = Errors.RateLimitError;
|
|
87
|
-
OpenAI.BadRequestError = Errors.BadRequestError;
|
|
88
|
-
OpenAI.AuthenticationError = Errors.AuthenticationError;
|
|
89
|
-
OpenAI.InternalServerError = Errors.InternalServerError;
|
|
90
|
-
OpenAI.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
91
|
-
OpenAI.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
92
|
-
OpenAI.toFile = Uploads.toFile;
|
|
93
|
-
OpenAI.fileFromPath = Uploads.fileFromPath;
|
|
94
|
-
export const { OpenAIError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } = Errors;
|
|
95
|
-
export var toFile = Uploads.toFile;
|
|
96
|
-
export var fileFromPath = Uploads.fileFromPath;
|
|
97
|
-
(function (OpenAI) {
|
|
98
|
-
OpenAI.Page = Pagination.Page;
|
|
99
|
-
OpenAI.CursorPage = Pagination.CursorPage;
|
|
100
|
-
OpenAI.Completions = API.Completions;
|
|
101
|
-
OpenAI.Chat = API.Chat;
|
|
102
|
-
OpenAI.Embeddings = API.Embeddings;
|
|
103
|
-
OpenAI.Files = API.Files;
|
|
104
|
-
OpenAI.FileObjectsPage = API.FileObjectsPage;
|
|
105
|
-
OpenAI.Images = API.Images;
|
|
106
|
-
OpenAI.Audio = API.Audio;
|
|
107
|
-
OpenAI.Moderations = API.Moderations;
|
|
108
|
-
OpenAI.Models = API.Models;
|
|
109
|
-
OpenAI.ModelsPage = API.ModelsPage;
|
|
110
|
-
OpenAI.FineTuning = API.FineTuning;
|
|
111
|
-
OpenAI.Beta = API.Beta;
|
|
112
|
-
OpenAI.Batches = API.Batches;
|
|
113
|
-
OpenAI.BatchesPage = API.BatchesPage;
|
|
114
|
-
})(OpenAI || (OpenAI = {}));
|
|
115
|
-
/** API Client for interfacing with the Azure OpenAI API. */
|
|
116
|
-
export class AzureOpenAI extends OpenAI {
|
|
117
|
-
/**
|
|
118
|
-
* API Client for interfacing with the Azure OpenAI API.
|
|
119
|
-
*
|
|
120
|
-
* @param {string | undefined} [opts.apiVersion=process.env['OPENAI_API_VERSION'] ?? undefined]
|
|
121
|
-
* @param {string | undefined} [opts.endpoint=process.env['AZURE_OPENAI_ENDPOINT'] ?? undefined] - Your Azure endpoint, including the resource, e.g. `https://example-resource.azure.openai.com/`
|
|
122
|
-
* @param {string | undefined} [opts.apiKey=process.env['AZURE_OPENAI_API_KEY'] ?? undefined]
|
|
123
|
-
* @param {string | undefined} opts.deployment - A model deployment, if given, sets the base client URL to include `/deployments/{deployment}`.
|
|
124
|
-
* @param {string | null | undefined} [opts.organization=process.env['OPENAI_ORG_ID'] ?? null]
|
|
125
|
-
* @param {string} [opts.baseURL=process.env['OPENAI_BASE_URL']] - Sets the base URL for the API.
|
|
126
|
-
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
127
|
-
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
128
|
-
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
129
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
130
|
-
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
131
|
-
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
132
|
-
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
133
|
-
*/
|
|
134
|
-
constructor({ baseURL = Core.readEnv('OPENAI_BASE_URL'), apiKey = Core.readEnv('AZURE_OPENAI_API_KEY'), apiVersion = Core.readEnv('OPENAI_API_VERSION'), endpoint, deployment, azureADTokenProvider, dangerouslyAllowBrowser, ...opts } = {}) {
|
|
135
|
-
if (!apiVersion) {
|
|
136
|
-
throw new Errors.OpenAIError("The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).");
|
|
137
|
-
}
|
|
138
|
-
if (typeof azureADTokenProvider === 'function') {
|
|
139
|
-
dangerouslyAllowBrowser = true;
|
|
140
|
-
}
|
|
141
|
-
if (!azureADTokenProvider && !apiKey) {
|
|
142
|
-
throw new Errors.OpenAIError('Missing credentials. Please pass one of `apiKey` and `azureADTokenProvider`, or set the `AZURE_OPENAI_API_KEY` environment variable.');
|
|
143
|
-
}
|
|
144
|
-
if (azureADTokenProvider && apiKey) {
|
|
145
|
-
throw new Errors.OpenAIError('The `apiKey` and `azureADTokenProvider` arguments are mutually exclusive; only one can be passed at a time.');
|
|
146
|
-
}
|
|
147
|
-
// define a sentinel value to avoid any typing issues
|
|
148
|
-
apiKey ?? (apiKey = API_KEY_SENTINEL);
|
|
149
|
-
opts.defaultQuery = { ...opts.defaultQuery, 'api-version': apiVersion };
|
|
150
|
-
if (!baseURL) {
|
|
151
|
-
if (!endpoint) {
|
|
152
|
-
endpoint = process.env['AZURE_OPENAI_ENDPOINT'];
|
|
153
|
-
}
|
|
154
|
-
if (!endpoint) {
|
|
155
|
-
throw new Errors.OpenAIError('Must provide one of the `baseURL` or `endpoint` arguments, or the `AZURE_OPENAI_ENDPOINT` environment variable');
|
|
156
|
-
}
|
|
157
|
-
baseURL = `${endpoint}/openai`;
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
if (endpoint) {
|
|
161
|
-
throw new Errors.OpenAIError('baseURL and endpoint are mutually exclusive');
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
super({
|
|
165
|
-
apiKey,
|
|
166
|
-
baseURL,
|
|
167
|
-
...opts,
|
|
168
|
-
...(dangerouslyAllowBrowser !== undefined ? { dangerouslyAllowBrowser } : {}),
|
|
169
|
-
});
|
|
170
|
-
this.apiVersion = '';
|
|
171
|
-
this._azureADTokenProvider = azureADTokenProvider;
|
|
172
|
-
this.apiVersion = apiVersion;
|
|
173
|
-
this._deployment = deployment;
|
|
174
|
-
}
|
|
175
|
-
buildRequest(options) {
|
|
176
|
-
if (_deployments_endpoints.has(options.path) && options.method === 'post' && options.body !== undefined) {
|
|
177
|
-
if (!Core.isObj(options.body)) {
|
|
178
|
-
throw new Error('Expected request body to be an object');
|
|
179
|
-
}
|
|
180
|
-
const model = this._deployment || options.body['model'];
|
|
181
|
-
delete options.body['model'];
|
|
182
|
-
if (model !== undefined && !this.baseURL.includes('/deployments')) {
|
|
183
|
-
options.path = `/deployments/${model}${options.path}`;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return super.buildRequest(options);
|
|
187
|
-
}
|
|
188
|
-
async _getAzureADToken() {
|
|
189
|
-
if (typeof this._azureADTokenProvider === 'function') {
|
|
190
|
-
const token = await this._azureADTokenProvider();
|
|
191
|
-
if (!token || typeof token !== 'string') {
|
|
192
|
-
throw new Errors.OpenAIError(`Expected 'azureADTokenProvider' argument to return a string but it returned ${token}`);
|
|
193
|
-
}
|
|
194
|
-
return token;
|
|
195
|
-
}
|
|
196
|
-
return undefined;
|
|
197
|
-
}
|
|
198
|
-
authHeaders(opts) {
|
|
199
|
-
return {};
|
|
200
|
-
}
|
|
201
|
-
async prepareOptions(opts) {
|
|
202
|
-
if (opts.headers?.['Authorization'] || opts.headers?.['api-key']) {
|
|
203
|
-
return super.prepareOptions(opts);
|
|
204
|
-
}
|
|
205
|
-
const token = await this._getAzureADToken();
|
|
206
|
-
opts.headers ?? (opts.headers = {});
|
|
207
|
-
if (token) {
|
|
208
|
-
opts.headers['Authorization'] = `Bearer ${token}`;
|
|
209
|
-
}
|
|
210
|
-
else if (this.apiKey !== API_KEY_SENTINEL) {
|
|
211
|
-
opts.headers['api-key'] = this.apiKey;
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
throw new Errors.OpenAIError('Unable to handle auth');
|
|
215
|
-
}
|
|
216
|
-
return super.prepareOptions(opts);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
const _deployments_endpoints = new Set([
|
|
220
|
-
'/completions',
|
|
221
|
-
'/chat/completions',
|
|
222
|
-
'/embeddings',
|
|
223
|
-
'/audio/transcriptions',
|
|
224
|
-
'/audio/translations',
|
|
225
|
-
'/audio/speech',
|
|
226
|
-
'/images/generations',
|
|
227
|
-
'/batches',
|
|
228
|
-
]);
|
|
229
|
-
const API_KEY_SENTINEL = '<Missing Key>';
|
|
230
|
-
// ---------------------- End Azure ----------------------
|
|
231
|
-
export default OpenAI;
|
|
232
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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AK,EAAE,EAAC;QACpB,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,KAAK,EAAE,CAAC;SACnD;aAAM,IAAI,IAAI,CAAC,MAAM,KAAK,gBAAgB,EAAE;YAC3C,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACvC;aAAM;YACL,MAAM,IAAI,MAAM,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;SACvD;QACD,OAAO,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAED,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IACrC,cAAc;IACd,mBAAmB;IACnB,aAAa;IACb,uBAAuB;IACvB,qBAAqB;IACrB,eAAe;IACf,qBAAqB;IACrB,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAEzC,0DAA0D;AAE1D,eAAe,MAAM,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import * as Core from 'openai/core';
|
|
3
|
-
import { APIUserAbortError, OpenAIError } from 'openai/error';
|
|
4
|
-
import { Run, RunSubmitToolOutputsParamsBase } from 'openai/resources/beta/threads/runs/runs';
|
|
5
|
-
import { RunCreateParamsBase, Runs } from 'openai/resources/beta/threads/runs/runs';
|
|
6
|
-
import { ThreadCreateAndRunParamsBase, Threads } from 'openai/resources/beta/threads/threads';
|
|
7
|
-
export declare abstract class AbstractAssistantStreamRunner<Events extends CustomEvents<any> = AbstractAssistantRunnerEvents> {
|
|
8
|
-
#private;
|
|
9
|
-
controller: AbortController;
|
|
10
|
-
constructor();
|
|
11
|
-
protected _run(executor: () => Promise<any>): void;
|
|
12
|
-
protected _addRun(run: Run): Run;
|
|
13
|
-
protected _connected(): void;
|
|
14
|
-
get ended(): boolean;
|
|
15
|
-
get errored(): boolean;
|
|
16
|
-
get aborted(): boolean;
|
|
17
|
-
abort(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Adds the listener function to the end of the listeners array for the event.
|
|
20
|
-
* No checks are made to see if the listener has already been added. Multiple calls passing
|
|
21
|
-
* the same combination of event and listener will result in the listener being added, and
|
|
22
|
-
* called, multiple times.
|
|
23
|
-
* @returns this ChatCompletionStream, so that calls can be chained
|
|
24
|
-
*/
|
|
25
|
-
on<Event extends keyof Events>(event: Event, listener: ListenerForEvent<Events, Event>): this;
|
|
26
|
-
/**
|
|
27
|
-
* Removes the specified listener from the listener array for the event.
|
|
28
|
-
* off() will remove, at most, one instance of a listener from the listener array. If any single
|
|
29
|
-
* listener has been added multiple times to the listener array for the specified event, then
|
|
30
|
-
* off() must be called multiple times to remove each instance.
|
|
31
|
-
* @returns this ChatCompletionStream, so that calls can be chained
|
|
32
|
-
*/
|
|
33
|
-
off<Event extends keyof Events>(event: Event, listener: ListenerForEvent<Events, Event>): this;
|
|
34
|
-
/**
|
|
35
|
-
* Adds a one-time listener function for the event. The next time the event is triggered,
|
|
36
|
-
* this listener is removed and then invoked.
|
|
37
|
-
* @returns this ChatCompletionStream, so that calls can be chained
|
|
38
|
-
*/
|
|
39
|
-
once<Event extends keyof Events>(event: Event, listener: ListenerForEvent<Events, Event>): this;
|
|
40
|
-
/**
|
|
41
|
-
* This is similar to `.once()`, but returns a Promise that resolves the next time
|
|
42
|
-
* the event is triggered, instead of calling a listener callback.
|
|
43
|
-
* @returns a Promise that resolves the next time given event is triggered,
|
|
44
|
-
* or rejects if an error is emitted. (If you request the 'error' event,
|
|
45
|
-
* returns a promise that resolves with the error).
|
|
46
|
-
*
|
|
47
|
-
* Example:
|
|
48
|
-
*
|
|
49
|
-
* const message = await stream.emitted('message') // rejects if the stream errors
|
|
50
|
-
*/
|
|
51
|
-
emitted<Event extends keyof Events>(event: Event): Promise<EventParameters<Events, Event> extends [infer Param] ? Param : EventParameters<Events, Event> extends [] ? void : EventParameters<Events, Event>>;
|
|
52
|
-
done(): Promise<void>;
|
|
53
|
-
protected _emit<Event extends keyof Events>(event: Event, ...args: EventParameters<Events, Event>): void;
|
|
54
|
-
protected _threadAssistantStream(body: ThreadCreateAndRunParamsBase, thread: Threads, options?: Core.RequestOptions): Promise<Run>;
|
|
55
|
-
protected _runAssistantStream(threadId: string, runs: Runs, params: RunCreateParamsBase, options?: Core.RequestOptions): Promise<Run>;
|
|
56
|
-
protected _runToolAssistantStream(threadId: string, runId: string, runs: Runs, params: RunSubmitToolOutputsParamsBase, options?: Core.RequestOptions): Promise<Run>;
|
|
57
|
-
protected _createThreadAssistantStream(thread: Threads, body: ThreadCreateAndRunParamsBase, options?: Core.RequestOptions): Promise<Run>;
|
|
58
|
-
protected _createToolAssistantStream(run: Runs, threadId: string, runId: string, params: RunSubmitToolOutputsParamsBase, options?: Core.RequestOptions): Promise<Run>;
|
|
59
|
-
protected _createAssistantStream(run: Runs, threadId: string, params: RunCreateParamsBase, options?: Core.RequestOptions): Promise<Run>;
|
|
60
|
-
}
|
|
61
|
-
type CustomEvents<Event extends string> = {
|
|
62
|
-
[k in Event]: k extends keyof AbstractAssistantRunnerEvents ? AbstractAssistantRunnerEvents[k] : (...args: any[]) => void;
|
|
63
|
-
};
|
|
64
|
-
type ListenerForEvent<Events extends CustomEvents<any>, Event extends keyof Events> = Event extends (keyof AbstractAssistantRunnerEvents) ? AbstractAssistantRunnerEvents[Event] : Events[Event];
|
|
65
|
-
type EventParameters<Events extends CustomEvents<any>, Event extends keyof Events> = Parameters<ListenerForEvent<Events, Event>>;
|
|
66
|
-
export interface AbstractAssistantRunnerEvents {
|
|
67
|
-
connect: () => void;
|
|
68
|
-
run: (run: Run) => void;
|
|
69
|
-
error: (error: OpenAIError) => void;
|
|
70
|
-
abort: (error: APIUserAbortError) => void;
|
|
71
|
-
end: () => void;
|
|
72
|
-
}
|
|
73
|
-
export {};
|
|
74
|
-
//# sourceMappingURL=AbstractAssistantStreamRunner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
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