@psnext/slingcli 2.4.20260526-1 → 2.4.20260527-3
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/bin/sling.js +4 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +12 -6
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +12 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +18 -24
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/cli.js +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +88 -107
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +8 -22
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +47 -30
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js +55 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +45 -69
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +5 -2
- package/node_modules/@earendil-works/pi-ai/package.json +4 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.js +18 -12
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +8 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +18 -24
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.js +8 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/template.js +6 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +12 -29
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +5 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/output-guard.js +52 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +63 -36
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +6 -20
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js +38 -31
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +9 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +32 -24
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +6 -13
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.js +8 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +54 -53
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit-diff.js +8 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +44 -81
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/file-mutation-queue.js +27 -12
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +5 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/output-accumulator.js +9 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.js +39 -21
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +9 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +12 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +20 -35
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +5 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +14 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +29 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +37 -28
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js +64 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +15 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-native.js +14 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-core.js +124 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-worker.js +31 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js +75 -115
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.js +33 -7
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +13 -26
- package/node_modules/@earendil-works/pi-coding-agent/package.json +6 -6
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +40 -55
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +12 -2
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +53 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +4 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +38 -16
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +19 -12
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/package.json +3 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +3 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +9 -40
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +9 -40
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +12 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +184 -0
- package/node_modules/@smithy/core/dist-es/index.js +6 -6
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/{protocols/url-parser → transport}/parseUrl.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/{endpoints → transport}/toEndpointV1.js +1 -1
- package/node_modules/@smithy/core/dist-types/index.d.ts +10 -6
- package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/lib/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/httpHandler.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/requestBuilder.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +9 -0
- package/node_modules/@smithy/core/package.json +19 -10
- package/node_modules/@smithy/core/transport.d.ts +5 -0
- package/node_modules/@smithy/core/transport.js +5 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +1 -1
- package/node_modules/lru-cache/package.json +1 -1
- package/package.json +6 -6
- package/slingshot/index.js +246 -244
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -21
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -21
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -46
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -24
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -19
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -27
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -5
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -10
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -44
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +0 -5
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -14
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -18
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -38
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -15
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -9
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -61
- package/node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js +0 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/TestVectors.fixture.js +0 -146
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/core/dist-types/request-builder/requestBuilder.d.ts +0 -6
- package/node_modules/@smithy/core/dist-types/submodules/client/util-middleware/getSmithyContext.d.ts +0 -5
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +0 -8
- package/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +0 -399
- package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +0 -14
- package/node_modules/koffi/CHANGELOG.md +0 -1093
- package/node_modules/koffi/LICENSE.txt +0 -22
- package/node_modules/koffi/README.md +0 -43
- package/node_modules/koffi/build/koffi/darwin_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/darwin_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/freebsd_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_armhf/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_loong64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_riscv64d/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/linux_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/musl_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/musl_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/openbsd_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/openbsd_x64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_arm64/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_ia32/koffi.node +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.exp +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.lib +0 -0
- package/node_modules/koffi/build/koffi/win32_x64/koffi.node +0 -0
- package/node_modules/koffi/doc/benchmarks.md +0 -126
- package/node_modules/koffi/doc/callbacks.md +0 -210
- package/node_modules/koffi/doc/contribute.md +0 -148
- package/node_modules/koffi/doc/functions.md +0 -250
- package/node_modules/koffi/doc/index.md +0 -61
- package/node_modules/koffi/doc/input.md +0 -471
- package/node_modules/koffi/doc/migration.md +0 -159
- package/node_modules/koffi/doc/misc.md +0 -180
- package/node_modules/koffi/doc/output.md +0 -305
- package/node_modules/koffi/doc/packaging.md +0 -88
- package/node_modules/koffi/doc/platforms.md +0 -36
- package/node_modules/koffi/doc/pointers.md +0 -328
- package/node_modules/koffi/doc/start.md +0 -118
- package/node_modules/koffi/doc/unions.md +0 -186
- package/node_modules/koffi/doc/variables.md +0 -102
- package/node_modules/koffi/index.d.ts +0 -288
- package/node_modules/koffi/index.js +0 -634
- package/node_modules/koffi/indirect.js +0 -533
- package/node_modules/koffi/lib/native/base/base.cc +0 -11015
- package/node_modules/koffi/lib/native/base/base.hh +0 -6003
- package/node_modules/koffi/lib/native/base/crc.inc +0 -2214
- package/node_modules/koffi/lib/native/base/crc_gen.py +0 -72
- package/node_modules/koffi/lib/native/base/mimetypes.inc +0 -1248
- package/node_modules/koffi/lib/native/base/mimetypes_gen.py +0 -58
- package/node_modules/koffi/lib/native/base/tower.cc +0 -821
- package/node_modules/koffi/lib/native/base/tower.hh +0 -81
- package/node_modules/koffi/lib/native/base/unicode.inc +0 -408
- package/node_modules/koffi/lib/native/base/unicode_gen.py +0 -152
- package/node_modules/koffi/package.json +0 -38
- package/node_modules/koffi/src/cnoke/LICENSE.txt +0 -22
- package/node_modules/koffi/src/cnoke/README.md +0 -99
- package/node_modules/koffi/src/cnoke/assets/FindCNoke.cmake +0 -127
- package/node_modules/koffi/src/cnoke/assets/toolchains.json +0 -126
- package/node_modules/koffi/src/cnoke/assets/win_delay_hook.c +0 -36
- package/node_modules/koffi/src/cnoke/cnoke.js +0 -170
- package/node_modules/koffi/src/cnoke/package.json +0 -24
- package/node_modules/koffi/src/cnoke/src/builder.js +0 -511
- package/node_modules/koffi/src/cnoke/src/index.js +0 -10
- package/node_modules/koffi/src/cnoke/src/tools.js +0 -407
- package/node_modules/koffi/src/koffi/CMakeLists.txt +0 -182
- package/node_modules/koffi/src/koffi/src/abi_arm32.cc +0 -1018
- package/node_modules/koffi/src/koffi/src/abi_arm32_asm.S +0 -169
- package/node_modules/koffi/src/koffi/src/abi_arm64.cc +0 -1295
- package/node_modules/koffi/src/koffi/src/abi_arm64_asm.S +0 -195
- package/node_modules/koffi/src/koffi/src/abi_arm64_asm.asm +0 -174
- package/node_modules/koffi/src/koffi/src/abi_loong64.cc +0 -5
- package/node_modules/koffi/src/koffi/src/abi_loong64_asm.S +0 -204
- package/node_modules/koffi/src/koffi/src/abi_riscv64.cc +0 -915
- package/node_modules/koffi/src/koffi/src/abi_riscv64_asm.S +0 -203
- package/node_modules/koffi/src/koffi/src/abi_x64_sysv.cc +0 -939
- package/node_modules/koffi/src/koffi/src/abi_x64_sysv_asm.S +0 -231
- package/node_modules/koffi/src/koffi/src/abi_x64_win.cc +0 -715
- package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.S +0 -166
- package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.asm +0 -192
- package/node_modules/koffi/src/koffi/src/abi_x86.cc +0 -860
- package/node_modules/koffi/src/koffi/src/abi_x86_asm.S +0 -193
- package/node_modules/koffi/src/koffi/src/abi_x86_asm.asm +0 -177
- package/node_modules/koffi/src/koffi/src/call.cc +0 -1326
- package/node_modules/koffi/src/koffi/src/call.hh +0 -179
- package/node_modules/koffi/src/koffi/src/errno.inc +0 -462
- package/node_modules/koffi/src/koffi/src/ffi.cc +0 -2702
- package/node_modules/koffi/src/koffi/src/ffi.hh +0 -354
- package/node_modules/koffi/src/koffi/src/init.js +0 -105
- package/node_modules/koffi/src/koffi/src/parser.cc +0 -220
- package/node_modules/koffi/src/koffi/src/parser.hh +0 -54
- package/node_modules/koffi/src/koffi/src/util.cc +0 -1807
- package/node_modules/koffi/src/koffi/src/util.hh +0 -221
- package/node_modules/koffi/src/koffi/src/uv.cc +0 -193
- package/node_modules/koffi/src/koffi/src/uv.def +0 -10
- package/node_modules/koffi/src/koffi/src/uv.hh +0 -40
- package/node_modules/koffi/src/koffi/src/win32.cc +0 -198
- package/node_modules/koffi/src/koffi/src/win32.hh +0 -119
- package/node_modules/koffi/src/koffi/tools/write_trampolines.js +0 -77
- package/node_modules/koffi/vendor/node-addon-api/LICENSE.md +0 -9
- package/node_modules/koffi/vendor/node-addon-api/README.md +0 -95
- package/node_modules/koffi/vendor/node-addon-api/napi-inl.deprecated.h +0 -186
- package/node_modules/koffi/vendor/node-addon-api/napi-inl.h +0 -7033
- package/node_modules/koffi/vendor/node-addon-api/napi.h +0 -3309
- package/node_modules/koffi/vendor/node-api-headers/LICENSE +0 -21
- package/node_modules/koffi/vendor/node-api-headers/README.md +0 -95
- package/node_modules/koffi/vendor/node-api-headers/def/js_native_api.def +0 -125
- package/node_modules/koffi/vendor/node-api-headers/def/node_api.def +0 -157
- package/node_modules/koffi/vendor/node-api-headers/include/js_native_api.h +0 -591
- package/node_modules/koffi/vendor/node-api-headers/include/js_native_api_types.h +0 -210
- package/node_modules/koffi/vendor/node-api-headers/include/node_api.h +0 -265
- package/node_modules/koffi/vendor/node-api-headers/include/node_api_types.h +0 -58
- package/node_modules/koffi/vendor/node-api-headers/include/uv/aix.h +0 -32
- package/node_modules/koffi/vendor/node-api-headers/include/uv/bsd.h +0 -34
- package/node_modules/koffi/vendor/node-api-headers/include/uv/darwin.h +0 -61
- package/node_modules/koffi/vendor/node-api-headers/include/uv/errno.h +0 -483
- package/node_modules/koffi/vendor/node-api-headers/include/uv/linux.h +0 -34
- package/node_modules/koffi/vendor/node-api-headers/include/uv/os390.h +0 -33
- package/node_modules/koffi/vendor/node-api-headers/include/uv/posix.h +0 -31
- package/node_modules/koffi/vendor/node-api-headers/include/uv/sunos.h +0 -44
- package/node_modules/koffi/vendor/node-api-headers/include/uv/threadpool.h +0 -37
- package/node_modules/koffi/vendor/node-api-headers/include/uv/tree.h +0 -521
- package/node_modules/koffi/vendor/node-api-headers/include/uv/unix.h +0 -512
- package/node_modules/koffi/vendor/node-api-headers/include/uv/version.h +0 -43
- package/node_modules/koffi/vendor/node-api-headers/include/uv/win.h +0 -698
- package/node_modules/koffi/vendor/node-api-headers/include/uv.h +0 -1990
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{pagination → legacy-root-exports/pagination}/createPaginator.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{getSmithyContext.js → submodules/transport/getSmithyContext.js} +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpRequest.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpResponse.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/isValidHostname.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{client/util-middleware → transport}/normalizeProvider.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/querystring-parser → transport}/parseQueryString.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{pagination → legacy-root-exports/pagination}/createPaginator.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{getSmithyContext.d.ts → submodules/transport/getSmithyContext.d.ts} +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpRequest.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpResponse.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/isValidHostname.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{client/util-middleware → transport}/normalizeProvider.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/querystring-parser → transport}/parseQueryString.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/url-parser → transport}/parseUrl.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{endpoints → transport}/toEndpointV1.d.ts +0 -0
|
@@ -1720,6 +1720,7 @@ export const MODELS = {
|
|
|
1720
1720
|
api: "anthropic-messages",
|
|
1721
1721
|
provider: "anthropic",
|
|
1722
1722
|
baseUrl: "https://api.anthropic.com",
|
|
1723
|
+
compat: { "forceAdaptiveThinking": true },
|
|
1723
1724
|
reasoning: true,
|
|
1724
1725
|
thinkingLevelMap: { "xhigh": "max" },
|
|
1725
1726
|
input: ["text", "image"],
|
|
@@ -1738,6 +1739,7 @@ export const MODELS = {
|
|
|
1738
1739
|
api: "anthropic-messages",
|
|
1739
1740
|
provider: "anthropic",
|
|
1740
1741
|
baseUrl: "https://api.anthropic.com",
|
|
1742
|
+
compat: { "forceAdaptiveThinking": true },
|
|
1741
1743
|
reasoning: true,
|
|
1742
1744
|
thinkingLevelMap: { "xhigh": "xhigh" },
|
|
1743
1745
|
input: ["text", "image"],
|
|
@@ -1824,6 +1826,7 @@ export const MODELS = {
|
|
|
1824
1826
|
api: "anthropic-messages",
|
|
1825
1827
|
provider: "anthropic",
|
|
1826
1828
|
baseUrl: "https://api.anthropic.com",
|
|
1829
|
+
compat: { "forceAdaptiveThinking": true },
|
|
1827
1830
|
reasoning: true,
|
|
1828
1831
|
input: ["text", "image"],
|
|
1829
1832
|
cost: {
|
|
@@ -1916,7 +1919,7 @@ export const MODELS = {
|
|
|
1916
1919
|
cost: {
|
|
1917
1920
|
input: 0.1,
|
|
1918
1921
|
output: 0.4,
|
|
1919
|
-
cacheRead: 0.
|
|
1922
|
+
cacheRead: 0.025,
|
|
1920
1923
|
cacheWrite: 0,
|
|
1921
1924
|
},
|
|
1922
1925
|
contextWindow: 1047576,
|
|
@@ -2001,7 +2004,7 @@ export const MODELS = {
|
|
|
2001
2004
|
cost: {
|
|
2002
2005
|
input: 0.15,
|
|
2003
2006
|
output: 0.6,
|
|
2004
|
-
cacheRead: 0.
|
|
2007
|
+
cacheRead: 0.075,
|
|
2005
2008
|
cacheWrite: 0,
|
|
2006
2009
|
},
|
|
2007
2010
|
contextWindow: 128000,
|
|
@@ -2127,7 +2130,7 @@ export const MODELS = {
|
|
|
2127
2130
|
cost: {
|
|
2128
2131
|
input: 1.25,
|
|
2129
2132
|
output: 10,
|
|
2130
|
-
cacheRead: 0.
|
|
2133
|
+
cacheRead: 0.125,
|
|
2131
2134
|
cacheWrite: 0,
|
|
2132
2135
|
},
|
|
2133
2136
|
contextWindow: 400000,
|
|
@@ -2552,7 +2555,7 @@ export const MODELS = {
|
|
|
2552
2555
|
cost: {
|
|
2553
2556
|
input: 1.1,
|
|
2554
2557
|
output: 4.4,
|
|
2555
|
-
cacheRead: 0.
|
|
2558
|
+
cacheRead: 0.275,
|
|
2556
2559
|
cacheWrite: 0,
|
|
2557
2560
|
},
|
|
2558
2561
|
contextWindow: 200000,
|
|
@@ -2611,23 +2614,6 @@ export const MODELS = {
|
|
|
2611
2614
|
contextWindow: 32000,
|
|
2612
2615
|
maxTokens: 8000,
|
|
2613
2616
|
},
|
|
2614
|
-
"qwen-3-235b-a22b-instruct-2507": {
|
|
2615
|
-
id: "qwen-3-235b-a22b-instruct-2507",
|
|
2616
|
-
name: "Qwen 3 235B Instruct",
|
|
2617
|
-
api: "openai-completions",
|
|
2618
|
-
provider: "cerebras",
|
|
2619
|
-
baseUrl: "https://api.cerebras.ai/v1",
|
|
2620
|
-
reasoning: false,
|
|
2621
|
-
input: ["text"],
|
|
2622
|
-
cost: {
|
|
2623
|
-
input: 0.6,
|
|
2624
|
-
output: 1.2,
|
|
2625
|
-
cacheRead: 0,
|
|
2626
|
-
cacheWrite: 0,
|
|
2627
|
-
},
|
|
2628
|
-
contextWindow: 131000,
|
|
2629
|
-
maxTokens: 32000,
|
|
2630
|
-
},
|
|
2631
2617
|
"zai-glm-4.7": {
|
|
2632
2618
|
id: "zai-glm-4.7",
|
|
2633
2619
|
name: "Z.AI GLM-4.7",
|
|
@@ -2823,6 +2809,7 @@ export const MODELS = {
|
|
|
2823
2809
|
api: "anthropic-messages",
|
|
2824
2810
|
provider: "cloudflare-ai-gateway",
|
|
2825
2811
|
baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",
|
|
2812
|
+
compat: { "forceAdaptiveThinking": true },
|
|
2826
2813
|
reasoning: true,
|
|
2827
2814
|
thinkingLevelMap: { "xhigh": "max" },
|
|
2828
2815
|
input: ["text", "image"],
|
|
@@ -2841,6 +2828,7 @@ export const MODELS = {
|
|
|
2841
2828
|
api: "anthropic-messages",
|
|
2842
2829
|
provider: "cloudflare-ai-gateway",
|
|
2843
2830
|
baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",
|
|
2831
|
+
compat: { "forceAdaptiveThinking": true },
|
|
2844
2832
|
reasoning: true,
|
|
2845
2833
|
thinkingLevelMap: { "xhigh": "xhigh" },
|
|
2846
2834
|
input: ["text", "image"],
|
|
@@ -2893,6 +2881,7 @@ export const MODELS = {
|
|
|
2893
2881
|
api: "anthropic-messages",
|
|
2894
2882
|
provider: "cloudflare-ai-gateway",
|
|
2895
2883
|
baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",
|
|
2884
|
+
compat: { "forceAdaptiveThinking": true },
|
|
2896
2885
|
reasoning: true,
|
|
2897
2886
|
input: ["text", "image"],
|
|
2898
2887
|
cost: {
|
|
@@ -3777,6 +3766,7 @@ export const MODELS = {
|
|
|
3777
3766
|
provider: "github-copilot",
|
|
3778
3767
|
baseUrl: "https://api.individual.githubcopilot.com",
|
|
3779
3768
|
headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
|
|
3769
|
+
compat: { "forceAdaptiveThinking": true },
|
|
3780
3770
|
reasoning: true,
|
|
3781
3771
|
thinkingLevelMap: { "xhigh": "max" },
|
|
3782
3772
|
input: ["text", "image"],
|
|
@@ -3796,6 +3786,7 @@ export const MODELS = {
|
|
|
3796
3786
|
provider: "github-copilot",
|
|
3797
3787
|
baseUrl: "https://api.individual.githubcopilot.com",
|
|
3798
3788
|
headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
|
|
3789
|
+
compat: { "forceAdaptiveThinking": true },
|
|
3799
3790
|
reasoning: true,
|
|
3800
3791
|
thinkingLevelMap: { "xhigh": "xhigh" },
|
|
3801
3792
|
input: ["text", "image"],
|
|
@@ -3834,6 +3825,7 @@ export const MODELS = {
|
|
|
3834
3825
|
provider: "github-copilot",
|
|
3835
3826
|
baseUrl: "https://api.individual.githubcopilot.com",
|
|
3836
3827
|
headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
|
|
3828
|
+
compat: { "forceAdaptiveThinking": true },
|
|
3837
3829
|
reasoning: true,
|
|
3838
3830
|
input: ["text", "image"],
|
|
3839
3831
|
cost: {
|
|
@@ -4838,7 +4830,7 @@ export const MODELS = {
|
|
|
4838
4830
|
cost: {
|
|
4839
4831
|
input: 1,
|
|
4840
4832
|
output: 3,
|
|
4841
|
-
cacheRead: 0,
|
|
4833
|
+
cacheRead: 0.5,
|
|
4842
4834
|
cacheWrite: 0,
|
|
4843
4835
|
},
|
|
4844
4836
|
contextWindow: 262144,
|
|
@@ -4855,7 +4847,7 @@ export const MODELS = {
|
|
|
4855
4847
|
cost: {
|
|
4856
4848
|
input: 0.15,
|
|
4857
4849
|
output: 0.6,
|
|
4858
|
-
cacheRead: 0,
|
|
4850
|
+
cacheRead: 0.075,
|
|
4859
4851
|
cacheWrite: 0,
|
|
4860
4852
|
},
|
|
4861
4853
|
contextWindow: 131072,
|
|
@@ -4872,7 +4864,7 @@ export const MODELS = {
|
|
|
4872
4864
|
cost: {
|
|
4873
4865
|
input: 0.075,
|
|
4874
4866
|
output: 0.3,
|
|
4875
|
-
cacheRead: 0,
|
|
4867
|
+
cacheRead: 0.0375,
|
|
4876
4868
|
cacheWrite: 0,
|
|
4877
4869
|
},
|
|
4878
4870
|
contextWindow: 131072,
|
|
@@ -6253,7 +6245,7 @@ export const MODELS = {
|
|
|
6253
6245
|
cost: {
|
|
6254
6246
|
input: 0.1,
|
|
6255
6247
|
output: 0.4,
|
|
6256
|
-
cacheRead: 0.
|
|
6248
|
+
cacheRead: 0.025,
|
|
6257
6249
|
cacheWrite: 0,
|
|
6258
6250
|
},
|
|
6259
6251
|
contextWindow: 1047576,
|
|
@@ -6338,7 +6330,7 @@ export const MODELS = {
|
|
|
6338
6330
|
cost: {
|
|
6339
6331
|
input: 0.15,
|
|
6340
6332
|
output: 0.6,
|
|
6341
|
-
cacheRead: 0.
|
|
6333
|
+
cacheRead: 0.075,
|
|
6342
6334
|
cacheWrite: 0,
|
|
6343
6335
|
},
|
|
6344
6336
|
contextWindow: 128000,
|
|
@@ -6464,7 +6456,7 @@ export const MODELS = {
|
|
|
6464
6456
|
cost: {
|
|
6465
6457
|
input: 1.25,
|
|
6466
6458
|
output: 10,
|
|
6467
|
-
cacheRead: 0.
|
|
6459
|
+
cacheRead: 0.125,
|
|
6468
6460
|
cacheWrite: 0,
|
|
6469
6461
|
},
|
|
6470
6462
|
contextWindow: 400000,
|
|
@@ -6889,7 +6881,7 @@ export const MODELS = {
|
|
|
6889
6881
|
cost: {
|
|
6890
6882
|
input: 1.1,
|
|
6891
6883
|
output: 4.4,
|
|
6892
|
-
cacheRead: 0.
|
|
6884
|
+
cacheRead: 0.275,
|
|
6893
6885
|
cacheWrite: 0,
|
|
6894
6886
|
},
|
|
6895
6887
|
contextWindow: 200000,
|
|
@@ -6965,7 +6957,7 @@ export const MODELS = {
|
|
|
6965
6957
|
cacheRead: 0.175,
|
|
6966
6958
|
cacheWrite: 0,
|
|
6967
6959
|
},
|
|
6968
|
-
contextWindow:
|
|
6960
|
+
contextWindow: 128000,
|
|
6969
6961
|
maxTokens: 128000,
|
|
6970
6962
|
},
|
|
6971
6963
|
"gpt-5.4": {
|
|
@@ -7098,6 +7090,7 @@ export const MODELS = {
|
|
|
7098
7090
|
api: "anthropic-messages",
|
|
7099
7091
|
provider: "opencode",
|
|
7100
7092
|
baseUrl: "https://opencode.ai/zen",
|
|
7093
|
+
compat: { "forceAdaptiveThinking": true },
|
|
7101
7094
|
reasoning: true,
|
|
7102
7095
|
thinkingLevelMap: { "xhigh": "max" },
|
|
7103
7096
|
input: ["text", "image"],
|
|
@@ -7116,6 +7109,7 @@ export const MODELS = {
|
|
|
7116
7109
|
api: "anthropic-messages",
|
|
7117
7110
|
provider: "opencode",
|
|
7118
7111
|
baseUrl: "https://opencode.ai/zen",
|
|
7112
|
+
compat: { "forceAdaptiveThinking": true },
|
|
7119
7113
|
reasoning: true,
|
|
7120
7114
|
thinkingLevelMap: { "xhigh": "xhigh" },
|
|
7121
7115
|
input: ["text", "image"],
|
|
@@ -7168,6 +7162,7 @@ export const MODELS = {
|
|
|
7168
7162
|
api: "anthropic-messages",
|
|
7169
7163
|
provider: "opencode",
|
|
7170
7164
|
baseUrl: "https://opencode.ai/zen",
|
|
7165
|
+
compat: { "forceAdaptiveThinking": true },
|
|
7171
7166
|
reasoning: true,
|
|
7172
7167
|
input: ["text", "image"],
|
|
7173
7168
|
cost: {
|
|
@@ -7827,9 +7822,9 @@ export const MODELS = {
|
|
|
7827
7822
|
reasoning: true,
|
|
7828
7823
|
input: ["text", "image"],
|
|
7829
7824
|
cost: {
|
|
7830
|
-
input: 0.
|
|
7831
|
-
output:
|
|
7832
|
-
cacheRead: 0.
|
|
7825
|
+
input: 0.14,
|
|
7826
|
+
output: 0.28,
|
|
7827
|
+
cacheRead: 0.0028,
|
|
7833
7828
|
cacheWrite: 0,
|
|
7834
7829
|
},
|
|
7835
7830
|
contextWindow: 1000000,
|
|
@@ -7844,9 +7839,9 @@ export const MODELS = {
|
|
|
7844
7839
|
reasoning: true,
|
|
7845
7840
|
input: ["text"],
|
|
7846
7841
|
cost: {
|
|
7847
|
-
input: 1,
|
|
7848
|
-
output: 3,
|
|
7849
|
-
cacheRead: 0.
|
|
7842
|
+
input: 1.74,
|
|
7843
|
+
output: 3.48,
|
|
7844
|
+
cacheRead: 0.0145,
|
|
7850
7845
|
cacheWrite: 0,
|
|
7851
7846
|
},
|
|
7852
7847
|
contextWindow: 1048576,
|
|
@@ -7922,6 +7917,23 @@ export const MODELS = {
|
|
|
7922
7917
|
contextWindow: 262144,
|
|
7923
7918
|
maxTokens: 65536,
|
|
7924
7919
|
},
|
|
7920
|
+
"qwen3.7-max": {
|
|
7921
|
+
id: "qwen3.7-max",
|
|
7922
|
+
name: "Qwen3.7 Max",
|
|
7923
|
+
api: "anthropic-messages",
|
|
7924
|
+
provider: "opencode-go",
|
|
7925
|
+
baseUrl: "https://opencode.ai/zen/go",
|
|
7926
|
+
reasoning: true,
|
|
7927
|
+
input: ["text"],
|
|
7928
|
+
cost: {
|
|
7929
|
+
input: 2.5,
|
|
7930
|
+
output: 7.5,
|
|
7931
|
+
cacheRead: 0.5,
|
|
7932
|
+
cacheWrite: 3.125,
|
|
7933
|
+
},
|
|
7934
|
+
contextWindow: 1000000,
|
|
7935
|
+
maxTokens: 65536,
|
|
7936
|
+
},
|
|
7925
7937
|
},
|
|
7926
7938
|
"openrouter": {
|
|
7927
7939
|
"ai21/jamba-large-1.7": {
|
|
@@ -8268,23 +8280,6 @@ export const MODELS = {
|
|
|
8268
8280
|
contextWindow: 262144,
|
|
8269
8281
|
maxTokens: 262144,
|
|
8270
8282
|
},
|
|
8271
|
-
"arcee-ai/trinity-large-thinking:free": {
|
|
8272
|
-
id: "arcee-ai/trinity-large-thinking:free",
|
|
8273
|
-
name: "Arcee AI: Trinity Large Thinking (free)",
|
|
8274
|
-
api: "openai-completions",
|
|
8275
|
-
provider: "openrouter",
|
|
8276
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
8277
|
-
reasoning: true,
|
|
8278
|
-
input: ["text"],
|
|
8279
|
-
cost: {
|
|
8280
|
-
input: 0,
|
|
8281
|
-
output: 0,
|
|
8282
|
-
cacheRead: 0,
|
|
8283
|
-
cacheWrite: 0,
|
|
8284
|
-
},
|
|
8285
|
-
contextWindow: 262144,
|
|
8286
|
-
maxTokens: 80000,
|
|
8287
|
-
},
|
|
8288
8283
|
"arcee-ai/trinity-mini": {
|
|
8289
8284
|
id: "arcee-ai/trinity-mini",
|
|
8290
8285
|
name: "Arcee AI: Trinity Mini",
|
|
@@ -8336,23 +8331,6 @@ export const MODELS = {
|
|
|
8336
8331
|
contextWindow: 2000000,
|
|
8337
8332
|
maxTokens: 30000,
|
|
8338
8333
|
},
|
|
8339
|
-
"baidu/cobuddy:free": {
|
|
8340
|
-
id: "baidu/cobuddy:free",
|
|
8341
|
-
name: "Baidu Qianfan: CoBuddy (free)",
|
|
8342
|
-
api: "openai-completions",
|
|
8343
|
-
provider: "openrouter",
|
|
8344
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
8345
|
-
reasoning: true,
|
|
8346
|
-
input: ["text"],
|
|
8347
|
-
cost: {
|
|
8348
|
-
input: 0,
|
|
8349
|
-
output: 0,
|
|
8350
|
-
cacheRead: 0,
|
|
8351
|
-
cacheWrite: 0,
|
|
8352
|
-
},
|
|
8353
|
-
contextWindow: 131072,
|
|
8354
|
-
maxTokens: 65536,
|
|
8355
|
-
},
|
|
8356
8334
|
"baidu/ernie-4.5-21b-a3b": {
|
|
8357
8335
|
id: "baidu/ernie-4.5-21b-a3b",
|
|
8358
8336
|
name: "Baidu: ERNIE 4.5 21B A3B",
|
|
@@ -10360,11 +10338,11 @@ export const MODELS = {
|
|
|
10360
10338
|
cost: {
|
|
10361
10339
|
input: 1.25,
|
|
10362
10340
|
output: 10,
|
|
10363
|
-
cacheRead: 0.
|
|
10341
|
+
cacheRead: 0.13,
|
|
10364
10342
|
cacheWrite: 0,
|
|
10365
10343
|
},
|
|
10366
10344
|
contextWindow: 128000,
|
|
10367
|
-
maxTokens:
|
|
10345
|
+
maxTokens: 32000,
|
|
10368
10346
|
},
|
|
10369
10347
|
"openai/gpt-5.1-codex": {
|
|
10370
10348
|
id: "openai/gpt-5.1-codex",
|
|
@@ -10377,7 +10355,7 @@ export const MODELS = {
|
|
|
10377
10355
|
cost: {
|
|
10378
10356
|
input: 1.25,
|
|
10379
10357
|
output: 10,
|
|
10380
|
-
cacheRead: 0.
|
|
10358
|
+
cacheRead: 0.13,
|
|
10381
10359
|
cacheWrite: 0,
|
|
10382
10360
|
},
|
|
10383
10361
|
contextWindow: 400000,
|
|
@@ -10411,11 +10389,11 @@ export const MODELS = {
|
|
|
10411
10389
|
cost: {
|
|
10412
10390
|
input: 0.25,
|
|
10413
10391
|
output: 2,
|
|
10414
|
-
cacheRead: 0.
|
|
10392
|
+
cacheRead: 0.024999999999999998,
|
|
10415
10393
|
cacheWrite: 0,
|
|
10416
10394
|
},
|
|
10417
10395
|
contextWindow: 400000,
|
|
10418
|
-
maxTokens:
|
|
10396
|
+
maxTokens: 100000,
|
|
10419
10397
|
},
|
|
10420
10398
|
"openai/gpt-5.2": {
|
|
10421
10399
|
id: "openai/gpt-5.2",
|
|
@@ -10451,7 +10429,7 @@ export const MODELS = {
|
|
|
10451
10429
|
cacheWrite: 0,
|
|
10452
10430
|
},
|
|
10453
10431
|
contextWindow: 128000,
|
|
10454
|
-
maxTokens:
|
|
10432
|
+
maxTokens: 16384,
|
|
10455
10433
|
},
|
|
10456
10434
|
"openai/gpt-5.2-codex": {
|
|
10457
10435
|
id: "openai/gpt-5.2-codex",
|
|
@@ -10987,8 +10965,8 @@ export const MODELS = {
|
|
|
10987
10965
|
cacheRead: 0,
|
|
10988
10966
|
cacheWrite: 0,
|
|
10989
10967
|
},
|
|
10990
|
-
contextWindow:
|
|
10991
|
-
maxTokens:
|
|
10968
|
+
contextWindow: 262144,
|
|
10969
|
+
maxTokens: 32768,
|
|
10992
10970
|
},
|
|
10993
10971
|
"poolside/laguna-xs.2:free": {
|
|
10994
10972
|
id: "poolside/laguna-xs.2:free",
|
|
@@ -11004,8 +10982,8 @@ export const MODELS = {
|
|
|
11004
10982
|
cacheRead: 0,
|
|
11005
10983
|
cacheWrite: 0,
|
|
11006
10984
|
},
|
|
11007
|
-
contextWindow:
|
|
11008
|
-
maxTokens:
|
|
10985
|
+
contextWindow: 262144,
|
|
10986
|
+
maxTokens: 32768,
|
|
11009
10987
|
},
|
|
11010
10988
|
"prime-intellect/intellect-3": {
|
|
11011
10989
|
id: "prime-intellect/intellect-3",
|
|
@@ -11087,7 +11065,7 @@ export const MODELS = {
|
|
|
11087
11065
|
input: 0.26,
|
|
11088
11066
|
output: 0.78,
|
|
11089
11067
|
cacheRead: 0,
|
|
11090
|
-
cacheWrite: 0
|
|
11068
|
+
cacheWrite: 0,
|
|
11091
11069
|
},
|
|
11092
11070
|
contextWindow: 1000000,
|
|
11093
11071
|
maxTokens: 32768,
|
|
@@ -11665,7 +11643,7 @@ export const MODELS = {
|
|
|
11665
11643
|
input: 0.065,
|
|
11666
11644
|
output: 0.26,
|
|
11667
11645
|
cacheRead: 0,
|
|
11668
|
-
cacheWrite: 0
|
|
11646
|
+
cacheWrite: 0,
|
|
11669
11647
|
},
|
|
11670
11648
|
contextWindow: 1000000,
|
|
11671
11649
|
maxTokens: 65536,
|
|
@@ -11682,7 +11660,7 @@ export const MODELS = {
|
|
|
11682
11660
|
input: 0.26,
|
|
11683
11661
|
output: 1.56,
|
|
11684
11662
|
cacheRead: 0,
|
|
11685
|
-
cacheWrite: 0
|
|
11663
|
+
cacheWrite: 0,
|
|
11686
11664
|
},
|
|
11687
11665
|
contextWindow: 1000000,
|
|
11688
11666
|
maxTokens: 65536,
|
|
@@ -11699,7 +11677,7 @@ export const MODELS = {
|
|
|
11699
11677
|
input: 0.3,
|
|
11700
11678
|
output: 1.7999999999999998,
|
|
11701
11679
|
cacheRead: 0,
|
|
11702
|
-
cacheWrite: 0,
|
|
11680
|
+
cacheWrite: 0.375,
|
|
11703
11681
|
},
|
|
11704
11682
|
contextWindow: 1000000,
|
|
11705
11683
|
maxTokens: 65536,
|
|
@@ -11713,13 +11691,13 @@ export const MODELS = {
|
|
|
11713
11691
|
reasoning: true,
|
|
11714
11692
|
input: ["text", "image"],
|
|
11715
11693
|
cost: {
|
|
11716
|
-
input: 0.
|
|
11694
|
+
input: 0.29,
|
|
11717
11695
|
output: 3.1999999999999997,
|
|
11718
11696
|
cacheRead: 0,
|
|
11719
11697
|
cacheWrite: 0,
|
|
11720
11698
|
},
|
|
11721
11699
|
contextWindow: 262144,
|
|
11722
|
-
maxTokens:
|
|
11700
|
+
maxTokens: 262140,
|
|
11723
11701
|
},
|
|
11724
11702
|
"qwen/qwen3.6-35b-a3b": {
|
|
11725
11703
|
id: "qwen/qwen3.6-35b-a3b",
|
|
@@ -11730,7 +11708,7 @@ export const MODELS = {
|
|
|
11730
11708
|
reasoning: true,
|
|
11731
11709
|
input: ["text", "image"],
|
|
11732
11710
|
cost: {
|
|
11733
|
-
input: 0.
|
|
11711
|
+
input: 0.14,
|
|
11734
11712
|
output: 1,
|
|
11735
11713
|
cacheRead: 0,
|
|
11736
11714
|
cacheWrite: 0,
|
|
@@ -11798,10 +11776,10 @@ export const MODELS = {
|
|
|
11798
11776
|
reasoning: true,
|
|
11799
11777
|
input: ["text"],
|
|
11800
11778
|
cost: {
|
|
11801
|
-
input:
|
|
11802
|
-
output:
|
|
11803
|
-
cacheRead: 0,
|
|
11804
|
-
cacheWrite:
|
|
11779
|
+
input: 1.25,
|
|
11780
|
+
output: 3.75,
|
|
11781
|
+
cacheRead: 0.25,
|
|
11782
|
+
cacheWrite: 1.5625,
|
|
11805
11783
|
},
|
|
11806
11784
|
contextWindow: 1000000,
|
|
11807
11785
|
maxTokens: 65536,
|
|
@@ -12070,9 +12048,9 @@ export const MODELS = {
|
|
|
12070
12048
|
reasoning: true,
|
|
12071
12049
|
input: ["text", "image"],
|
|
12072
12050
|
cost: {
|
|
12073
|
-
input: 0.
|
|
12074
|
-
output:
|
|
12075
|
-
cacheRead: 0.
|
|
12051
|
+
input: 0.14,
|
|
12052
|
+
output: 0.28,
|
|
12053
|
+
cacheRead: 0.0028,
|
|
12076
12054
|
cacheWrite: 0,
|
|
12077
12055
|
},
|
|
12078
12056
|
contextWindow: 1048576,
|
|
@@ -12087,13 +12065,13 @@ export const MODELS = {
|
|
|
12087
12065
|
reasoning: true,
|
|
12088
12066
|
input: ["text"],
|
|
12089
12067
|
cost: {
|
|
12090
|
-
input:
|
|
12091
|
-
output:
|
|
12092
|
-
cacheRead: 0.
|
|
12068
|
+
input: 0.435,
|
|
12069
|
+
output: 0.87,
|
|
12070
|
+
cacheRead: 0.0036,
|
|
12093
12071
|
cacheWrite: 0,
|
|
12094
12072
|
},
|
|
12095
12073
|
contextWindow: 1048576,
|
|
12096
|
-
maxTokens:
|
|
12074
|
+
maxTokens: 131072,
|
|
12097
12075
|
},
|
|
12098
12076
|
"z-ai/glm-4-32b": {
|
|
12099
12077
|
id: "z-ai/glm-4-32b",
|
|
@@ -12138,13 +12116,13 @@ export const MODELS = {
|
|
|
12138
12116
|
reasoning: true,
|
|
12139
12117
|
input: ["text"],
|
|
12140
12118
|
cost: {
|
|
12141
|
-
input: 0.
|
|
12142
|
-
output: 0.
|
|
12143
|
-
cacheRead: 0
|
|
12119
|
+
input: 0.125,
|
|
12120
|
+
output: 0.84,
|
|
12121
|
+
cacheRead: 0,
|
|
12144
12122
|
cacheWrite: 0,
|
|
12145
12123
|
},
|
|
12146
12124
|
contextWindow: 131072,
|
|
12147
|
-
maxTokens:
|
|
12125
|
+
maxTokens: 131070,
|
|
12148
12126
|
},
|
|
12149
12127
|
"z-ai/glm-4.5-air:free": {
|
|
12150
12128
|
id: "z-ai/glm-4.5-air:free",
|
|
@@ -13226,6 +13204,7 @@ export const MODELS = {
|
|
|
13226
13204
|
api: "anthropic-messages",
|
|
13227
13205
|
provider: "vercel-ai-gateway",
|
|
13228
13206
|
baseUrl: "https://ai-gateway.vercel.sh",
|
|
13207
|
+
compat: { "forceAdaptiveThinking": true },
|
|
13229
13208
|
reasoning: true,
|
|
13230
13209
|
thinkingLevelMap: { "xhigh": "max" },
|
|
13231
13210
|
input: ["text", "image"],
|
|
@@ -13244,6 +13223,7 @@ export const MODELS = {
|
|
|
13244
13223
|
api: "anthropic-messages",
|
|
13245
13224
|
provider: "vercel-ai-gateway",
|
|
13246
13225
|
baseUrl: "https://ai-gateway.vercel.sh",
|
|
13226
|
+
compat: { "forceAdaptiveThinking": true },
|
|
13247
13227
|
reasoning: true,
|
|
13248
13228
|
thinkingLevelMap: { "xhigh": "xhigh" },
|
|
13249
13229
|
input: ["text", "image"],
|
|
@@ -13296,6 +13276,7 @@ export const MODELS = {
|
|
|
13296
13276
|
api: "anthropic-messages",
|
|
13297
13277
|
provider: "vercel-ai-gateway",
|
|
13298
13278
|
baseUrl: "https://ai-gateway.vercel.sh",
|
|
13279
|
+
compat: { "forceAdaptiveThinking": true },
|
|
13299
13280
|
reasoning: true,
|
|
13300
13281
|
input: ["text", "image"],
|
|
13301
13282
|
cost: {
|
|
@@ -15249,9 +15230,9 @@ export const MODELS = {
|
|
|
15249
15230
|
reasoning: true,
|
|
15250
15231
|
input: ["text", "image"],
|
|
15251
15232
|
cost: {
|
|
15252
|
-
input: 0.
|
|
15253
|
-
output:
|
|
15254
|
-
cacheRead: 0.
|
|
15233
|
+
input: 0.14,
|
|
15234
|
+
output: 0.28,
|
|
15235
|
+
cacheRead: 0.0028,
|
|
15255
15236
|
cacheWrite: 0,
|
|
15256
15237
|
},
|
|
15257
15238
|
contextWindow: 1050000,
|
|
@@ -15266,9 +15247,9 @@ export const MODELS = {
|
|
|
15266
15247
|
reasoning: true,
|
|
15267
15248
|
input: ["text", "image"],
|
|
15268
15249
|
cost: {
|
|
15269
|
-
input:
|
|
15270
|
-
output:
|
|
15271
|
-
cacheRead: 0.
|
|
15250
|
+
input: 0.435,
|
|
15251
|
+
output: 0.87,
|
|
15252
|
+
cacheRead: 0.0036,
|
|
15272
15253
|
cacheWrite: 0,
|
|
15273
15254
|
},
|
|
15274
15255
|
contextWindow: 1050000,
|
|
@@ -90,12 +90,13 @@ export const streamBedrock = (model, context, options = {}) => {
|
|
|
90
90
|
try {
|
|
91
91
|
const client = new BedrockRuntimeClient(config);
|
|
92
92
|
const cacheRetention = resolveCacheRetention(options.cacheRetention);
|
|
93
|
+
const inferenceMaxTokens = options.maxTokens ?? (isAnthropicClaudeModel(model) ? model.maxTokens : undefined);
|
|
93
94
|
let commandInput = {
|
|
94
95
|
modelId: model.id,
|
|
95
96
|
messages: convertMessages(context, model, cacheRetention),
|
|
96
97
|
system: buildSystemPrompt(context.systemPrompt, model, cacheRetention),
|
|
97
98
|
inferenceConfig: {
|
|
98
|
-
...(
|
|
99
|
+
...(inferenceMaxTokens !== undefined && { maxTokens: inferenceMaxTokens }),
|
|
99
100
|
...(options.temperature !== undefined && { temperature: options.temperature }),
|
|
100
101
|
},
|
|
101
102
|
toolConfig: convertToolConfig(context.tools, options.toolChoice),
|
|
@@ -329,7 +329,7 @@ export const streamAnthropic = (model, context, options) => {
|
|
|
329
329
|
const requestOptions = {
|
|
330
330
|
...(options?.signal ? { signal: options.signal } : {}),
|
|
331
331
|
...(options?.timeoutMs !== undefined ? { timeout: options.timeoutMs } : {}),
|
|
332
|
-
|
|
332
|
+
maxRetries: options?.maxRetries ?? 0,
|
|
333
333
|
};
|
|
334
334
|
const response = await client.messages.create({ ...params, stream: true }, requestOptions).asResponse();
|
|
335
335
|
await options?.onResponse?.({ status: response.status, headers: headersToRecord(response.headers) }, model);
|
|
@@ -527,18 +527,6 @@ export const streamAnthropic = (model, context, options) => {
|
|
|
527
527
|
})();
|
|
528
528
|
return stream;
|
|
529
529
|
};
|
|
530
|
-
/**
|
|
531
|
-
* Check if a model supports adaptive thinking (Opus 4.6+, Sonnet 4.6)
|
|
532
|
-
*/
|
|
533
|
-
function supportsAdaptiveThinking(modelId) {
|
|
534
|
-
// Adaptive-thinking model IDs (with or without date suffix)
|
|
535
|
-
return (modelId.includes("opus-4-6") ||
|
|
536
|
-
modelId.includes("opus-4.6") ||
|
|
537
|
-
modelId.includes("opus-4-7") ||
|
|
538
|
-
modelId.includes("opus-4.7") ||
|
|
539
|
-
modelId.includes("sonnet-4-6") ||
|
|
540
|
-
modelId.includes("sonnet-4.6"));
|
|
541
|
-
}
|
|
542
530
|
/**
|
|
543
531
|
* Map ThinkingLevel to Anthropic effort levels for adaptive thinking.
|
|
544
532
|
* Note: effort "max" is only valid on Opus 4.6, while Opus 4.7 supports "xhigh".
|
|
@@ -568,9 +556,9 @@ export const streamSimpleAnthropic = (model, context, options) => {
|
|
|
568
556
|
if (!options?.reasoning) {
|
|
569
557
|
return streamAnthropic(model, context, { ...base, thinkingEnabled: false });
|
|
570
558
|
}
|
|
571
|
-
// For
|
|
572
|
-
// For older models: use budget-based thinking
|
|
573
|
-
if (
|
|
559
|
+
// For models with adaptive thinking: use an effort level.
|
|
560
|
+
// For older models: use budget-based thinking.
|
|
561
|
+
if (model.compat?.forceAdaptiveThinking === true) {
|
|
574
562
|
const effort = mapThinkingLevelToEffort(model, options.reasoning);
|
|
575
563
|
return streamAnthropic(model, context, {
|
|
576
564
|
...base,
|
|
@@ -592,9 +580,8 @@ function isOAuthToken(apiKey) {
|
|
|
592
580
|
return apiKey.includes("sk-ant-oat");
|
|
593
581
|
}
|
|
594
582
|
function createClient(model, apiKey, interleavedThinking, useFineGrainedToolStreamingBeta, optionsHeaders, dynamicHeaders, sessionId) {
|
|
595
|
-
// Adaptive thinking models
|
|
596
|
-
|
|
597
|
-
const needsInterleavedBeta = interleavedThinking && !supportsAdaptiveThinking(model.id);
|
|
583
|
+
// Adaptive thinking models have interleaved thinking built in, so skip the beta header.
|
|
584
|
+
const needsInterleavedBeta = interleavedThinking && model.compat?.forceAdaptiveThinking !== true;
|
|
598
585
|
const betaFeatures = [];
|
|
599
586
|
if (useFineGrainedToolStreamingBeta) {
|
|
600
587
|
betaFeatures.push(FINE_GRAINED_TOOL_STREAMING_BETA);
|
|
@@ -709,14 +696,13 @@ function buildParams(model, context, isOAuthToken, options) {
|
|
|
709
696
|
const compat = getAnthropicCompat(model);
|
|
710
697
|
params.tools = convertTools(context.tools, isOAuthToken, compat.supportsEagerToolInputStreaming, compat.supportsCacheControlOnTools ? cacheControl : undefined);
|
|
711
698
|
}
|
|
712
|
-
// Configure thinking mode: adaptive
|
|
713
|
-
// budget-based (older models), or explicitly disabled.
|
|
699
|
+
// Configure thinking mode: adaptive, budget-based, or explicitly disabled.
|
|
714
700
|
if (model.reasoning) {
|
|
715
701
|
if (options?.thinkingEnabled) {
|
|
716
702
|
// Default to "summarized" so Opus 4.7 and Mythos Preview behave like
|
|
717
703
|
// older Claude 4 models (whose API default is also "summarized").
|
|
718
704
|
const display = options.thinkingDisplay ?? "summarized";
|
|
719
|
-
if (
|
|
705
|
+
if (model.compat?.forceAdaptiveThinking === true) {
|
|
720
706
|
// Adaptive thinking: Claude decides when and how much to think.
|
|
721
707
|
params.thinking = { type: "adaptive", display };
|
|
722
708
|
if (options.effort) {
|
|
@@ -83,7 +83,7 @@ export const streamAzureOpenAIResponses = (model, context, options) => {
|
|
|
83
83
|
const requestOptions = {
|
|
84
84
|
...(options?.signal ? { signal: options.signal } : {}),
|
|
85
85
|
...(options?.timeoutMs !== undefined ? { timeout: options.timeoutMs } : {}),
|
|
86
|
-
|
|
86
|
+
maxRetries: options?.maxRetries ?? 0,
|
|
87
87
|
};
|
|
88
88
|
const { data: openaiStream, response } = await client.responses.create(params, requestOptions).withResponse();
|
|
89
89
|
await options?.onResponse?.({ status: response.status, headers: headersToRecord(response.headers) }, model);
|
|
@@ -25,7 +25,7 @@ export const generateImagesOpenRouter = async (model, context, options) => {
|
|
|
25
25
|
const requestOptions = {
|
|
26
26
|
...(options?.signal ? { signal: options.signal } : {}),
|
|
27
27
|
...(options?.timeoutMs !== undefined ? { timeout: options.timeoutMs } : {}),
|
|
28
|
-
|
|
28
|
+
maxRetries: options?.maxRetries ?? 0,
|
|
29
29
|
};
|
|
30
30
|
const { data: response, response: rawResponse } = await client.chat.completions
|
|
31
31
|
.create(params, requestOptions)
|