pi-oxidized 0.1.1
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/.agent-tasks/pi-rust-rewrite/Cargo.lock +5022 -0
- package/.agent-tasks/pi-rust-rewrite/Cargo.toml +22 -0
- package/.agent-tasks/pi-rust-rewrite/GOALS.md +1 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/branch_summary.json +8 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/changelog.md +16 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/debug_dump.txt +11 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/events.jsonl +6 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/legacy_auth_migration.json +16 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/selector_snapshot.txt +9 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/session_stats.json +16 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/goldens/share_result.json +7 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/phase7/sessions/export-roundtrip.jsonl +6 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/provider-drain/isolation-expectations.json +21 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/rpc/commands.json +238 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/rpc/host-state.json +128 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/rpc/ts-goldens.json +1 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/rpc/ts-replay.ts +317 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v1/linear-with-compaction.expected.json +576 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v1/linear-with-compaction.jsonl +12 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v2/branched.expected.json +387 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v2/branched.jsonl +8 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/basic.expected.json +256 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/basic.jsonl +5 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/branched-labels.expected.json +474 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/branched-labels.jsonl +13 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/branched-session.expected.json +352 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/branched-session.jsonl +9 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/compacted-twice.expected.json +590 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/compacted-twice.jsonl +13 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/custom-messages.expected.json +400 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/custom-messages.jsonl +8 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/forked-header.expected.json +257 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/forked-header.jsonl +5 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/unknown-entries.expected.json +297 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/sessions/v3/unknown-entries.jsonl +6 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/bash.json +16 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/edit.json +34 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/find.json +20 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/grep.json +36 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/ls.json +13 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/read.json +20 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tool-schemas/write.json +17 -0
- package/.agent-tasks/pi-rust-rewrite/fixtures/tools/edit-cases.json +93 -0
- package/.agent-tasks/pi-rust-rewrite/helpers/reopen_session.ts +168 -0
- package/.agent-tasks/pi-rust-rewrite/src/lib.rs +13 -0
- package/.agent-tasks/pi-rust-rewrite/tests/phase7_fixtures.rs +742 -0
- package/.agent-tasks/pi-rust-rewrite/tests/pi_ai_contract.rs +101 -0
- package/.agent-tasks/pi-rust-rewrite/tests/provider_drain_isolation.rs +760 -0
- package/.agent-tasks/pi-rust-rewrite/tests/rpc_parity.rs +679 -0
- package/.agent-tasks/pi-rust-rewrite/tests/session_compat.rs +839 -0
- package/.agent-tasks/pi-rust-rewrite/tests/tool_parity.rs +761 -0
- package/.github/workflows/release-verification.yml +204 -0
- package/.gitmodules +5 -0
- package/.outline/audit/coverage.json +3262 -0
- package/.outline/audit/queue.json +4841 -0
- package/.outline/review-fix-grill/iterations/1.json +767 -0
- package/.outline/review-fix-grill/iterations/2.json +69 -0
- package/.outline/review-fix-grill/iterations/3.json +81 -0
- package/.outline/review-fix-grill/iterations/4.json +35 -0
- package/.outline/review-fix-grill/iterations/5.json +21 -0
- package/.outline/review-fix-grill/queue.json +6454 -0
- package/.references/pi/.gitattributes +23 -0
- package/.references/pi/.github/APPROVED_CONTRIBUTORS +281 -0
- package/.references/pi/.github/ISSUE_TEMPLATE/bug.yml +45 -0
- package/.references/pi/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.references/pi/.github/ISSUE_TEMPLATE/contribution.yml +36 -0
- package/.references/pi/.github/ISSUE_TEMPLATE/package-report.yml +49 -0
- package/.references/pi/.github/workflows/approve-contributor.yml +179 -0
- package/.references/pi/.github/workflows/build-binaries.yml +294 -0
- package/.references/pi/.github/workflows/ci.yml +42 -0
- package/.references/pi/.github/workflows/issue-analysis.yml +634 -0
- package/.references/pi/.github/workflows/issue-gate.yml +129 -0
- package/.references/pi/.github/workflows/issue-triage-labels.yml +142 -0
- package/.references/pi/.github/workflows/npm-audit.yml +31 -0
- package/.references/pi/.github/workflows/pr-gate.yml +128 -0
- package/.references/pi/.github/workflows/publish-model-catalog.yml +112 -0
- package/.references/pi/.github/workflows/remove-inprogress-on-close.yml +31 -0
- package/.references/pi/.husky/pre-commit +45 -0
- package/.references/pi/.pi/extensions/import-repro.ts +351 -0
- package/.references/pi/.pi/extensions/prompt-url-widget.ts +270 -0
- package/.references/pi/.pi/extensions/redraws.ts +24 -0
- package/.references/pi/.pi/extensions/tps.ts +47 -0
- package/.references/pi/.pi/git/.gitignore +2 -0
- package/.references/pi/.pi/npm/.gitignore +2 -0
- package/.references/pi/.pi/prompts/cl.md +54 -0
- package/.references/pi/.pi/prompts/is.md +28 -0
- package/.references/pi/.pi/prompts/pr.md +37 -0
- package/.references/pi/.pi/prompts/sa.md +163 -0
- package/.references/pi/.pi/prompts/wr.md +40 -0
- package/.references/pi/.pi/skills/add-llm-provider.md +57 -0
- package/.references/pi/AGENTS.md +162 -0
- package/.references/pi/CONTRIBUTING.md +102 -0
- package/.references/pi/LICENSE +21 -0
- package/.references/pi/README.md +99 -0
- package/.references/pi/SECURITY.md +87 -0
- package/.references/pi/biome.json +39 -0
- package/.references/pi/bun.lock +961 -0
- package/.references/pi/package-lock.json +6172 -0
- package/.references/pi/package.json +66 -0
- package/.references/pi/packages/agent/CHANGELOG.md +594 -0
- package/.references/pi/packages/agent/README.md +488 -0
- package/.references/pi/packages/agent/docs/agent-harness.md +488 -0
- package/.references/pi/packages/agent/docs/durable-harness.md +212 -0
- package/.references/pi/packages/agent/docs/hooks.md +445 -0
- package/.references/pi/packages/agent/docs/models.md +964 -0
- package/.references/pi/packages/agent/docs/observability.md +376 -0
- package/.references/pi/packages/agent/package.json +60 -0
- package/.references/pi/packages/agent/src/agent-loop.ts +792 -0
- package/.references/pi/packages/agent/src/agent.ts +575 -0
- package/.references/pi/packages/agent/src/harness/agent-harness.ts +1029 -0
- package/.references/pi/packages/agent/src/harness/compaction/branch-summarization.ts +261 -0
- package/.references/pi/packages/agent/src/harness/compaction/compaction.ts +753 -0
- package/.references/pi/packages/agent/src/harness/compaction/utils.ts +144 -0
- package/.references/pi/packages/agent/src/harness/env/nodejs.ts +569 -0
- package/.references/pi/packages/agent/src/harness/messages.ts +164 -0
- package/.references/pi/packages/agent/src/harness/prompt-templates.ts +267 -0
- package/.references/pi/packages/agent/src/harness/session/jsonl-repo.ts +179 -0
- package/.references/pi/packages/agent/src/harness/session/jsonl-storage.ts +314 -0
- package/.references/pi/packages/agent/src/harness/session/memory-repo.ts +50 -0
- package/.references/pi/packages/agent/src/harness/session/memory-storage.ts +133 -0
- package/.references/pi/packages/agent/src/harness/session/repo-utils.ts +51 -0
- package/.references/pi/packages/agent/src/harness/session/session.ts +338 -0
- package/.references/pi/packages/agent/src/harness/session/uuid.ts +54 -0
- package/.references/pi/packages/agent/src/harness/skills.ts +375 -0
- package/.references/pi/packages/agent/src/harness/system-prompt.ts +34 -0
- package/.references/pi/packages/agent/src/harness/types.ts +838 -0
- package/.references/pi/packages/agent/src/harness/utils/shell-output.ts +135 -0
- package/.references/pi/packages/agent/src/harness/utils/truncate.ts +344 -0
- package/.references/pi/packages/agent/src/index.ts +46 -0
- package/.references/pi/packages/agent/src/node.ts +2 -0
- package/.references/pi/packages/agent/src/proxy.ts +367 -0
- package/.references/pi/packages/agent/src/types.ts +430 -0
- package/.references/pi/packages/agent/test/agent-loop.test.ts +1424 -0
- package/.references/pi/packages/agent/test/agent.test.ts +699 -0
- package/.references/pi/packages/agent/test/e2e.test.ts +404 -0
- package/.references/pi/packages/agent/test/harness/agent-harness-stream.test.ts +213 -0
- package/.references/pi/packages/agent/test/harness/agent-harness.test.ts +608 -0
- package/.references/pi/packages/agent/test/harness/compaction.test.ts +655 -0
- package/.references/pi/packages/agent/test/harness/nodejs-env.test.ts +321 -0
- package/.references/pi/packages/agent/test/harness/prompt-templates.test.ts +90 -0
- package/.references/pi/packages/agent/test/harness/repo.test.ts +92 -0
- package/.references/pi/packages/agent/test/harness/resource-formatting.test.ts +24 -0
- package/.references/pi/packages/agent/test/harness/session-test-utils.ts +55 -0
- package/.references/pi/packages/agent/test/harness/session-uuid.test.ts +50 -0
- package/.references/pi/packages/agent/test/harness/session.test.ts +203 -0
- package/.references/pi/packages/agent/test/harness/skills.test.ts +116 -0
- package/.references/pi/packages/agent/test/harness/storage.test.ts +341 -0
- package/.references/pi/packages/agent/test/harness/system-prompt.test.ts +66 -0
- package/.references/pi/packages/agent/test/harness/truncate.test.ts +169 -0
- package/.references/pi/packages/agent/test/scratch/simple.ts +72 -0
- package/.references/pi/packages/agent/test/utils/calculate.ts +32 -0
- package/.references/pi/packages/agent/test/utils/get-current-time.ts +46 -0
- package/.references/pi/packages/agent/tsconfig.build.json +13 -0
- package/.references/pi/packages/agent/vitest.config.ts +21 -0
- package/.references/pi/packages/agent/vitest.harness.config.ts +28 -0
- package/.references/pi/packages/ai/CHANGELOG.md +1739 -0
- package/.references/pi/packages/ai/README.md +1621 -0
- package/.references/pi/packages/ai/bedrock-provider.d.ts +1 -0
- package/.references/pi/packages/ai/bedrock-provider.js +1 -0
- package/.references/pi/packages/ai/package.json +97 -0
- package/.references/pi/packages/ai/scripts/generate-image-models.ts +131 -0
- package/.references/pi/packages/ai/scripts/generate-models.ts +2401 -0
- package/.references/pi/packages/ai/scripts/generate-test-image.ts +33 -0
- package/.references/pi/packages/ai/src/api/anthropic-messages.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/anthropic-messages.ts +1313 -0
- package/.references/pi/packages/ai/src/api/azure-openai-responses.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/azure-openai-responses.ts +298 -0
- package/.references/pi/packages/ai/src/api/bedrock-converse-stream.lazy.ts +30 -0
- package/.references/pi/packages/ai/src/api/bedrock-converse-stream.ts +1091 -0
- package/.references/pi/packages/ai/src/api/cloudflare.ts +15 -0
- package/.references/pi/packages/ai/src/api/github-copilot-headers.ts +37 -0
- package/.references/pi/packages/ai/src/api/google-generative-ai.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/google-generative-ai.ts +509 -0
- package/.references/pi/packages/ai/src/api/google-shared.ts +350 -0
- package/.references/pi/packages/ai/src/api/google-vertex.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/google-vertex.ts +584 -0
- package/.references/pi/packages/ai/src/api/lazy.ts +75 -0
- package/.references/pi/packages/ai/src/api/mistral-conversations.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/mistral-conversations.ts +664 -0
- package/.references/pi/packages/ai/src/api/openai-codex-responses.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/openai-codex-responses.ts +1573 -0
- package/.references/pi/packages/ai/src/api/openai-completions.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/openai-completions.ts +1355 -0
- package/.references/pi/packages/ai/src/api/openai-prompt-cache.ts +8 -0
- package/.references/pi/packages/ai/src/api/openai-responses-shared.ts +613 -0
- package/.references/pi/packages/ai/src/api/openai-responses.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/openai-responses.ts +318 -0
- package/.references/pi/packages/ai/src/api/openrouter-images.lazy.ts +10 -0
- package/.references/pi/packages/ai/src/api/openrouter-images.ts +185 -0
- package/.references/pi/packages/ai/src/api/pi-messages.lazy.ts +4 -0
- package/.references/pi/packages/ai/src/api/pi-messages.ts +436 -0
- package/.references/pi/packages/ai/src/api/simple-options.ts +77 -0
- package/.references/pi/packages/ai/src/api/transform-messages.ts +223 -0
- package/.references/pi/packages/ai/src/auth/context.ts +45 -0
- package/.references/pi/packages/ai/src/auth/credential-store.ts +51 -0
- package/.references/pi/packages/ai/src/auth/helpers.ts +47 -0
- package/.references/pi/packages/ai/src/auth/oauth/anthropic.ts +350 -0
- package/.references/pi/packages/ai/src/auth/oauth/device-code.ts +98 -0
- package/.references/pi/packages/ai/src/auth/oauth/github-copilot.ts +379 -0
- package/.references/pi/packages/ai/src/auth/oauth/load.ts +56 -0
- package/.references/pi/packages/ai/src/auth/oauth/oauth-page.ts +109 -0
- package/.references/pi/packages/ai/src/auth/oauth/openai-codex.ts +538 -0
- package/.references/pi/packages/ai/src/auth/oauth/pkce.ts +34 -0
- package/.references/pi/packages/ai/src/auth/oauth/radius.ts +410 -0
- package/.references/pi/packages/ai/src/auth/oauth/xai.ts +238 -0
- package/.references/pi/packages/ai/src/auth/resolve.ts +139 -0
- package/.references/pi/packages/ai/src/auth/types.ts +220 -0
- package/.references/pi/packages/ai/src/bedrock-provider.ts +6 -0
- package/.references/pi/packages/ai/src/bun-oauth.ts +17 -0
- package/.references/pi/packages/ai/src/cli.ts +118 -0
- package/.references/pi/packages/ai/src/compat/extension-oauth-types.ts +45 -0
- package/.references/pi/packages/ai/src/compat.ts +298 -0
- package/.references/pi/packages/ai/src/env-api-keys.ts +178 -0
- package/.references/pi/packages/ai/src/image-models.generated.ts +534 -0
- package/.references/pi/packages/ai/src/image-models.ts +42 -0
- package/.references/pi/packages/ai/src/images-api-registry.ts +53 -0
- package/.references/pi/packages/ai/src/images-models.ts +274 -0
- package/.references/pi/packages/ai/src/images.ts +21 -0
- package/.references/pi/packages/ai/src/index.ts +45 -0
- package/.references/pi/packages/ai/src/legacy-api-aliases.ts +108 -0
- package/.references/pi/packages/ai/src/models-store.ts +38 -0
- package/.references/pi/packages/ai/src/models.generated.ts +76 -0
- package/.references/pi/packages/ai/src/models.ts +705 -0
- package/.references/pi/packages/ai/src/oauth.ts +10 -0
- package/.references/pi/packages/ai/src/providers/all.ts +140 -0
- package/.references/pi/packages/ai/src/providers/amazon-bedrock.models.ts +1897 -0
- package/.references/pi/packages/ai/src/providers/amazon-bedrock.ts +80 -0
- package/.references/pi/packages/ai/src/providers/ant-ling.models.ts +62 -0
- package/.references/pi/packages/ai/src/providers/ant-ling.ts +15 -0
- package/.references/pi/packages/ai/src/providers/anthropic.models.ts +257 -0
- package/.references/pi/packages/ai/src/providers/anthropic.ts +20 -0
- package/.references/pi/packages/ai/src/providers/azure-openai-responses.models.ts +816 -0
- package/.references/pi/packages/ai/src/providers/azure-openai-responses.ts +14 -0
- package/.references/pi/packages/ai/src/providers/cerebras.models.ts +61 -0
- package/.references/pi/packages/ai/src/providers/cerebras.ts +15 -0
- package/.references/pi/packages/ai/src/providers/cloudflare-ai-gateway.models.ts +760 -0
- package/.references/pi/packages/ai/src/providers/cloudflare-ai-gateway.ts +23 -0
- package/.references/pi/packages/ai/src/providers/cloudflare-auth.ts +96 -0
- package/.references/pi/packages/ai/src/providers/cloudflare-stream.ts +28 -0
- package/.references/pi/packages/ai/src/providers/cloudflare-workers-ai.models.ts +241 -0
- package/.references/pi/packages/ai/src/providers/cloudflare-workers-ai.ts +15 -0
- package/.references/pi/packages/ai/src/providers/deepseek.models.ts +45 -0
- package/.references/pi/packages/ai/src/providers/deepseek.ts +15 -0
- package/.references/pi/packages/ai/src/providers/faux.ts +538 -0
- package/.references/pi/packages/ai/src/providers/fireworks.models.ts +297 -0
- package/.references/pi/packages/ai/src/providers/fireworks.ts +19 -0
- package/.references/pi/packages/ai/src/providers/github-copilot.models.ts +543 -0
- package/.references/pi/packages/ai/src/providers/github-copilot.ts +34 -0
- package/.references/pi/packages/ai/src/providers/google-vertex.models.ts +184 -0
- package/.references/pi/packages/ai/src/providers/google-vertex.ts +93 -0
- package/.references/pi/packages/ai/src/providers/google.models.ts +290 -0
- package/.references/pi/packages/ai/src/providers/google.ts +15 -0
- package/.references/pi/packages/ai/src/providers/groq.models.ts +127 -0
- package/.references/pi/packages/ai/src/providers/groq.ts +15 -0
- package/.references/pi/packages/ai/src/providers/huggingface.models.ts +889 -0
- package/.references/pi/packages/ai/src/providers/huggingface.ts +15 -0
- package/.references/pi/packages/ai/src/providers/images/register-builtins.ts +50 -0
- package/.references/pi/packages/ai/src/providers/kimi-coding.models.ts +103 -0
- package/.references/pi/packages/ai/src/providers/kimi-coding.ts +15 -0
- package/.references/pi/packages/ai/src/providers/minimax-cn.models.ts +58 -0
- package/.references/pi/packages/ai/src/providers/minimax-cn.ts +15 -0
- package/.references/pi/packages/ai/src/providers/minimax.models.ts +58 -0
- package/.references/pi/packages/ai/src/providers/minimax.ts +15 -0
- package/.references/pi/packages/ai/src/providers/mistral.models.ts +517 -0
- package/.references/pi/packages/ai/src/providers/mistral.ts +15 -0
- package/.references/pi/packages/ai/src/providers/moonshotai-cn.models.ts +190 -0
- package/.references/pi/packages/ai/src/providers/moonshotai-cn.ts +15 -0
- package/.references/pi/packages/ai/src/providers/moonshotai.models.ts +190 -0
- package/.references/pi/packages/ai/src/providers/moonshotai.ts +15 -0
- package/.references/pi/packages/ai/src/providers/nvidia.models.ts +387 -0
- package/.references/pi/packages/ai/src/providers/nvidia.ts +15 -0
- package/.references/pi/packages/ai/src/providers/openai-codex.models.ts +144 -0
- package/.references/pi/packages/ai/src/providers/openai-codex.ts +18 -0
- package/.references/pi/packages/ai/src/providers/openai.models.ts +830 -0
- package/.references/pi/packages/ai/src/providers/openai.ts +15 -0
- package/.references/pi/packages/ai/src/providers/opencode-go.models.ts +278 -0
- package/.references/pi/packages/ai/src/providers/opencode-go.ts +18 -0
- package/.references/pi/packages/ai/src/providers/opencode.models.ts +1001 -0
- package/.references/pi/packages/ai/src/providers/opencode.ts +24 -0
- package/.references/pi/packages/ai/src/providers/openrouter-images.ts +14 -0
- package/.references/pi/packages/ai/src/providers/openrouter.models.ts +4915 -0
- package/.references/pi/packages/ai/src/providers/openrouter.ts +15 -0
- package/.references/pi/packages/ai/src/providers/radius-config.ts +95 -0
- package/.references/pi/packages/ai/src/providers/radius.ts +67 -0
- package/.references/pi/packages/ai/src/providers/together.models.ts +382 -0
- package/.references/pi/packages/ai/src/providers/together.ts +15 -0
- package/.references/pi/packages/ai/src/providers/vercel-ai-gateway.models.ts +3268 -0
- package/.references/pi/packages/ai/src/providers/vercel-ai-gateway.ts +15 -0
- package/.references/pi/packages/ai/src/providers/xai.models.ts +62 -0
- package/.references/pi/packages/ai/src/providers/xai.ts +27 -0
- package/.references/pi/packages/ai/src/providers/xiaomi-token-plan-ams.models.ts +61 -0
- package/.references/pi/packages/ai/src/providers/xiaomi-token-plan-ams.ts +15 -0
- package/.references/pi/packages/ai/src/providers/xiaomi-token-plan-cn.models.ts +61 -0
- package/.references/pi/packages/ai/src/providers/xiaomi-token-plan-cn.ts +15 -0
- package/.references/pi/packages/ai/src/providers/xiaomi-token-plan-sgp.models.ts +61 -0
- package/.references/pi/packages/ai/src/providers/xiaomi-token-plan-sgp.ts +15 -0
- package/.references/pi/packages/ai/src/providers/xiaomi.models.ts +115 -0
- package/.references/pi/packages/ai/src/providers/xiaomi.ts +15 -0
- package/.references/pi/packages/ai/src/providers/zai-coding-cn.models.ts +116 -0
- package/.references/pi/packages/ai/src/providers/zai-coding-cn.ts +15 -0
- package/.references/pi/packages/ai/src/providers/zai.models.ts +116 -0
- package/.references/pi/packages/ai/src/providers/zai.ts +15 -0
- package/.references/pi/packages/ai/src/session-resources.ts +24 -0
- package/.references/pi/packages/ai/src/types.ts +738 -0
- package/.references/pi/packages/ai/src/utils/abort-signals.ts +41 -0
- package/.references/pi/packages/ai/src/utils/deferred-tools.ts +39 -0
- package/.references/pi/packages/ai/src/utils/diagnostics.ts +45 -0
- package/.references/pi/packages/ai/src/utils/error-body.ts +127 -0
- package/.references/pi/packages/ai/src/utils/estimate.ts +143 -0
- package/.references/pi/packages/ai/src/utils/event-stream.ts +88 -0
- package/.references/pi/packages/ai/src/utils/hash.ts +13 -0
- package/.references/pi/packages/ai/src/utils/headers.ts +18 -0
- package/.references/pi/packages/ai/src/utils/json-parse.ts +124 -0
- package/.references/pi/packages/ai/src/utils/node-http-proxy.ts +112 -0
- package/.references/pi/packages/ai/src/utils/overflow.ts +165 -0
- package/.references/pi/packages/ai/src/utils/provider-env.ts +52 -0
- package/.references/pi/packages/ai/src/utils/retry.ts +101 -0
- package/.references/pi/packages/ai/src/utils/sanitize-unicode.ts +25 -0
- package/.references/pi/packages/ai/src/utils/typebox-helpers.ts +24 -0
- package/.references/pi/packages/ai/src/utils/validation.ts +310 -0
- package/.references/pi/packages/ai/test/abort.test.ts +303 -0
- package/.references/pi/packages/ai/test/anthropic-adaptive-thinking-models.test.ts +39 -0
- package/.references/pi/packages/ai/test/anthropic-cache-write-1h-cost.test.ts +86 -0
- package/.references/pi/packages/ai/test/anthropic-eager-tool-input-compat.test.ts +122 -0
- package/.references/pi/packages/ai/test/anthropic-eager-tool-input-e2e.test.ts +155 -0
- package/.references/pi/packages/ai/test/anthropic-empty-thinking-signature-compat.test.ts +108 -0
- package/.references/pi/packages/ai/test/anthropic-force-adaptive-thinking.test.ts +125 -0
- package/.references/pi/packages/ai/test/anthropic-long-cache-retention-e2e.test.ts +127 -0
- package/.references/pi/packages/ai/test/anthropic-oauth.test.ts +137 -0
- package/.references/pi/packages/ai/test/anthropic-opus-4-8-smoke.test.ts +71 -0
- package/.references/pi/packages/ai/test/anthropic-sse-parsing.test.ts +275 -0
- package/.references/pi/packages/ai/test/anthropic-temperature-compat.test.ts +103 -0
- package/.references/pi/packages/ai/test/anthropic-thinking-disable.test.ts +172 -0
- package/.references/pi/packages/ai/test/anthropic-tool-name-normalization.test.ts +204 -0
- package/.references/pi/packages/ai/test/azure-openai-base-url.test.ts +175 -0
- package/.references/pi/packages/ai/test/azure-openai-responses-reasoning-replay.test.ts +136 -0
- package/.references/pi/packages/ai/test/azure-utils.ts +28 -0
- package/.references/pi/packages/ai/test/bedrock-convert-messages.test.ts +245 -0
- package/.references/pi/packages/ai/test/bedrock-custom-headers.test.ts +202 -0
- package/.references/pi/packages/ai/test/bedrock-endpoint-resolution.test.ts +208 -0
- package/.references/pi/packages/ai/test/bedrock-models.test.ts +65 -0
- package/.references/pi/packages/ai/test/bedrock-thinking-payload.test.ts +246 -0
- package/.references/pi/packages/ai/test/bedrock-utils.ts +18 -0
- package/.references/pi/packages/ai/test/cache-retention.test.ts +498 -0
- package/.references/pi/packages/ai/test/cloudflare-stream.test.ts +65 -0
- package/.references/pi/packages/ai/test/cloudflare-utils.ts +9 -0
- package/.references/pi/packages/ai/test/codex-websocket-cached-probe.ts +299 -0
- package/.references/pi/packages/ai/test/compat-env.test.ts +74 -0
- package/.references/pi/packages/ai/test/context-estimate.test.ts +81 -0
- package/.references/pi/packages/ai/test/context-overflow.test.ts +734 -0
- package/.references/pi/packages/ai/test/cross-provider-handoff.test.ts +502 -0
- package/.references/pi/packages/ai/test/data/red-circle.png +0 -0
- package/.references/pi/packages/ai/test/deferred-tools.test.ts +481 -0
- package/.references/pi/packages/ai/test/empty.test.ts +741 -0
- package/.references/pi/packages/ai/test/env-api-keys.test.ts +60 -0
- package/.references/pi/packages/ai/test/error-body.test.ts +154 -0
- package/.references/pi/packages/ai/test/faux-provider.test.ts +597 -0
- package/.references/pi/packages/ai/test/fireworks-models.test.ts +269 -0
- package/.references/pi/packages/ai/test/github-copilot-anthropic.test.ts +120 -0
- package/.references/pi/packages/ai/test/github-copilot-oauth.test.ts +444 -0
- package/.references/pi/packages/ai/test/google-shared-convert-tools.test.ts +187 -0
- package/.references/pi/packages/ai/test/google-shared-gemini3-unsigned-tool-call.test.ts +116 -0
- package/.references/pi/packages/ai/test/google-shared-image-tool-result-routing.test.ts +102 -0
- package/.references/pi/packages/ai/test/google-thinking-disable.test.ts +160 -0
- package/.references/pi/packages/ai/test/google-thinking-signature.test.ts +38 -0
- package/.references/pi/packages/ai/test/google-vertex-api-key-resolution.test.ts +223 -0
- package/.references/pi/packages/ai/test/image-tool-result.test.ts +501 -0
- package/.references/pi/packages/ai/test/images-models.test.ts +209 -0
- package/.references/pi/packages/ai/test/images.test.ts +90 -0
- package/.references/pi/packages/ai/test/interleaved-thinking.test.ts +144 -0
- package/.references/pi/packages/ai/test/lax-message-content.test.ts +67 -0
- package/.references/pi/packages/ai/test/lazy-module-load.test.ts +119 -0
- package/.references/pi/packages/ai/test/max-thinking.test.ts +89 -0
- package/.references/pi/packages/ai/test/mistral-reasoning-mode.test.ts +97 -0
- package/.references/pi/packages/ai/test/mistral-tool-schema.test.ts +60 -0
- package/.references/pi/packages/ai/test/models-runtime.test.ts +689 -0
- package/.references/pi/packages/ai/test/node-http-proxy.test.ts +76 -0
- package/.references/pi/packages/ai/test/oauth-auth.test.ts +141 -0
- package/.references/pi/packages/ai/test/oauth-device-code.test.ts +139 -0
- package/.references/pi/packages/ai/test/oauth.ts +83 -0
- package/.references/pi/packages/ai/test/openai-codex-cache-affinity-e2e.test.ts +35 -0
- package/.references/pi/packages/ai/test/openai-codex-oauth.test.ts +479 -0
- package/.references/pi/packages/ai/test/openai-codex-stream.test.ts +2028 -0
- package/.references/pi/packages/ai/test/openai-completions-cache-control-format.test.ts +189 -0
- package/.references/pi/packages/ai/test/openai-completions-empty-tools.test.ts +304 -0
- package/.references/pi/packages/ai/test/openai-completions-prompt-cache.test.ts +264 -0
- package/.references/pi/packages/ai/test/openai-completions-reasoning-details.test.ts +118 -0
- package/.references/pi/packages/ai/test/openai-completions-response-model.test.ts +140 -0
- package/.references/pi/packages/ai/test/openai-completions-retry.test.ts +86 -0
- package/.references/pi/packages/ai/test/openai-completions-thinking-as-text.test.ts +218 -0
- package/.references/pi/packages/ai/test/openai-completions-tool-choice.test.ts +1716 -0
- package/.references/pi/packages/ai/test/openai-completions-tool-result-images.test.ts +152 -0
- package/.references/pi/packages/ai/test/openai-responses-cache-affinity-e2e.test.ts +31 -0
- package/.references/pi/packages/ai/test/openai-responses-compat.test.ts +472 -0
- package/.references/pi/packages/ai/test/openai-responses-empty-tool-result.test.ts +58 -0
- package/.references/pi/packages/ai/test/openai-responses-foreign-toolcall-id.test.ts +66 -0
- package/.references/pi/packages/ai/test/openai-responses-message-id.test.ts +48 -0
- package/.references/pi/packages/ai/test/openai-responses-partial-json-cleanup.test.ts +106 -0
- package/.references/pi/packages/ai/test/openai-responses-reasoning-replay-e2e.test.ts +291 -0
- package/.references/pi/packages/ai/test/openai-responses-terminal-event.test.ts +233 -0
- package/.references/pi/packages/ai/test/openai-responses-tool-result-images.test.ts +194 -0
- package/.references/pi/packages/ai/test/openrouter-cache-write-repro.test.ts +77 -0
- package/.references/pi/packages/ai/test/openrouter-images.test.ts +140 -0
- package/.references/pi/packages/ai/test/overflow.test.ts +139 -0
- package/.references/pi/packages/ai/test/pi-messages.test.ts +243 -0
- package/.references/pi/packages/ai/test/provider-error-body-passthrough.test.ts +78 -0
- package/.references/pi/packages/ai/test/provider-error-body-regression.test.ts +189 -0
- package/.references/pi/packages/ai/test/providers.test.ts +404 -0
- package/.references/pi/packages/ai/test/responseid.test.ts +120 -0
- package/.references/pi/packages/ai/test/retry.test.ts +59 -0
- package/.references/pi/packages/ai/test/scratch.ts +57 -0
- package/.references/pi/packages/ai/test/stream.test.ts +1632 -0
- package/.references/pi/packages/ai/test/supports-xhigh.test.ts +145 -0
- package/.references/pi/packages/ai/test/together-models.test.ts +78 -0
- package/.references/pi/packages/ai/test/tokens.test.ts +333 -0
- package/.references/pi/packages/ai/test/tool-call-id-normalization.test.ts +290 -0
- package/.references/pi/packages/ai/test/tool-call-without-result.test.ts +327 -0
- package/.references/pi/packages/ai/test/total-tokens.test.ts +789 -0
- package/.references/pi/packages/ai/test/transform-messages-copilot-openai-to-anthropic.test.ts +191 -0
- package/.references/pi/packages/ai/test/unicode-surrogate.test.ts +774 -0
- package/.references/pi/packages/ai/test/validation.test.ts +116 -0
- package/.references/pi/packages/ai/test/xai-oauth.test.ts +330 -0
- package/.references/pi/packages/ai/test/xai-responses.test.ts +117 -0
- package/.references/pi/packages/ai/test/xhigh.test.ts +70 -0
- package/.references/pi/packages/ai/test/xiaomi-models.test.ts +17 -0
- package/.references/pi/packages/ai/test/xiaomi-token-plan-ams-anthropic-empty-signature-smoke.test.ts +114 -0
- package/.references/pi/packages/ai/test/zen.test.ts +25 -0
- package/.references/pi/packages/ai/tsconfig.build.json +9 -0
- package/.references/pi/packages/ai/vitest.config.ts +11 -0
- package/.references/pi/packages/coding-agent/CHANGELOG.md +5038 -0
- package/.references/pi/packages/coding-agent/README.md +691 -0
- package/.references/pi/packages/coding-agent/docs/compaction.md +396 -0
- package/.references/pi/packages/coding-agent/docs/containerization.md +111 -0
- package/.references/pi/packages/coding-agent/docs/custom-provider.md +735 -0
- package/.references/pi/packages/coding-agent/docs/development.md +71 -0
- package/.references/pi/packages/coding-agent/docs/docs.json +156 -0
- package/.references/pi/packages/coding-agent/docs/extensions.md +2911 -0
- package/.references/pi/packages/coding-agent/docs/images/doom-extension.png +0 -0
- package/.references/pi/packages/coding-agent/docs/images/exy.png +0 -0
- package/.references/pi/packages/coding-agent/docs/images/interactive-mode.png +0 -0
- package/.references/pi/packages/coding-agent/docs/images/tree-view.png +0 -0
- package/.references/pi/packages/coding-agent/docs/index.md +82 -0
- package/.references/pi/packages/coding-agent/docs/json.md +82 -0
- package/.references/pi/packages/coding-agent/docs/keybindings.md +198 -0
- package/.references/pi/packages/coding-agent/docs/models.md +540 -0
- package/.references/pi/packages/coding-agent/docs/packages.md +228 -0
- package/.references/pi/packages/coding-agent/docs/prompt-templates.md +95 -0
- package/.references/pi/packages/coding-agent/docs/providers.md +290 -0
- package/.references/pi/packages/coding-agent/docs/quickstart.md +165 -0
- package/.references/pi/packages/coding-agent/docs/rpc.md +1480 -0
- package/.references/pi/packages/coding-agent/docs/sdk.md +1183 -0
- package/.references/pi/packages/coding-agent/docs/security.md +59 -0
- package/.references/pi/packages/coding-agent/docs/session-format.md +422 -0
- package/.references/pi/packages/coding-agent/docs/sessions.md +145 -0
- package/.references/pi/packages/coding-agent/docs/settings.md +319 -0
- package/.references/pi/packages/coding-agent/docs/shell-aliases.md +13 -0
- package/.references/pi/packages/coding-agent/docs/skills.md +231 -0
- package/.references/pi/packages/coding-agent/docs/terminal-setup.md +142 -0
- package/.references/pi/packages/coding-agent/docs/termux.md +127 -0
- package/.references/pi/packages/coding-agent/docs/themes.md +297 -0
- package/.references/pi/packages/coding-agent/docs/tmux.md +63 -0
- package/.references/pi/packages/coding-agent/docs/tui.md +927 -0
- package/.references/pi/packages/coding-agent/docs/usage.md +310 -0
- package/.references/pi/packages/coding-agent/docs/windows.md +17 -0
- package/.references/pi/packages/coding-agent/examples/README.md +25 -0
- package/.references/pi/packages/coding-agent/examples/extensions/README.md +213 -0
- package/.references/pi/packages/coding-agent/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/.references/pi/packages/coding-agent/examples/extensions/bash-spawn-hook.ts +30 -0
- package/.references/pi/packages/coding-agent/examples/extensions/bookmark.ts +50 -0
- package/.references/pi/packages/coding-agent/examples/extensions/border-status-editor.ts +150 -0
- package/.references/pi/packages/coding-agent/examples/extensions/built-in-tool-renderer.ts +249 -0
- package/.references/pi/packages/coding-agent/examples/extensions/claude-rules.ts +86 -0
- package/.references/pi/packages/coding-agent/examples/extensions/commands.ts +72 -0
- package/.references/pi/packages/coding-agent/examples/extensions/confirm-destructive.ts +59 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-compaction.ts +128 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-footer.ts +64 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-header.ts +73 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/index.ts +404 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/.references/pi/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/.references/pi/packages/coding-agent/examples/extensions/dirty-repo-guard.ts +56 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/README.md +46 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/index.ts +74 -0
- package/.references/pi/packages/coding-agent/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/.references/pi/packages/coding-agent/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/.references/pi/packages/coding-agent/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/.references/pi/packages/coding-agent/examples/extensions/dynamic-resources/index.ts +15 -0
- package/.references/pi/packages/coding-agent/examples/extensions/dynamic-tools.ts +74 -0
- package/.references/pi/packages/coding-agent/examples/extensions/entry-renderer.ts +41 -0
- package/.references/pi/packages/coding-agent/examples/extensions/event-bus.ts +43 -0
- package/.references/pi/packages/coding-agent/examples/extensions/file-trigger.ts +41 -0
- package/.references/pi/packages/coding-agent/examples/extensions/git-checkpoint.ts +53 -0
- package/.references/pi/packages/coding-agent/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/.references/pi/packages/coding-agent/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/.references/pi/packages/coding-agent/examples/extensions/gondolin/index.ts +531 -0
- package/.references/pi/packages/coding-agent/examples/extensions/gondolin/package-lock.json +185 -0
- package/.references/pi/packages/coding-agent/examples/extensions/gondolin/package.json +19 -0
- package/.references/pi/packages/coding-agent/examples/extensions/handoff.ts +191 -0
- package/.references/pi/packages/coding-agent/examples/extensions/hello.ts +26 -0
- package/.references/pi/packages/coding-agent/examples/extensions/hidden-thinking-label.ts +53 -0
- package/.references/pi/packages/coding-agent/examples/extensions/inline-bash.ts +94 -0
- package/.references/pi/packages/coding-agent/examples/extensions/input-transform-streaming.ts +39 -0
- package/.references/pi/packages/coding-agent/examples/extensions/input-transform.ts +43 -0
- package/.references/pi/packages/coding-agent/examples/extensions/interactive-shell.ts +196 -0
- package/.references/pi/packages/coding-agent/examples/extensions/kimi-deferred-tools.ts +61 -0
- package/.references/pi/packages/coding-agent/examples/extensions/mac-system-theme.ts +47 -0
- package/.references/pi/packages/coding-agent/examples/extensions/message-renderer.ts +59 -0
- package/.references/pi/packages/coding-agent/examples/extensions/minimal-mode.ts +426 -0
- package/.references/pi/packages/coding-agent/examples/extensions/modal-editor.ts +85 -0
- package/.references/pi/packages/coding-agent/examples/extensions/model-status.ts +31 -0
- package/.references/pi/packages/coding-agent/examples/extensions/notify.ts +55 -0
- package/.references/pi/packages/coding-agent/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/.references/pi/packages/coding-agent/examples/extensions/overlay-test.ts +153 -0
- package/.references/pi/packages/coding-agent/examples/extensions/permission-gate.ts +34 -0
- package/.references/pi/packages/coding-agent/examples/extensions/pirate.ts +47 -0
- package/.references/pi/packages/coding-agent/examples/extensions/plan-mode/README.md +66 -0
- package/.references/pi/packages/coding-agent/examples/extensions/plan-mode/index.ts +390 -0
- package/.references/pi/packages/coding-agent/examples/extensions/plan-mode/utils.ts +168 -0
- package/.references/pi/packages/coding-agent/examples/extensions/preset.ts +436 -0
- package/.references/pi/packages/coding-agent/examples/extensions/project-trust.ts +64 -0
- package/.references/pi/packages/coding-agent/examples/extensions/prompt-customizer.ts +97 -0
- package/.references/pi/packages/coding-agent/examples/extensions/protected-paths.ts +30 -0
- package/.references/pi/packages/coding-agent/examples/extensions/provider-payload.ts +18 -0
- package/.references/pi/packages/coding-agent/examples/extensions/qna.ts +122 -0
- package/.references/pi/packages/coding-agent/examples/extensions/question.ts +286 -0
- package/.references/pi/packages/coding-agent/examples/extensions/questionnaire.ts +448 -0
- package/.references/pi/packages/coding-agent/examples/extensions/rainbow-editor.ts +88 -0
- package/.references/pi/packages/coding-agent/examples/extensions/reload-runtime.ts +37 -0
- package/.references/pi/packages/coding-agent/examples/extensions/rpc-demo.ts +118 -0
- package/.references/pi/packages/coding-agent/examples/extensions/sandbox/index.ts +321 -0
- package/.references/pi/packages/coding-agent/examples/extensions/sandbox/package-lock.json +92 -0
- package/.references/pi/packages/coding-agent/examples/extensions/sandbox/package.json +19 -0
- package/.references/pi/packages/coding-agent/examples/extensions/send-user-message.ts +97 -0
- package/.references/pi/packages/coding-agent/examples/extensions/session-name.ts +27 -0
- package/.references/pi/packages/coding-agent/examples/extensions/shutdown-command.ts +63 -0
- package/.references/pi/packages/coding-agent/examples/extensions/snake.ts +343 -0
- package/.references/pi/packages/coding-agent/examples/extensions/space-invaders.ts +560 -0
- package/.references/pi/packages/coding-agent/examples/extensions/ssh.ts +220 -0
- package/.references/pi/packages/coding-agent/examples/extensions/status-line.ts +32 -0
- package/.references/pi/packages/coding-agent/examples/extensions/structured-output.ts +65 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/README.md +175 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/agents/planner.md +37 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/agents/scout.md +50 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/agents/worker.md +24 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/agents.ts +126 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/index.ts +1015 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/prompts/implement.md +10 -0
- package/.references/pi/packages/coding-agent/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/.references/pi/packages/coding-agent/examples/extensions/summarize.ts +207 -0
- package/.references/pi/packages/coding-agent/examples/extensions/system-prompt-header.ts +17 -0
- package/.references/pi/packages/coding-agent/examples/extensions/tic-tac-toe.ts +1008 -0
- package/.references/pi/packages/coding-agent/examples/extensions/timed-confirm.ts +70 -0
- package/.references/pi/packages/coding-agent/examples/extensions/titlebar-spinner.ts +58 -0
- package/.references/pi/packages/coding-agent/examples/extensions/todo.ts +297 -0
- package/.references/pi/packages/coding-agent/examples/extensions/tool-override.ts +144 -0
- package/.references/pi/packages/coding-agent/examples/extensions/tools.ts +146 -0
- package/.references/pi/packages/coding-agent/examples/extensions/trigger-compact.ts +50 -0
- package/.references/pi/packages/coding-agent/examples/extensions/truncated-tool.ts +195 -0
- package/.references/pi/packages/coding-agent/examples/extensions/widget-placement.ts +9 -0
- package/.references/pi/packages/coding-agent/examples/extensions/with-deps/index.ts +32 -0
- package/.references/pi/packages/coding-agent/examples/extensions/with-deps/package-lock.json +31 -0
- package/.references/pi/packages/coding-agent/examples/extensions/with-deps/package.json +22 -0
- package/.references/pi/packages/coding-agent/examples/extensions/working-indicator.ts +123 -0
- package/.references/pi/packages/coding-agent/examples/extensions/working-message-test.ts +25 -0
- package/.references/pi/packages/coding-agent/examples/rpc-extension-ui.ts +632 -0
- package/.references/pi/packages/coding-agent/examples/sdk/01-minimal.ts +26 -0
- package/.references/pi/packages/coding-agent/examples/sdk/02-custom-model.ts +50 -0
- package/.references/pi/packages/coding-agent/examples/sdk/03-custom-prompt.ts +75 -0
- package/.references/pi/packages/coding-agent/examples/sdk/04-skills.ts +55 -0
- package/.references/pi/packages/coding-agent/examples/sdk/05-tools.ts +48 -0
- package/.references/pi/packages/coding-agent/examples/sdk/06-extensions.ts +99 -0
- package/.references/pi/packages/coding-agent/examples/sdk/07-context-files.ts +47 -0
- package/.references/pi/packages/coding-agent/examples/sdk/08-prompt-templates.ts +51 -0
- package/.references/pi/packages/coding-agent/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/.references/pi/packages/coding-agent/examples/sdk/10-settings.ts +53 -0
- package/.references/pi/packages/coding-agent/examples/sdk/11-sessions.ts +52 -0
- package/.references/pi/packages/coding-agent/examples/sdk/12-full-control.ts +72 -0
- package/.references/pi/packages/coding-agent/examples/sdk/13-session-runtime.ts +67 -0
- package/.references/pi/packages/coding-agent/examples/sdk/README.md +140 -0
- package/.references/pi/packages/coding-agent/install-lock/package-lock.json +1849 -0
- package/.references/pi/packages/coding-agent/install-lock/package.json +18 -0
- package/.references/pi/packages/coding-agent/npm-shrinkwrap.json +1839 -0
- package/.references/pi/packages/coding-agent/package.json +100 -0
- package/.references/pi/packages/coding-agent/scripts/migrate-sessions.sh +93 -0
- package/.references/pi/packages/coding-agent/src/bun/cli.ts +15 -0
- package/.references/pi/packages/coding-agent/src/bun/register-bedrock.ts +4 -0
- package/.references/pi/packages/coding-agent/src/bun/restore-sandbox-env.ts +36 -0
- package/.references/pi/packages/coding-agent/src/cli/args.ts +390 -0
- package/.references/pi/packages/coding-agent/src/cli/config-selector.ts +56 -0
- package/.references/pi/packages/coding-agent/src/cli/file-processor.ts +87 -0
- package/.references/pi/packages/coding-agent/src/cli/initial-message.ts +43 -0
- package/.references/pi/packages/coding-agent/src/cli/list-models.ts +111 -0
- package/.references/pi/packages/coding-agent/src/cli/project-trust.ts +62 -0
- package/.references/pi/packages/coding-agent/src/cli/session-picker.ts +55 -0
- package/.references/pi/packages/coding-agent/src/cli/startup-ui.ts +239 -0
- package/.references/pi/packages/coding-agent/src/cli.ts +20 -0
- package/.references/pi/packages/coding-agent/src/config.ts +566 -0
- package/.references/pi/packages/coding-agent/src/core/agent-session-runtime.ts +438 -0
- package/.references/pi/packages/coding-agent/src/core/agent-session-services.ts +207 -0
- package/.references/pi/packages/coding-agent/src/core/agent-session.ts +3279 -0
- package/.references/pi/packages/coding-agent/src/core/auth-guidance.ts +25 -0
- package/.references/pi/packages/coding-agent/src/core/auth-storage.ts +271 -0
- package/.references/pi/packages/coding-agent/src/core/bash-executor.ts +156 -0
- package/.references/pi/packages/coding-agent/src/core/cache-stats.ts +164 -0
- package/.references/pi/packages/coding-agent/src/core/compaction/branch-summarization.ts +371 -0
- package/.references/pi/packages/coding-agent/src/core/compaction/compaction.ts +872 -0
- package/.references/pi/packages/coding-agent/src/core/compaction/index.ts +7 -0
- package/.references/pi/packages/coding-agent/src/core/compaction/utils.ts +170 -0
- package/.references/pi/packages/coding-agent/src/core/defaults.ts +3 -0
- package/.references/pi/packages/coding-agent/src/core/diagnostics.ts +15 -0
- package/.references/pi/packages/coding-agent/src/core/event-bus.ts +33 -0
- package/.references/pi/packages/coding-agent/src/core/exec.ts +107 -0
- package/.references/pi/packages/coding-agent/src/core/experimental.ts +3 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/ansi-to-html.ts +258 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/index.ts +316 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/template.css +1066 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/template.html +55 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/template.js +1864 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/tool-renderer.ts +172 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/vendor/highlight.min.js +1213 -0
- package/.references/pi/packages/coding-agent/src/core/export-html/vendor/marked.min.js +78 -0
- package/.references/pi/packages/coding-agent/src/core/extensions/index.ts +184 -0
- package/.references/pi/packages/coding-agent/src/core/extensions/loader.ts +708 -0
- package/.references/pi/packages/coding-agent/src/core/extensions/runner.ts +1189 -0
- package/.references/pi/packages/coding-agent/src/core/extensions/types.ts +1674 -0
- package/.references/pi/packages/coding-agent/src/core/extensions/wrapper.ts +45 -0
- package/.references/pi/packages/coding-agent/src/core/footer-data-provider.ts +388 -0
- package/.references/pi/packages/coding-agent/src/core/http-dispatcher.ts +106 -0
- package/.references/pi/packages/coding-agent/src/core/index.ts +80 -0
- package/.references/pi/packages/coding-agent/src/core/keybindings.ts +370 -0
- package/.references/pi/packages/coding-agent/src/core/messages.ts +195 -0
- package/.references/pi/packages/coding-agent/src/core/model-config.ts +287 -0
- package/.references/pi/packages/coding-agent/src/core/model-registry.ts +126 -0
- package/.references/pi/packages/coding-agent/src/core/model-resolver.ts +705 -0
- package/.references/pi/packages/coding-agent/src/core/model-runtime.ts +566 -0
- package/.references/pi/packages/coding-agent/src/core/models-store.ts +57 -0
- package/.references/pi/packages/coding-agent/src/core/output-guard.ts +108 -0
- package/.references/pi/packages/coding-agent/src/core/package-manager.ts +2650 -0
- package/.references/pi/packages/coding-agent/src/core/project-trust.ts +96 -0
- package/.references/pi/packages/coding-agent/src/core/prompt-templates.ts +284 -0
- package/.references/pi/packages/coding-agent/src/core/provider-attribution.ts +97 -0
- package/.references/pi/packages/coding-agent/src/core/provider-composer.ts +548 -0
- package/.references/pi/packages/coding-agent/src/core/radius.ts +1 -0
- package/.references/pi/packages/coding-agent/src/core/remote-catalog-provider.ts +83 -0
- package/.references/pi/packages/coding-agent/src/core/resolve-config-value.ts +287 -0
- package/.references/pi/packages/coding-agent/src/core/resource-loader.ts +1039 -0
- package/.references/pi/packages/coding-agent/src/core/runtime-credentials.ts +48 -0
- package/.references/pi/packages/coding-agent/src/core/sdk.ts +393 -0
- package/.references/pi/packages/coding-agent/src/core/session-cwd.ts +59 -0
- package/.references/pi/packages/coding-agent/src/core/session-manager.ts +1623 -0
- package/.references/pi/packages/coding-agent/src/core/settings-manager.ts +1234 -0
- package/.references/pi/packages/coding-agent/src/core/skills.ts +487 -0
- package/.references/pi/packages/coding-agent/src/core/slash-commands.ts +42 -0
- package/.references/pi/packages/coding-agent/src/core/source-info.ts +40 -0
- package/.references/pi/packages/coding-agent/src/core/system-prompt.ts +162 -0
- package/.references/pi/packages/coding-agent/src/core/telemetry.ts +13 -0
- package/.references/pi/packages/coding-agent/src/core/timings.ts +50 -0
- package/.references/pi/packages/coding-agent/src/core/tools/bash.ts +470 -0
- package/.references/pi/packages/coding-agent/src/core/tools/edit-diff.ts +560 -0
- package/.references/pi/packages/coding-agent/src/core/tools/edit.ts +437 -0
- package/.references/pi/packages/coding-agent/src/core/tools/file-mutation-queue.ts +61 -0
- package/.references/pi/packages/coding-agent/src/core/tools/find.ts +374 -0
- package/.references/pi/packages/coding-agent/src/core/tools/grep.ts +385 -0
- package/.references/pi/packages/coding-agent/src/core/tools/index.ts +196 -0
- package/.references/pi/packages/coding-agent/src/core/tools/ls.ts +225 -0
- package/.references/pi/packages/coding-agent/src/core/tools/output-accumulator.ts +222 -0
- package/.references/pi/packages/coding-agent/src/core/tools/path-utils.ts +118 -0
- package/.references/pi/packages/coding-agent/src/core/tools/read.ts +351 -0
- package/.references/pi/packages/coding-agent/src/core/tools/render-utils.ts +85 -0
- package/.references/pi/packages/coding-agent/src/core/tools/tool-definition-wrapper.ts +45 -0
- package/.references/pi/packages/coding-agent/src/core/tools/truncate.ts +276 -0
- package/.references/pi/packages/coding-agent/src/core/tools/write.ts +267 -0
- package/.references/pi/packages/coding-agent/src/core/trust-manager.ts +244 -0
- package/.references/pi/packages/coding-agent/src/index.ts +394 -0
- package/.references/pi/packages/coding-agent/src/main.ts +857 -0
- package/.references/pi/packages/coding-agent/src/migrations.ts +315 -0
- package/.references/pi/packages/coding-agent/src/modes/index.ts +15 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/assets/clankolas.png +0 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/armin.ts +382 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/assistant-message.ts +180 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/bash-execution.ts +220 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/bordered-loader.ts +68 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/branch-summary-message.ts +58 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/compaction-summary-message.ts +59 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/config-selector.ts +942 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/countdown-timer.ts +39 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/custom-editor.ts +80 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/custom-entry.ts +62 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/custom-message.ts +99 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/daxnuts.ts +164 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/diff.ts +147 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/dynamic-border.ts +25 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/earendil-announcement.ts +53 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/extension-editor.ts +167 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/extension-input.ts +87 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/extension-selector.ts +112 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/first-time-setup.ts +145 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/footer.ts +245 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/index.ts +38 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/keybinding-hints.ts +48 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/login-dialog.ts +233 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/model-selector.ts +361 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/oauth-selector.ts +214 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts +360 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/session-selector-search.ts +194 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/session-selector.ts +1031 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/settings-selector.ts +838 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/show-images-selector.ts +50 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/skill-invocation-message.ts +55 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/status-indicator.ts +114 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/theme-selector.ts +67 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/thinking-selector.ts +75 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/tool-execution.ts +377 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/tree-selector.ts +1427 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/trust-selector.ts +134 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/user-message-selector.ts +155 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/user-message.ts +57 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/components/visual-truncate.ts +50 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/interactive-mode.ts +6005 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/model-search.ts +21 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/theme/dark.json +87 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/theme/light.json +86 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/theme/theme-controller.ts +126 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/theme/theme-schema.json +340 -0
- package/.references/pi/packages/coding-agent/src/modes/interactive/theme/theme.ts +1294 -0
- package/.references/pi/packages/coding-agent/src/modes/print-mode.ts +159 -0
- package/.references/pi/packages/coding-agent/src/modes/rpc/jsonl.ts +58 -0
- package/.references/pi/packages/coding-agent/src/modes/rpc/rpc-client.ts +592 -0
- package/.references/pi/packages/coding-agent/src/modes/rpc/rpc-mode.ts +795 -0
- package/.references/pi/packages/coding-agent/src/modes/rpc/rpc-types.ts +281 -0
- package/.references/pi/packages/coding-agent/src/package-manager-cli.ts +887 -0
- package/.references/pi/packages/coding-agent/src/rpc-entry.ts +12 -0
- package/.references/pi/packages/coding-agent/src/utils/ansi.ts +60 -0
- package/.references/pi/packages/coding-agent/src/utils/changelog.ts +196 -0
- package/.references/pi/packages/coding-agent/src/utils/child-process.ts +137 -0
- package/.references/pi/packages/coding-agent/src/utils/clipboard-image.ts +300 -0
- package/.references/pi/packages/coding-agent/src/utils/clipboard-native.ts +33 -0
- package/.references/pi/packages/coding-agent/src/utils/clipboard.ts +141 -0
- package/.references/pi/packages/coding-agent/src/utils/deprecation.ts +14 -0
- package/.references/pi/packages/coding-agent/src/utils/exif-orientation.ts +183 -0
- package/.references/pi/packages/coding-agent/src/utils/frontmatter.ts +39 -0
- package/.references/pi/packages/coding-agent/src/utils/fs-watch.ts +30 -0
- package/.references/pi/packages/coding-agent/src/utils/git.ts +226 -0
- package/.references/pi/packages/coding-agent/src/utils/highlight-js-lib-index.d.ts +19 -0
- package/.references/pi/packages/coding-agent/src/utils/html.ts +51 -0
- package/.references/pi/packages/coding-agent/src/utils/image-convert.ts +49 -0
- package/.references/pi/packages/coding-agent/src/utils/image-process.ts +119 -0
- package/.references/pi/packages/coding-agent/src/utils/image-resize-core.ts +164 -0
- package/.references/pi/packages/coding-agent/src/utils/image-resize-worker.ts +42 -0
- package/.references/pi/packages/coding-agent/src/utils/image-resize.ts +123 -0
- package/.references/pi/packages/coding-agent/src/utils/json.ts +6 -0
- package/.references/pi/packages/coding-agent/src/utils/mime.ts +116 -0
- package/.references/pi/packages/coding-agent/src/utils/open-browser.ts +24 -0
- package/.references/pi/packages/coding-agent/src/utils/paths.ts +118 -0
- package/.references/pi/packages/coding-agent/src/utils/photon.ts +139 -0
- package/.references/pi/packages/coding-agent/src/utils/pi-user-agent.ts +4 -0
- package/.references/pi/packages/coding-agent/src/utils/shell.ts +225 -0
- package/.references/pi/packages/coding-agent/src/utils/sleep.ts +18 -0
- package/.references/pi/packages/coding-agent/src/utils/syntax-highlight.ts +146 -0
- package/.references/pi/packages/coding-agent/src/utils/tools-manager.ts +369 -0
- package/.references/pi/packages/coding-agent/src/utils/version-check.ts +80 -0
- package/.references/pi/packages/coding-agent/src/utils/windows-self-update.ts +84 -0
- package/.references/pi/packages/coding-agent/test/agent-session-auto-compaction-queue.test.ts +450 -0
- package/.references/pi/packages/coding-agent/test/agent-session-branching.test.ts +156 -0
- package/.references/pi/packages/coding-agent/test/agent-session-compaction.test.ts +208 -0
- package/.references/pi/packages/coding-agent/test/agent-session-concurrent.test.ts +629 -0
- package/.references/pi/packages/coding-agent/test/agent-session-dynamic-provider.test.ts +122 -0
- package/.references/pi/packages/coding-agent/test/agent-session-dynamic-tools.test.ts +185 -0
- package/.references/pi/packages/coding-agent/test/agent-session-retry.test.ts +322 -0
- package/.references/pi/packages/coding-agent/test/agent-session-runtime-events.test.ts +257 -0
- package/.references/pi/packages/coding-agent/test/agent-session-stats.test.ts +169 -0
- package/.references/pi/packages/coding-agent/test/agent-session-tree-navigation.test.ts +323 -0
- package/.references/pi/packages/coding-agent/test/ansi-utils.test.ts +110 -0
- package/.references/pi/packages/coding-agent/test/args.test.ts +441 -0
- package/.references/pi/packages/coding-agent/test/assistant-message.test.ts +130 -0
- package/.references/pi/packages/coding-agent/test/auth-storage.test.ts +217 -0
- package/.references/pi/packages/coding-agent/test/bash-close-hang-windows.test.ts +126 -0
- package/.references/pi/packages/coding-agent/test/bash-execution-width.test.ts +80 -0
- package/.references/pi/packages/coding-agent/test/block-images.test.ts +148 -0
- package/.references/pi/packages/coding-agent/test/cache-stats.test.ts +143 -0
- package/.references/pi/packages/coding-agent/test/changelog.test.ts +49 -0
- package/.references/pi/packages/coding-agent/test/clipboard-image-bmp-conversion.test.ts +88 -0
- package/.references/pi/packages/coding-agent/test/clipboard-image.test.ts +184 -0
- package/.references/pi/packages/coding-agent/test/clipboard-native.test.ts +32 -0
- package/.references/pi/packages/coding-agent/test/clipboard.test.ts +166 -0
- package/.references/pi/packages/coding-agent/test/compaction-extensions-example.test.ts +66 -0
- package/.references/pi/packages/coding-agent/test/compaction-extensions.test.ts +415 -0
- package/.references/pi/packages/coding-agent/test/compaction-serialization.test.ts +79 -0
- package/.references/pi/packages/coding-agent/test/compaction-summary-reasoning.test.ts +134 -0
- package/.references/pi/packages/coding-agent/test/compaction.test.ts +596 -0
- package/.references/pi/packages/coding-agent/test/config-value-migration.test.ts +178 -0
- package/.references/pi/packages/coding-agent/test/config.test.ts +437 -0
- package/.references/pi/packages/coding-agent/test/edit-tool-legacy-input.test.ts +116 -0
- package/.references/pi/packages/coding-agent/test/edit-tool-no-full-redraw.test.ts +235 -0
- package/.references/pi/packages/coding-agent/test/experimental.test.ts +44 -0
- package/.references/pi/packages/coding-agent/test/export-html-skill-block.test.ts +40 -0
- package/.references/pi/packages/coding-agent/test/export-html-whitespace.test.ts +42 -0
- package/.references/pi/packages/coding-agent/test/export-html-xss.test.ts +67 -0
- package/.references/pi/packages/coding-agent/test/extensions-discovery.test.ts +528 -0
- package/.references/pi/packages/coding-agent/test/extensions-input-event.test.ts +125 -0
- package/.references/pi/packages/coding-agent/test/extensions-runner.test.ts +986 -0
- package/.references/pi/packages/coding-agent/test/file-mutation-queue.test.ts +274 -0
- package/.references/pi/packages/coding-agent/test/first-time-setup-fork.test.ts +39 -0
- package/.references/pi/packages/coding-agent/test/first-time-setup.test.ts +95 -0
- package/.references/pi/packages/coding-agent/test/fixtures/assistant-message-with-thinking-code.json +33 -0
- package/.references/pi/packages/coding-agent/test/fixtures/before-compaction.jsonl +1003 -0
- package/.references/pi/packages/coding-agent/test/fixtures/empty-agent/.gitkeep +0 -0
- package/.references/pi/packages/coding-agent/test/fixtures/empty-cwd/.gitkeep +0 -0
- package/.references/pi/packages/coding-agent/test/fixtures/large-session.jsonl +1019 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/consecutive-hyphens/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/disable-model-invocation/SKILL.md +9 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/invalid-name-chars/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/invalid-yaml/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/long-name/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/missing-description/SKILL.md +7 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/multiline-description/SKILL.md +11 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/name-mismatch/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/nested/child-skill/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/no-frontmatter/SKILL.md +3 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/root-skill-preferred/SKILL.md +3 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/root-skill-preferred/nested-child/SKILL.md +3 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/unknown-field/SKILL.md +10 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills/valid-skill/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills-collision/first/calendar/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/fixtures/skills-collision/second/calendar/SKILL.md +8 -0
- package/.references/pi/packages/coding-agent/test/footer-data-provider.test.ts +265 -0
- package/.references/pi/packages/coding-agent/test/footer-width.test.ts +144 -0
- package/.references/pi/packages/coding-agent/test/format-resume-command.test.ts +135 -0
- package/.references/pi/packages/coding-agent/test/frontmatter.test.ts +60 -0
- package/.references/pi/packages/coding-agent/test/git-merge-and-resolve-extension.test.ts +206 -0
- package/.references/pi/packages/coding-agent/test/git-ssh-url.test.ts +91 -0
- package/.references/pi/packages/coding-agent/test/git-update.test.ts +484 -0
- package/.references/pi/packages/coding-agent/test/http-dispatcher.test.ts +53 -0
- package/.references/pi/packages/coding-agent/test/image-process.test.ts +53 -0
- package/.references/pi/packages/coding-agent/test/image-processing.test.ts +170 -0
- package/.references/pi/packages/coding-agent/test/image-resize-callers.test.ts +53 -0
- package/.references/pi/packages/coding-agent/test/initial-message.test.ts +48 -0
- package/.references/pi/packages/coding-agent/test/input-transform-streaming-example.test.ts +84 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-anthropic-warning.test.ts +89 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-clone-command.test.ts +72 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-compaction.test.ts +85 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-import-command.test.ts +143 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-startup-input.test.ts +72 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-status.test.ts +1123 -0
- package/.references/pi/packages/coding-agent/test/interactive-mode-suspend.test.ts +149 -0
- package/.references/pi/packages/coding-agent/test/keybindings-migration.test.ts +88 -0
- package/.references/pi/packages/coding-agent/test/max-thinking.test.ts +45 -0
- package/.references/pi/packages/coding-agent/test/model-registry.test.ts +1934 -0
- package/.references/pi/packages/coding-agent/test/model-resolver.test.ts +690 -0
- package/.references/pi/packages/coding-agent/test/model-runtime-auth-options.test.ts +256 -0
- package/.references/pi/packages/coding-agent/test/model-runtime-cloudflare-compat.test.ts +95 -0
- package/.references/pi/packages/coding-agent/test/model-runtime-modify-models-compat.test.ts +85 -0
- package/.references/pi/packages/coding-agent/test/model-runtime-test-utils.ts +25 -0
- package/.references/pi/packages/coding-agent/test/models-store.test.ts +51 -0
- package/.references/pi/packages/coding-agent/test/oauth-selector.test.ts +147 -0
- package/.references/pi/packages/coding-agent/test/package-command-paths.test.ts +746 -0
- package/.references/pi/packages/coding-agent/test/package-manager-ssh.test.ts +97 -0
- package/.references/pi/packages/coding-agent/test/package-manager.test.ts +2512 -0
- package/.references/pi/packages/coding-agent/test/path-utils.test.ts +174 -0
- package/.references/pi/packages/coding-agent/test/paths.test.ts +150 -0
- package/.references/pi/packages/coding-agent/test/pi-user-agent.test.ts +12 -0
- package/.references/pi/packages/coding-agent/test/plan-mode-extension.test.ts +167 -0
- package/.references/pi/packages/coding-agent/test/plan-mode-utils.test.ts +261 -0
- package/.references/pi/packages/coding-agent/test/print-mode.test.ts +142 -0
- package/.references/pi/packages/coding-agent/test/prompt-templates.test.ts +615 -0
- package/.references/pi/packages/coding-agent/test/radius.test.ts +151 -0
- package/.references/pi/packages/coding-agent/test/remote-catalog-provider.test.ts +118 -0
- package/.references/pi/packages/coding-agent/test/resolve-config-value.test.ts +121 -0
- package/.references/pi/packages/coding-agent/test/resource-loader.test.ts +739 -0
- package/.references/pi/packages/coding-agent/test/restore-sandbox-env.test.ts +77 -0
- package/.references/pi/packages/coding-agent/test/rpc-client-clone.test.ts +29 -0
- package/.references/pi/packages/coding-agent/test/rpc-client-process-exit.test.ts +38 -0
- package/.references/pi/packages/coding-agent/test/rpc-example.ts +86 -0
- package/.references/pi/packages/coding-agent/test/rpc-jsonl.test.ts +65 -0
- package/.references/pi/packages/coding-agent/test/rpc-prompt-response-semantics.test.ts +288 -0
- package/.references/pi/packages/coding-agent/test/rpc.test.ts +377 -0
- package/.references/pi/packages/coding-agent/test/runtime-credentials.test.ts +42 -0
- package/.references/pi/packages/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts +497 -0
- package/.references/pi/packages/coding-agent/test/sdk-openrouter-attribution.test.ts +266 -0
- package/.references/pi/packages/coding-agent/test/sdk-session-manager.test.ts +95 -0
- package/.references/pi/packages/coding-agent/test/sdk-skills.test.ts +109 -0
- package/.references/pi/packages/coding-agent/test/sdk-stream-options.test.ts +188 -0
- package/.references/pi/packages/coding-agent/test/session-cwd.test.ts +91 -0
- package/.references/pi/packages/coding-agent/test/session-file-invalid.test.ts +65 -0
- package/.references/pi/packages/coding-agent/test/session-id-readonly.test.ts +190 -0
- package/.references/pi/packages/coding-agent/test/session-info-modified-timestamp.test.ts +83 -0
- package/.references/pi/packages/coding-agent/test/session-manager/build-context.test.ts +305 -0
- package/.references/pi/packages/coding-agent/test/session-manager/custom-session-id.test.ts +169 -0
- package/.references/pi/packages/coding-agent/test/session-manager/file-operations.test.ts +315 -0
- package/.references/pi/packages/coding-agent/test/session-manager/labels.test.ts +211 -0
- package/.references/pi/packages/coding-agent/test/session-manager/migration.test.ts +78 -0
- package/.references/pi/packages/coding-agent/test/session-manager/save-entry.test.ts +55 -0
- package/.references/pi/packages/coding-agent/test/session-manager/tree-traversal.test.ts +533 -0
- package/.references/pi/packages/coding-agent/test/session-selector-path-delete.test.ts +354 -0
- package/.references/pi/packages/coding-agent/test/session-selector-rename.test.ts +111 -0
- package/.references/pi/packages/coding-agent/test/session-selector-search.test.ts +195 -0
- package/.references/pi/packages/coding-agent/test/settings-manager-bug.test.ts +147 -0
- package/.references/pi/packages/coding-agent/test/settings-manager.test.ts +511 -0
- package/.references/pi/packages/coding-agent/test/skills.test.ts +432 -0
- package/.references/pi/packages/coding-agent/test/startup-session-name.test.ts +135 -0
- package/.references/pi/packages/coding-agent/test/status-indicator.test.ts +32 -0
- package/.references/pi/packages/coding-agent/test/stdout-cleanliness.test.ts +128 -0
- package/.references/pi/packages/coding-agent/test/streaming-render-debug.ts +97 -0
- package/.references/pi/packages/coding-agent/test/suite/README.md +16 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-bash-persistence.test.ts +242 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-compaction.test.ts +446 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-model-extension.test.ts +373 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-prompt.test.ts +398 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-queue.test.ts +445 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-retry-events.test.ts +364 -0
- package/.references/pi/packages/coding-agent/test/suite/agent-session-runtime.test.ts +609 -0
- package/.references/pi/packages/coding-agent/test/suite/harness.ts +219 -0
- package/.references/pi/packages/coding-agent/test/suite/lax-message-content.test.ts +162 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/1717-2113-agent-session-event-settlement.test.ts +95 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/2023-queued-slash-command-followup.test.ts +80 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/2753-reload-stale-resource-settings.test.ts +105 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/2781-skill-collision-precedence.test.ts +120 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/2791-fswatch-error-crash.test.ts +106 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/2835-tools-allowlist-filters-extension-tools.test.ts +94 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/2860-replaced-session-context.test.ts +279 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3217-scoped-model-order.test.ts +104 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3302-find-path-glob.test.ts +72 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3303-find-nested-gitignore.test.ts +83 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3317-network-connection-lost-retry.test.ts +33 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3592-no-builtin-tools-keeps-extension-tools.test.ts +119 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3616-settings-inmemory-reload.test.ts +86 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3686-session-name-event.test.ts +61 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3688-tree-cancel-compacting.test.ts +36 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/3982-message-end-cost-override.test.ts +56 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/4167-thinking-toggle-pending-tool-render.test.ts +182 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5080-signal-shutdown-extension-cleanup.test.ts +185 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5109-exclude-tools.test.ts +81 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5208-late-bash-output.test.ts +29 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5217-compaction-reason.test.ts +95 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5303-bash-output-truncation.test.ts +79 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5433-extension-oauth-prompt-input.test.ts +119 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5596-missing-theme-export.test.ts +89 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5661-uppercase-header-values.test.ts +91 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5724-sigterm-signal-exit.test.ts +94 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5868-rpc-unknown-command-id.test.ts +113 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5943-session-start-notify.test.ts +515 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/5996-session-name-newlines.test.ts +40 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/6019-explicit-provider-retry-message.test.ts +31 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/6162-extension-active-tools-next-turn.test.ts +192 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/6260-inline-extension-naming.test.ts +99 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/6324-branch-summary-ambient-auth.test.ts +61 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/6363-agent-settled-event.test.ts +158 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/extension-factory-cache.test.ts +131 -0
- package/.references/pi/packages/coding-agent/test/suite/regressions/pre-prompt-compaction-no-continue.test.ts +75 -0
- package/.references/pi/packages/coding-agent/test/syntax-highlight.test.ts +76 -0
- package/.references/pi/packages/coding-agent/test/system-prompt.test.ts +114 -0
- package/.references/pi/packages/coding-agent/test/test-harness.test.ts +321 -0
- package/.references/pi/packages/coding-agent/test/test-harness.ts +463 -0
- package/.references/pi/packages/coding-agent/test/test-theme-colors.ts +246 -0
- package/.references/pi/packages/coding-agent/test/theme-detection.test.ts +133 -0
- package/.references/pi/packages/coding-agent/test/theme-export.test.ts +104 -0
- package/.references/pi/packages/coding-agent/test/theme-picker.test.ts +51 -0
- package/.references/pi/packages/coding-agent/test/tool-execution-component.test.ts +529 -0
- package/.references/pi/packages/coding-agent/test/tools.test.ts +1213 -0
- package/.references/pi/packages/coding-agent/test/tree-selector.test.ts +702 -0
- package/.references/pi/packages/coding-agent/test/trigger-compact-extension.test.ts +59 -0
- package/.references/pi/packages/coding-agent/test/truncate-to-width.test.ts +81 -0
- package/.references/pi/packages/coding-agent/test/trust-manager.test.ts +67 -0
- package/.references/pi/packages/coding-agent/test/trust-selector.test.ts +87 -0
- package/.references/pi/packages/coding-agent/test/user-message.test.ts +25 -0
- package/.references/pi/packages/coding-agent/test/utilities.ts +318 -0
- package/.references/pi/packages/coding-agent/test/version-check.test.ts +91 -0
- package/.references/pi/packages/coding-agent/tsconfig.build.json +17 -0
- package/.references/pi/packages/coding-agent/tsconfig.examples.json +16 -0
- package/.references/pi/packages/coding-agent/vitest.config.ts +38 -0
- package/.references/pi/packages/orchestrator/CHANGELOG.md +19 -0
- package/.references/pi/packages/orchestrator/README.md +11 -0
- package/.references/pi/packages/orchestrator/package.json +45 -0
- package/.references/pi/packages/orchestrator/src/cli.ts +161 -0
- package/.references/pi/packages/orchestrator/src/config.ts +69 -0
- package/.references/pi/packages/orchestrator/src/handler.ts +161 -0
- package/.references/pi/packages/orchestrator/src/index.ts +10 -0
- package/.references/pi/packages/orchestrator/src/ipc/client.ts +63 -0
- package/.references/pi/packages/orchestrator/src/ipc/protocol.ts +142 -0
- package/.references/pi/packages/orchestrator/src/ipc/server.ts +209 -0
- package/.references/pi/packages/orchestrator/src/radius.ts +440 -0
- package/.references/pi/packages/orchestrator/src/rpc-process.ts +201 -0
- package/.references/pi/packages/orchestrator/src/serve.ts +77 -0
- package/.references/pi/packages/orchestrator/src/storage.ts +70 -0
- package/.references/pi/packages/orchestrator/src/supervisor.ts +354 -0
- package/.references/pi/packages/orchestrator/src/types.ts +25 -0
- package/.references/pi/packages/orchestrator/tsconfig.build.json +9 -0
- package/.references/pi/packages/tui/CHANGELOG.md +1005 -0
- package/.references/pi/packages/tui/README.md +791 -0
- package/.references/pi/packages/tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/.references/pi/packages/tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/.references/pi/packages/tui/native/darwin/src/darwin-modifiers.c +70 -0
- package/.references/pi/packages/tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/.references/pi/packages/tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/.references/pi/packages/tui/native/win32/src/win32-console-mode.c +53 -0
- package/.references/pi/packages/tui/package.json +47 -0
- package/.references/pi/packages/tui/src/autocomplete.ts +786 -0
- package/.references/pi/packages/tui/src/components/box.ts +137 -0
- package/.references/pi/packages/tui/src/components/cancellable-loader.ts +40 -0
- package/.references/pi/packages/tui/src/components/editor.ts +2333 -0
- package/.references/pi/packages/tui/src/components/image.ts +126 -0
- package/.references/pi/packages/tui/src/components/input.ts +447 -0
- package/.references/pi/packages/tui/src/components/loader.ts +92 -0
- package/.references/pi/packages/tui/src/components/markdown.ts +858 -0
- package/.references/pi/packages/tui/src/components/select-list.ts +229 -0
- package/.references/pi/packages/tui/src/components/settings-list.ts +250 -0
- package/.references/pi/packages/tui/src/components/spacer.ts +28 -0
- package/.references/pi/packages/tui/src/components/text.ts +106 -0
- package/.references/pi/packages/tui/src/components/truncated-text.ts +65 -0
- package/.references/pi/packages/tui/src/editor-component.ts +74 -0
- package/.references/pi/packages/tui/src/fuzzy.ts +137 -0
- package/.references/pi/packages/tui/src/index.ts +114 -0
- package/.references/pi/packages/tui/src/keybindings.ts +244 -0
- package/.references/pi/packages/tui/src/keys.ts +1401 -0
- package/.references/pi/packages/tui/src/kill-ring.ts +46 -0
- package/.references/pi/packages/tui/src/native-modifiers.ts +59 -0
- package/.references/pi/packages/tui/src/stdin-buffer.ts +434 -0
- package/.references/pi/packages/tui/src/terminal-colors.ts +73 -0
- package/.references/pi/packages/tui/src/terminal-image.ts +488 -0
- package/.references/pi/packages/tui/src/terminal.ts +531 -0
- package/.references/pi/packages/tui/src/tui.ts +1714 -0
- package/.references/pi/packages/tui/src/undo-stack.ts +28 -0
- package/.references/pi/packages/tui/src/utils.ts +1209 -0
- package/.references/pi/packages/tui/src/word-navigation.ts +117 -0
- package/.references/pi/packages/tui/test/autocomplete.test.ts +542 -0
- package/.references/pi/packages/tui/test/bug-regression-isimageline-startswith-bug.test.ts +237 -0
- package/.references/pi/packages/tui/test/chat-simple.ts +129 -0
- package/.references/pi/packages/tui/test/editor.test.ts +4051 -0
- package/.references/pi/packages/tui/test/fuzzy.test.ts +112 -0
- package/.references/pi/packages/tui/test/image-test.ts +56 -0
- package/.references/pi/packages/tui/test/input.test.ts +647 -0
- package/.references/pi/packages/tui/test/key-tester.ts +123 -0
- package/.references/pi/packages/tui/test/keybindings.test.ts +46 -0
- package/.references/pi/packages/tui/test/keys.test.ts +622 -0
- package/.references/pi/packages/tui/test/markdown.test.ts +1442 -0
- package/.references/pi/packages/tui/test/overlay-non-capturing.test.ts +1202 -0
- package/.references/pi/packages/tui/test/overlay-options.test.ts +541 -0
- package/.references/pi/packages/tui/test/overlay-short-content.test.ts +61 -0
- package/.references/pi/packages/tui/test/regression-overlay-cjk-boundary.test.ts +68 -0
- package/.references/pi/packages/tui/test/regression-regional-indicator-width.test.ts +52 -0
- package/.references/pi/packages/tui/test/select-list.test.ts +116 -0
- package/.references/pi/packages/tui/test/stdin-buffer.test.ts +458 -0
- package/.references/pi/packages/tui/test/tab-width.test.ts +87 -0
- package/.references/pi/packages/tui/test/terminal-colors.test.ts +249 -0
- package/.references/pi/packages/tui/test/terminal-image.test.ts +492 -0
- package/.references/pi/packages/tui/test/terminal.test.ts +233 -0
- package/.references/pi/packages/tui/test/test-themes.ts +38 -0
- package/.references/pi/packages/tui/test/truncate-to-width.test.ts +76 -0
- package/.references/pi/packages/tui/test/truncated-text.test.ts +129 -0
- package/.references/pi/packages/tui/test/tui-cell-size-input.test.ts +81 -0
- package/.references/pi/packages/tui/test/tui-overlay-style-leak.test.ts +80 -0
- package/.references/pi/packages/tui/test/tui-render.test.ts +767 -0
- package/.references/pi/packages/tui/test/tui-shrink.test.ts +44 -0
- package/.references/pi/packages/tui/test/viewport-overwrite-repro.ts +106 -0
- package/.references/pi/packages/tui/test/virtual-terminal.ts +218 -0
- package/.references/pi/packages/tui/test/word-navigation.test.ts +191 -0
- package/.references/pi/packages/tui/test/wrap-ansi.test.ts +266 -0
- package/.references/pi/packages/tui/tsconfig.build.json +9 -0
- package/.references/pi/packages/tui/vitest.config.ts +7 -0
- package/.references/pi/pi-test.bat +14 -0
- package/.references/pi/pi-test.ps1 +71 -0
- package/.references/pi/pi-test.sh +57 -0
- package/.references/pi/scripts/browser-smoke-entry.ts +61 -0
- package/.references/pi/scripts/build-binaries.sh +245 -0
- package/.references/pi/scripts/check-browser-smoke.mjs +36 -0
- package/.references/pi/scripts/check-lockfile-commit.mjs +120 -0
- package/.references/pi/scripts/check-pinned-deps.mjs +63 -0
- package/.references/pi/scripts/check-ts-relative-imports.mjs +74 -0
- package/.references/pi/scripts/cost.ts +183 -0
- package/.references/pi/scripts/edit-tool-stats.mjs +834 -0
- package/.references/pi/scripts/generate-coding-agent-install-lock.mjs +439 -0
- package/.references/pi/scripts/generate-coding-agent-shrinkwrap.mjs +365 -0
- package/.references/pi/scripts/local-release.mjs +284 -0
- package/.references/pi/scripts/profile-coding-agent-node.mjs +639 -0
- package/.references/pi/scripts/publish-model-catalog.mjs +295 -0
- package/.references/pi/scripts/publish.mjs +125 -0
- package/.references/pi/scripts/read-tool-stats.mjs +505 -0
- package/.references/pi/scripts/release-notes.mjs +364 -0
- package/.references/pi/scripts/release.mjs +207 -0
- package/.references/pi/scripts/repro-5893-wsl-bash.mjs +55 -0
- package/.references/pi/scripts/session-context-stats.mjs +405 -0
- package/.references/pi/scripts/session-transcripts.ts +406 -0
- package/.references/pi/scripts/stats.ts +233 -0
- package/.references/pi/scripts/sync-versions.js +96 -0
- package/.references/pi/scripts/tool-stats.ts +232 -0
- package/.references/pi/scripts/update-source-imports-to-ts.sh +10 -0
- package/.references/pi/test.sh +81 -0
- package/.references/pi/tsconfig.base.json +25 -0
- package/.references/pi/tsconfig.json +27 -0
- package/AGENTS.md +8 -0
- package/Cargo.lock +5169 -0
- package/Cargo.toml +39 -0
- package/LICENSE +21 -0
- package/README.md +43 -0
- package/aliases/pi-rusty/Cargo.toml +19 -0
- package/aliases/pi-rusty/LICENSE +21 -0
- package/aliases/pi-rusty/README.md +10 -0
- package/aliases/pi-rusty/src/main.rs +8 -0
- package/bun.lock +687 -0
- package/crates/pi/Cargo.toml +66 -0
- package/crates/pi/LICENSE +21 -0
- package/crates/pi/assets/export-html/template.css +1066 -0
- package/crates/pi/assets/export-html/template.html +55 -0
- package/crates/pi/assets/export-html/template.js +1864 -0
- package/crates/pi/assets/export-html/vendor/dark.json +29 -0
- package/crates/pi/assets/export-html/vendor/highlight.min.js +1213 -0
- package/crates/pi/assets/export-html/vendor/light.json +6 -0
- package/crates/pi/assets/export-html/vendor/marked.min.js +78 -0
- package/crates/pi/src/cli/args.rs +889 -0
- package/crates/pi/src/cli/bootstrap.rs +2134 -0
- package/crates/pi/src/cli/entry.rs +1332 -0
- package/crates/pi/src/cli/help.rs +326 -0
- package/crates/pi/src/cli/mod.rs +22 -0
- package/crates/pi/src/cli/package_manager_cli.rs +1515 -0
- package/crates/pi/src/core/agent_session/bash.rs +453 -0
- package/crates/pi/src/core/agent_session/compaction.rs +1804 -0
- package/crates/pi/src/core/agent_session/events.rs +621 -0
- package/crates/pi/src/core/agent_session/extension.rs +2146 -0
- package/crates/pi/src/core/agent_session/extension_runner.rs +471 -0
- package/crates/pi/src/core/agent_session/mod.rs +1768 -0
- package/crates/pi/src/core/agent_session/model.rs +775 -0
- package/crates/pi/src/core/agent_session/persistence.rs +265 -0
- package/crates/pi/src/core/agent_session/prompt.rs +2289 -0
- package/crates/pi/src/core/agent_session/retry.rs +448 -0
- package/crates/pi/src/core/agent_session/stats.rs +302 -0
- package/crates/pi/src/core/agent_session/subscribe.rs +450 -0
- package/crates/pi/src/core/agent_session/tools.rs +515 -0
- package/crates/pi/src/core/agent_session/tree.rs +1219 -0
- package/crates/pi/src/core/agent_session_runtime.rs +1612 -0
- package/crates/pi/src/core/agent_session_services.rs +1613 -0
- package/crates/pi/src/core/compaction/branch.rs +767 -0
- package/crates/pi/src/core/compaction/mod.rs +1955 -0
- package/crates/pi/src/core/compaction/utils.rs +357 -0
- package/crates/pi/src/core/config.rs +1102 -0
- package/crates/pi/src/core/config_value.rs +179 -0
- package/crates/pi/src/core/experimental.rs +29 -0
- package/crates/pi/src/core/export_html/ansi_to_html.rs +279 -0
- package/crates/pi/src/core/export_html/mod.rs +787 -0
- package/crates/pi/src/core/export_html/session_data.rs +149 -0
- package/crates/pi/src/core/extension_host/acquire/tests.rs +579 -0
- package/crates/pi/src/core/extension_host/acquire.rs +431 -0
- package/crates/pi/src/core/extension_host/tests.rs +2353 -0
- package/crates/pi/src/core/extension_host.rs +2541 -0
- package/crates/pi/src/core/lockfile.rs +913 -0
- package/crates/pi/src/core/messages.rs +706 -0
- package/crates/pi/src/core/migrations.rs +828 -0
- package/crates/pi/src/core/mod.rs +28 -0
- package/crates/pi/src/core/model_resolver.rs +1473 -0
- package/crates/pi/src/core/model_runtime.rs +2720 -0
- package/crates/pi/src/core/output_guard.rs +977 -0
- package/crates/pi/src/core/package_manager/tests.rs +1304 -0
- package/crates/pi/src/core/package_manager.rs +2015 -0
- package/crates/pi/src/core/platform/clipboard.rs +702 -0
- package/crates/pi/src/core/platform/command.rs +223 -0
- package/crates/pi/src/core/platform/debug_dump.rs +274 -0
- package/crates/pi/src/core/platform/external_editor.rs +294 -0
- package/crates/pi/src/core/platform/first_run.rs +120 -0
- package/crates/pi/src/core/platform/image.rs +237 -0
- package/crates/pi/src/core/platform/mod.rs +27 -0
- package/crates/pi/src/core/platform/open_browser.rs +187 -0
- package/crates/pi/src/core/platform/release_packaging.rs +785 -0
- package/crates/pi/src/core/resources/diagnostics.rs +148 -0
- package/crates/pi/src/core/resources/discovery.rs +2570 -0
- package/crates/pi/src/core/resources/frontmatter.rs +205 -0
- package/crates/pi/src/core/resources/mod.rs +1402 -0
- package/crates/pi/src/core/resources/prompts.rs +510 -0
- package/crates/pi/src/core/resources/skills.rs +981 -0
- package/crates/pi/src/core/resources/slash.rs +199 -0
- package/crates/pi/src/core/resources/source_info.rs +141 -0
- package/crates/pi/src/core/resources/themes.rs +297 -0
- package/crates/pi/src/core/session_transfer.rs +390 -0
- package/crates/pi/src/core/sessions/context.rs +657 -0
- package/crates/pi/src/core/sessions/cwd.rs +176 -0
- package/crates/pi/src/core/sessions/entries.rs +1364 -0
- package/crates/pi/src/core/sessions/list.rs +610 -0
- package/crates/pi/src/core/sessions/mod.rs +2117 -0
- package/crates/pi/src/core/settings.rs +3794 -0
- package/crates/pi/src/core/share.rs +577 -0
- package/crates/pi/src/core/system_prompt.rs +654 -0
- package/crates/pi/src/core/tools/bash.rs +1574 -0
- package/crates/pi/src/core/tools/edit.rs +919 -0
- package/crates/pi/src/core/tools/edit_diff.rs +1150 -0
- package/crates/pi/src/core/tools/find.rs +652 -0
- package/crates/pi/src/core/tools/grep.rs +965 -0
- package/crates/pi/src/core/tools/ls.rs +545 -0
- package/crates/pi/src/core/tools/mod.rs +312 -0
- package/crates/pi/src/core/tools/mutation_queue.rs +392 -0
- package/crates/pi/src/core/tools/output_accumulator.rs +689 -0
- package/crates/pi/src/core/tools/path_utils.rs +517 -0
- package/crates/pi/src/core/tools/read.rs +1413 -0
- package/crates/pi/src/core/tools/truncate.rs +644 -0
- package/crates/pi/src/core/tools/write.rs +524 -0
- package/crates/pi/src/core/trust.rs +1414 -0
- package/crates/pi/src/core/update/changelog.rs +583 -0
- package/crates/pi/src/core/update/deprecation.rs +148 -0
- package/crates/pi/src/core/update/mod.rs +8 -0
- package/crates/pi/src/core/update/self_update.rs +1327 -0
- package/crates/pi/src/core/update/user_agent.rs +59 -0
- package/crates/pi/src/core/update/version_check.rs +511 -0
- package/crates/pi/src/core/update/windows_quarantine.rs +262 -0
- package/crates/pi/src/lib.rs +23 -0
- package/crates/pi/src/main.rs +13 -0
- package/crates/pi/src/modes/interactive/footer.rs +260 -0
- package/crates/pi/src/modes/interactive/header.rs +83 -0
- package/crates/pi/src/modes/interactive/input.rs +923 -0
- package/crates/pi/src/modes/interactive/messages.rs +640 -0
- package/crates/pi/src/modes/interactive/mod.rs +51 -0
- package/crates/pi/src/modes/interactive/progress.rs +181 -0
- package/crates/pi/src/modes/interactive/runtime.rs +7227 -0
- package/crates/pi/src/modes/interactive/selectors.rs +146 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__bash_state_widths.snap +138 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__compact_state_widths.snap +137 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__custom_branch_skill_messages.snap +145 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__empty_state_widths.snap +136 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__error_state_widths.snap +139 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__loading_state_widths.snap +136 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__queue_state_widths.snap +139 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__retry_state_widths.snap +136 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__streaming_state_widths.snap +137 -0
- package/crates/pi/src/modes/interactive/snapshots/pi__modes__interactive__tests__user_assistant_messages.snap +145 -0
- package/crates/pi/src/modes/interactive/startup.rs +194 -0
- package/crates/pi/src/modes/interactive/state.rs +759 -0
- package/crates/pi/src/modes/interactive/status.rs +70 -0
- package/crates/pi/src/modes/interactive/tests.rs +945 -0
- package/crates/pi/src/modes/interactive/theme.rs +1402 -0
- package/crates/pi/src/modes/interactive/tool_renderer.rs +152 -0
- package/crates/pi/src/modes/interactive/view.rs +511 -0
- package/crates/pi/src/modes/mod.rs +6 -0
- package/crates/pi/src/modes/print/input.rs +415 -0
- package/crates/pi/src/modes/print/json.rs +195 -0
- package/crates/pi/src/modes/print/mod.rs +403 -0
- package/crates/pi/src/modes/print/text.rs +412 -0
- package/crates/pi/src/modes/rpc/extension_ui.rs +361 -0
- package/crates/pi/src/modes/rpc/jsonl.rs +429 -0
- package/crates/pi/src/modes/rpc/mod.rs +19 -0
- package/crates/pi/src/modes/rpc/mode_host.rs +466 -0
- package/crates/pi/src/modes/rpc/server.rs +3037 -0
- package/crates/pi/src/modes/rpc/types.rs +2999 -0
- package/crates/pi/src/modes/run.rs +636 -0
- package/crates/pi/tests/fixtures/fake_extension_host.rs +104 -0
- package/crates/pi/tests/fixtures/tool-schemas/bash.json +16 -0
- package/crates/pi/tests/fixtures/tool-schemas/edit.json +34 -0
- package/crates/pi/tests/fixtures/tool-schemas/find.json +20 -0
- package/crates/pi/tests/fixtures/tool-schemas/grep.json +36 -0
- package/crates/pi/tests/fixtures/tool-schemas/ls.json +13 -0
- package/crates/pi/tests/fixtures/tool-schemas/read.json +20 -0
- package/crates/pi/tests/fixtures/tool-schemas/write.json +17 -0
- package/crates/pi-agent/Cargo.toml +30 -0
- package/crates/pi-agent/LICENSE +21 -0
- package/crates/pi-agent/src/agent.rs +1780 -0
- package/crates/pi-agent/src/bus.rs +770 -0
- package/crates/pi-agent/src/config.rs +445 -0
- package/crates/pi-agent/src/drain.rs +941 -0
- package/crates/pi-agent/src/error.rs +61 -0
- package/crates/pi-agent/src/event.rs +270 -0
- package/crates/pi-agent/src/lib.rs +49 -0
- package/crates/pi-agent/src/message.rs +296 -0
- package/crates/pi-agent/src/queue.rs +222 -0
- package/crates/pi-agent/src/run.rs +1870 -0
- package/crates/pi-agent/src/schedule.rs +2153 -0
- package/crates/pi-agent/src/state.rs +377 -0
- package/crates/pi-agent/src/tool.rs +496 -0
- package/crates/pi-ai/Cargo.toml +45 -0
- package/crates/pi-ai/LICENSE +21 -0
- package/crates/pi-ai/data/builtin-models.json +25193 -0
- package/crates/pi-ai/src/auth/config_value.rs +598 -0
- package/crates/pi-ai/src/auth/context.rs +215 -0
- package/crates/pi-ai/src/auth/credential_store.rs +318 -0
- package/crates/pi-ai/src/auth/env_keys.rs +647 -0
- package/crates/pi-ai/src/auth/error.rs +194 -0
- package/crates/pi-ai/src/auth/file_store.rs +1179 -0
- package/crates/pi-ai/src/auth/http.rs +526 -0
- package/crates/pi-ai/src/auth/mod.rs +29 -0
- package/crates/pi-ai/src/auth/oauth/anthropic.rs +1482 -0
- package/crates/pi-ai/src/auth/oauth/callback_server.rs +584 -0
- package/crates/pi-ai/src/auth/oauth/device_code.rs +573 -0
- package/crates/pi-ai/src/auth/oauth/github_copilot.rs +1527 -0
- package/crates/pi-ai/src/auth/oauth/mod.rs +26 -0
- package/crates/pi-ai/src/auth/oauth/openai_codex.rs +2005 -0
- package/crates/pi-ai/src/auth/oauth/page.rs +159 -0
- package/crates/pi-ai/src/auth/oauth/pkce.rs +145 -0
- package/crates/pi-ai/src/auth/oauth/radius.rs +1685 -0
- package/crates/pi-ai/src/auth/oauth/xai.rs +989 -0
- package/crates/pi-ai/src/auth/resolve.rs +701 -0
- package/crates/pi-ai/src/auth/runtime_credentials.rs +226 -0
- package/crates/pi-ai/src/auth/types.rs +534 -0
- package/crates/pi-ai/src/catalog/merge.rs +316 -0
- package/crates/pi-ai/src/catalog/mod.rs +485 -0
- package/crates/pi-ai/src/lib.rs +13 -0
- package/crates/pi-ai/src/models_store.rs +974 -0
- package/crates/pi-ai/src/provider.rs +285 -0
- package/crates/pi-ai/src/providers/anthropic_messages.rs +1473 -0
- package/crates/pi-ai/src/providers/azure_openai_responses.rs +559 -0
- package/crates/pi-ai/src/providers/bedrock_converse_stream.rs +2430 -0
- package/crates/pi-ai/src/providers/google_generative_ai.rs +622 -0
- package/crates/pi-ai/src/providers/google_vertex.rs +1565 -0
- package/crates/pi-ai/src/providers/mistral_conversations.rs +1245 -0
- package/crates/pi-ai/src/providers/mod.rs +35 -0
- package/crates/pi-ai/src/providers/openai_codex_responses.rs +2003 -0
- package/crates/pi-ai/src/providers/openai_completions.rs +1873 -0
- package/crates/pi-ai/src/providers/openai_responses.rs +757 -0
- package/crates/pi-ai/src/providers/pi_messages.rs +1235 -0
- package/crates/pi-ai/src/providers/registry.rs +923 -0
- package/crates/pi-ai/src/providers/shared/google.rs +1193 -0
- package/crates/pi-ai/src/providers/shared/responses.rs +1873 -0
- package/crates/pi-ai/src/providers/shared.rs +671 -0
- package/crates/pi-ai/src/providers/stream_state.rs +683 -0
- package/crates/pi-ai/src/providers/transport.rs +488 -0
- package/crates/pi-ai/src/text.rs +322 -0
- package/crates/pi-ai/src/types.rs +1050 -0
- package/crates/pi-ai/tests/conformance_anthropic_mistral.rs +664 -0
- package/crates/pi-ai/tests/conformance_bedrock_pi_messages.rs +908 -0
- package/crates/pi-ai/tests/conformance_codex.rs +815 -0
- package/crates/pi-ai/tests/conformance_google.rs +743 -0
- package/crates/pi-ai/tests/conformance_openai.rs +607 -0
- package/crates/pi-ai/tests/fixtures/provenance/anthropic-sse-parsing.test.ts +275 -0
- package/crates/pi-ai/tests/fixtures/provenance/mistral-reasoning-mode.test.ts +97 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/anthropic-messages.ts +1313 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/bedrock-converse-stream.ts +1091 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/google-generative-ai.ts +509 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/google-shared.ts +350 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/mistral-conversations.ts +664 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/openai-completions.ts +1355 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/openai-responses-shared.ts +613 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/src/api/openai-responses.ts +318 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/abort.test.ts +303 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/azure-openai-base-url.test.ts +175 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/bedrock-endpoint-resolution.test.ts +208 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/bedrock-thinking-payload.test.ts +246 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/google-vertex-api-key-resolution.test.ts +223 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-codex-stream.test.ts +2028 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-completions-prompt-cache.test.ts +264 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-completions-retry.test.ts +86 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-completions-thinking-as-text.test.ts +218 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-completions-tool-choice.test.ts +1716 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-responses-partial-json-cleanup.test.ts +106 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/openai-responses-terminal-event.test.ts +233 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/pi-messages.test.ts +243 -0
- package/crates/pi-ai/tests/fixtures/provenance/upstream/test/provider-error-body-passthrough.test.ts +78 -0
- package/crates/pi-ai/tests/fixtures/providers/anthropic-messages/cases.jsonl +4 -0
- package/crates/pi-ai/tests/fixtures/providers/azure-openai-responses/cases.jsonl +2 -0
- package/crates/pi-ai/tests/fixtures/providers/bedrock-converse-stream/cases.jsonl +8 -0
- package/crates/pi-ai/tests/fixtures/providers/google-generative-ai/cases.jsonl +6 -0
- package/crates/pi-ai/tests/fixtures/providers/google-vertex/cases.jsonl +6 -0
- package/crates/pi-ai/tests/fixtures/providers/mistral-conversations/cases.jsonl +4 -0
- package/crates/pi-ai/tests/fixtures/providers/openai-codex-responses/cases.jsonl +7 -0
- package/crates/pi-ai/tests/fixtures/providers/openai-completions/cases.jsonl +9 -0
- package/crates/pi-ai/tests/fixtures/providers/openai-responses/cases.jsonl +5 -0
- package/crates/pi-ai/tests/fixtures/providers/pi-messages/cases.jsonl +8 -0
- package/crates/pi-ai/tests/provider_registry_contract.rs +85 -0
- package/crates/pi-ai/tests/support/golden.rs +191 -0
- package/crates/pi-ai/tests/support/http.rs +525 -0
- package/crates/pi-ai/tests/support/mod.rs +4 -0
- package/crates/pi-ext/Cargo.toml +34 -0
- package/crates/pi-ext/LICENSE +21 -0
- package/crates/pi-ext/src/adapters.rs +1915 -0
- package/crates/pi-ext/src/client.rs +1883 -0
- package/crates/pi-ext/src/host.rs +318 -0
- package/crates/pi-ext/src/lib.rs +10 -0
- package/crates/pi-ext/src/protocol.rs +1880 -0
- package/crates/pi-ext/src/sanitize.rs +524 -0
- package/crates/pi-ext/src/test_support.rs +93 -0
- package/crates/pi-ext/tests/fixtures/fake_jsonl_host.rs +35 -0
- package/crates/pi-ext/tests/fixtures/protocol/frames.jsonl +30 -0
- package/crates/pi-ext/tests/scaling.rs +530 -0
- package/crates/pi-tui/Cargo.toml +56 -0
- package/crates/pi-tui/LICENSE +21 -0
- package/crates/pi-tui/src/bin/pi_tui_pty_fixture.rs +722 -0
- package/crates/pi-tui/src/component.rs +101 -0
- package/crates/pi-tui/src/components/editor/mod.rs +2626 -0
- package/crates/pi-tui/src/components/editor/paste.rs +406 -0
- package/crates/pi-tui/src/components/editor/state.rs +240 -0
- package/crates/pi-tui/src/components/image.rs +352 -0
- package/crates/pi-tui/src/components/input.rs +742 -0
- package/crates/pi-tui/src/components/loader.rs +364 -0
- package/crates/pi-tui/src/components/markdown.rs +1154 -0
- package/crates/pi-tui/src/components/mod.rs +30 -0
- package/crates/pi-tui/src/components/padded.rs +212 -0
- package/crates/pi-tui/src/components/select_list.rs +464 -0
- package/crates/pi-tui/src/components/settings_list.rs +597 -0
- package/crates/pi-tui/src/components/spacer.rs +67 -0
- package/crates/pi-tui/src/components/text.rs +225 -0
- package/crates/pi-tui/src/components/truncated_text.rs +137 -0
- package/crates/pi-tui/src/components/util.rs +324 -0
- package/crates/pi-tui/src/editor_support/autocomplete.rs +1039 -0
- package/crates/pi-tui/src/editor_support/history.rs +248 -0
- package/crates/pi-tui/src/editor_support/kill_ring.rs +139 -0
- package/crates/pi-tui/src/editor_support/mod.rs +29 -0
- package/crates/pi-tui/src/editor_support/undo.rs +73 -0
- package/crates/pi-tui/src/editor_support/word_nav.rs +412 -0
- package/crates/pi-tui/src/editor_support/wrap.rs +317 -0
- package/crates/pi-tui/src/focus.rs +564 -0
- package/crates/pi-tui/src/frame.rs +163 -0
- package/crates/pi-tui/src/fuzzy.rs +221 -0
- package/crates/pi-tui/src/image.rs +749 -0
- package/crates/pi-tui/src/keybindings.rs +602 -0
- package/crates/pi-tui/src/keys.rs +1242 -0
- package/crates/pi-tui/src/layout.rs +563 -0
- package/crates/pi-tui/src/lib.rs +16 -0
- package/crates/pi-tui/src/link.rs +408 -0
- package/crates/pi-tui/src/overlay.rs +895 -0
- package/crates/pi-tui/src/terminal/backend.rs +348 -0
- package/crates/pi-tui/src/terminal/caps.rs +237 -0
- package/crates/pi-tui/src/terminal/guard.rs +476 -0
- package/crates/pi-tui/src/terminal/input.rs +266 -0
- package/crates/pi-tui/src/terminal/mod.rs +31 -0
- package/crates/pi-tui/src/terminal/probe.rs +498 -0
- package/crates/pi-tui/src/terminal/sink.rs +128 -0
- package/crates/pi-tui/src/terminal/writer.rs +1541 -0
- package/crates/pi-tui/src/text/ansi.rs +415 -0
- package/crates/pi-tui/src/text/mod.rs +29 -0
- package/crates/pi-tui/src/text/slice.rs +645 -0
- package/crates/pi-tui/src/text/tests.rs +359 -0
- package/crates/pi-tui/src/text/width.rs +311 -0
- package/crates/pi-tui/src/text/wrap.rs +344 -0
- package/crates/pi-tui/tests/pty_no_flicker.rs +929 -0
- package/deny.toml +38 -0
- package/npm-package/bin/pi.js +31 -0
- package/npm-package/package.json +35 -0
- package/npm-package/tests/archive.test.ts +139 -0
- package/npm-package/tests/wrapper.test.ts +70 -0
- package/package.json +34 -0
- package/packages/extension-host/bun.lock +664 -0
- package/packages/extension-host/fixtures/extensions/all-events.ts +55 -0
- package/packages/extension-host/fixtures/extensions/control-compat-shadow.ts +14 -0
- package/packages/extension-host/fixtures/extensions/control-compat.ts +35 -0
- package/packages/extension-host/fixtures/extensions/crash.ts +36 -0
- package/packages/extension-host/fixtures/extensions/hooks.ts +45 -0
- package/packages/extension-host/fixtures/extensions/hostile.ts +39 -0
- package/packages/extension-host/fixtures/extensions/idle.ts +9 -0
- package/packages/extension-host/fixtures/extensions/provider-stream.ts +121 -0
- package/packages/extension-host/fixtures/extensions/terminal-input-fast.ts +20 -0
- package/packages/extension-host/fixtures/extensions/terminal-input-slow.ts +23 -0
- package/packages/extension-host/fixtures/extensions/tool-progress.ts +72 -0
- package/packages/extension-host/fixtures/extensions/tool.ts +71 -0
- package/packages/extension-host/fixtures/extensions/virtual-imports.ts +87 -0
- package/packages/extension-host/fixtures/extensions/widget-active.ts +16 -0
- package/packages/extension-host/fixtures/photon-probe.ts +45 -0
- package/packages/extension-host/fixtures/runtime-import.ts +54 -0
- package/packages/extension-host/package.json +54 -0
- package/packages/extension-host/src/host.ts +1651 -0
- package/packages/extension-host/src/index.ts +21 -0
- package/packages/extension-host/src/main.ts +51 -0
- package/packages/extension-host/src/protocol.ts +10 -0
- package/packages/extension-host/src/refs.d.ts +364 -0
- package/packages/extension-host/src/sanitize.ts +503 -0
- package/packages/extension-host/src/virtual-modules.ts +90 -0
- package/packages/extension-host/tests/acceptance.test.ts +1498 -0
- package/packages/extension-host/tests/host.test.ts +244 -0
- package/packages/extension-host/tests/sanitize.test.ts +359 -0
- package/packages/extension-host/tests/scaling.test.ts +661 -0
- package/packages/extension-host/tests/virtual-modules.test.ts +122 -0
- package/packages/extension-host/tsconfig.build.json +44 -0
- package/packages/extension-host/tsconfig.check.json +29 -0
- package/packages/extension-host/tsconfig.json +8 -0
- package/packages/pi-tui-protocol/package.json +41 -0
- package/packages/pi-tui-protocol/src/client.ts +341 -0
- package/packages/pi-tui-protocol/src/codec.ts +439 -0
- package/packages/pi-tui-protocol/src/index.ts +77 -0
- package/packages/pi-tui-protocol/src/types.ts +358 -0
- package/packages/pi-tui-protocol/tests/client.test.ts +175 -0
- package/packages/pi-tui-protocol/tests/codec.test.ts +196 -0
- package/packages/pi-tui-protocol/tests/fixtures/frames.jsonl +30 -0
- package/packages/pi-tui-protocol/tsconfig.build.json +23 -0
- package/packages/pi-tui-protocol/tsconfig.json +9 -0
- package/rust-toolchain.toml +3 -0
- package/rustfmt.toml +5 -0
- package/scripts/bench-extension-scaling.ts +466 -0
- package/scripts/build-extension-host.ts +51 -0
- package/scripts/generate-builtin-models.ts +344 -0
- package/scripts/generate-session-fixtures.ts +1758 -0
- package/scripts/generate-tool-schemas.ts +444 -0
- package/scripts/package-npm.ts +263 -0
- package/scripts/package-release.ts +422 -0
- package/scripts/release/archive.ts +594 -0
- package/scripts/release/args.ts +187 -0
- package/scripts/release/extract-host-asset.ts +224 -0
- package/scripts/release/host.ts +825 -0
- package/scripts/release/runner.ts +435 -0
- package/scripts/release/runtime.ts +130 -0
- package/scripts/release/stage.ts +437 -0
- package/scripts/release/targets.ts +150 -0
- package/scripts/tests/archive.test.ts +210 -0
- package/scripts/tests/args.test.ts +180 -0
- package/scripts/tests/cli-dry-run.test.ts +61 -0
- package/scripts/tests/compat-authority.test.ts +79 -0
- package/scripts/tests/compat-matrix.test.ts +389 -0
- package/scripts/tests/extract-host-asset.test.ts +176 -0
- package/scripts/tests/host.test.ts +443 -0
- package/scripts/tests/npm-installed-smoke.test.ts +104 -0
- package/scripts/tests/package-release.test.ts +516 -0
- package/scripts/tests/repro-guards.test.ts +241 -0
- package/scripts/tests/runner.test.ts +188 -0
- package/scripts/tests/stage.test.ts +232 -0
- package/scripts/tests/targets.test.ts +93 -0
- package/scripts/tsconfig.json +47 -0
- package/scripts/verification/compat-matrix.json +455 -0
- package/scripts/verification/compat-matrix.ts +632 -0
- package/scripts/verification/e2e-smoke.ts +1093 -0
- package/scripts/verification/extension.ts +339 -0
- package/scripts/verification/foundation.test.ts +339 -0
- package/scripts/verification/npm-installed-smoke.ts +117 -0
- package/scripts/verification/performance.ts +1425 -0
- package/scripts/verification/pty.ts +332 -0
|
@@ -0,0 +1,3268 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/generate-models.ts
|
|
2
|
+
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
|
+
|
|
4
|
+
import type { Model } from "../types.ts";
|
|
5
|
+
|
|
6
|
+
export const VERCEL_AI_GATEWAY_MODELS = {
|
|
7
|
+
"alibaba/qwen-3-14b": {
|
|
8
|
+
id: "alibaba/qwen-3-14b",
|
|
9
|
+
name: "Qwen3-14B",
|
|
10
|
+
api: "anthropic-messages",
|
|
11
|
+
provider: "vercel-ai-gateway",
|
|
12
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
13
|
+
reasoning: true,
|
|
14
|
+
input: ["text"],
|
|
15
|
+
cost: {
|
|
16
|
+
input: 0.12,
|
|
17
|
+
output: 0.24,
|
|
18
|
+
cacheRead: 0,
|
|
19
|
+
cacheWrite: 0,
|
|
20
|
+
},
|
|
21
|
+
contextWindow: 40960,
|
|
22
|
+
maxTokens: 16384,
|
|
23
|
+
} satisfies Model<"anthropic-messages">,
|
|
24
|
+
"alibaba/qwen-3-235b": {
|
|
25
|
+
id: "alibaba/qwen-3-235b",
|
|
26
|
+
name: "Qwen3 235B A22B",
|
|
27
|
+
api: "anthropic-messages",
|
|
28
|
+
provider: "vercel-ai-gateway",
|
|
29
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
30
|
+
reasoning: true,
|
|
31
|
+
input: ["text"],
|
|
32
|
+
cost: {
|
|
33
|
+
input: 0.22,
|
|
34
|
+
output: 0.88,
|
|
35
|
+
cacheRead: 0,
|
|
36
|
+
cacheWrite: 0,
|
|
37
|
+
},
|
|
38
|
+
contextWindow: 262144,
|
|
39
|
+
maxTokens: 16384,
|
|
40
|
+
} satisfies Model<"anthropic-messages">,
|
|
41
|
+
"alibaba/qwen-3-30b": {
|
|
42
|
+
id: "alibaba/qwen-3-30b",
|
|
43
|
+
name: "Qwen3-30B-A3B",
|
|
44
|
+
api: "anthropic-messages",
|
|
45
|
+
provider: "vercel-ai-gateway",
|
|
46
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
47
|
+
reasoning: true,
|
|
48
|
+
input: ["text"],
|
|
49
|
+
cost: {
|
|
50
|
+
input: 0.12,
|
|
51
|
+
output: 0.5,
|
|
52
|
+
cacheRead: 0,
|
|
53
|
+
cacheWrite: 0,
|
|
54
|
+
},
|
|
55
|
+
contextWindow: 40960,
|
|
56
|
+
maxTokens: 16384,
|
|
57
|
+
} satisfies Model<"anthropic-messages">,
|
|
58
|
+
"alibaba/qwen-3-32b": {
|
|
59
|
+
id: "alibaba/qwen-3-32b",
|
|
60
|
+
name: "Qwen 3 32B",
|
|
61
|
+
api: "anthropic-messages",
|
|
62
|
+
provider: "vercel-ai-gateway",
|
|
63
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
64
|
+
reasoning: true,
|
|
65
|
+
input: ["text"],
|
|
66
|
+
cost: {
|
|
67
|
+
input: 0.16,
|
|
68
|
+
output: 0.64,
|
|
69
|
+
cacheRead: 0,
|
|
70
|
+
cacheWrite: 0,
|
|
71
|
+
},
|
|
72
|
+
contextWindow: 128000,
|
|
73
|
+
maxTokens: 8192,
|
|
74
|
+
} satisfies Model<"anthropic-messages">,
|
|
75
|
+
"alibaba/qwen-3.6-max-preview": {
|
|
76
|
+
id: "alibaba/qwen-3.6-max-preview",
|
|
77
|
+
name: "Qwen 3.6 Max Preview",
|
|
78
|
+
api: "anthropic-messages",
|
|
79
|
+
provider: "vercel-ai-gateway",
|
|
80
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
81
|
+
reasoning: true,
|
|
82
|
+
input: ["text"],
|
|
83
|
+
cost: {
|
|
84
|
+
input: 1.3,
|
|
85
|
+
output: 7.8,
|
|
86
|
+
cacheRead: 0.26,
|
|
87
|
+
cacheWrite: 1.625,
|
|
88
|
+
},
|
|
89
|
+
contextWindow: 240000,
|
|
90
|
+
maxTokens: 64000,
|
|
91
|
+
} satisfies Model<"anthropic-messages">,
|
|
92
|
+
"alibaba/qwen3-235b-a22b-thinking": {
|
|
93
|
+
id: "alibaba/qwen3-235b-a22b-thinking",
|
|
94
|
+
name: "Qwen3 VL 235B A22B Thinking",
|
|
95
|
+
api: "anthropic-messages",
|
|
96
|
+
provider: "vercel-ai-gateway",
|
|
97
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
98
|
+
reasoning: true,
|
|
99
|
+
input: ["text", "image"],
|
|
100
|
+
cost: {
|
|
101
|
+
input: 0.4,
|
|
102
|
+
output: 4,
|
|
103
|
+
cacheRead: 0,
|
|
104
|
+
cacheWrite: 0,
|
|
105
|
+
},
|
|
106
|
+
contextWindow: 131072,
|
|
107
|
+
maxTokens: 32768,
|
|
108
|
+
} satisfies Model<"anthropic-messages">,
|
|
109
|
+
"alibaba/qwen3-coder": {
|
|
110
|
+
id: "alibaba/qwen3-coder",
|
|
111
|
+
name: "Qwen3 Coder 480B A35B Instruct",
|
|
112
|
+
api: "anthropic-messages",
|
|
113
|
+
provider: "vercel-ai-gateway",
|
|
114
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
115
|
+
reasoning: false,
|
|
116
|
+
input: ["text"],
|
|
117
|
+
cost: {
|
|
118
|
+
input: 1.5,
|
|
119
|
+
output: 7.5,
|
|
120
|
+
cacheRead: 0.3,
|
|
121
|
+
cacheWrite: 0,
|
|
122
|
+
},
|
|
123
|
+
contextWindow: 262144,
|
|
124
|
+
maxTokens: 65536,
|
|
125
|
+
} satisfies Model<"anthropic-messages">,
|
|
126
|
+
"alibaba/qwen3-coder-30b-a3b": {
|
|
127
|
+
id: "alibaba/qwen3-coder-30b-a3b",
|
|
128
|
+
name: "Qwen 3 Coder 30B A3B Instruct",
|
|
129
|
+
api: "anthropic-messages",
|
|
130
|
+
provider: "vercel-ai-gateway",
|
|
131
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
132
|
+
reasoning: false,
|
|
133
|
+
input: ["text"],
|
|
134
|
+
cost: {
|
|
135
|
+
input: 0.15,
|
|
136
|
+
output: 0.6,
|
|
137
|
+
cacheRead: 0,
|
|
138
|
+
cacheWrite: 0,
|
|
139
|
+
},
|
|
140
|
+
contextWindow: 262144,
|
|
141
|
+
maxTokens: 8192,
|
|
142
|
+
} satisfies Model<"anthropic-messages">,
|
|
143
|
+
"alibaba/qwen3-coder-next": {
|
|
144
|
+
id: "alibaba/qwen3-coder-next",
|
|
145
|
+
name: "Qwen3 Coder Next",
|
|
146
|
+
api: "anthropic-messages",
|
|
147
|
+
provider: "vercel-ai-gateway",
|
|
148
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
149
|
+
reasoning: false,
|
|
150
|
+
input: ["text"],
|
|
151
|
+
cost: {
|
|
152
|
+
input: 0.5,
|
|
153
|
+
output: 1.2,
|
|
154
|
+
cacheRead: 0,
|
|
155
|
+
cacheWrite: 0,
|
|
156
|
+
},
|
|
157
|
+
contextWindow: 256000,
|
|
158
|
+
maxTokens: 256000,
|
|
159
|
+
} satisfies Model<"anthropic-messages">,
|
|
160
|
+
"alibaba/qwen3-coder-plus": {
|
|
161
|
+
id: "alibaba/qwen3-coder-plus",
|
|
162
|
+
name: "Qwen3 Coder Plus",
|
|
163
|
+
api: "anthropic-messages",
|
|
164
|
+
provider: "vercel-ai-gateway",
|
|
165
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
166
|
+
reasoning: false,
|
|
167
|
+
input: ["text"],
|
|
168
|
+
cost: {
|
|
169
|
+
input: 1,
|
|
170
|
+
output: 5,
|
|
171
|
+
cacheRead: 0.2,
|
|
172
|
+
cacheWrite: 0,
|
|
173
|
+
},
|
|
174
|
+
contextWindow: 1000000,
|
|
175
|
+
maxTokens: 65536,
|
|
176
|
+
} satisfies Model<"anthropic-messages">,
|
|
177
|
+
"alibaba/qwen3-max": {
|
|
178
|
+
id: "alibaba/qwen3-max",
|
|
179
|
+
name: "Qwen3 Max",
|
|
180
|
+
api: "anthropic-messages",
|
|
181
|
+
provider: "vercel-ai-gateway",
|
|
182
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
183
|
+
reasoning: false,
|
|
184
|
+
input: ["text"],
|
|
185
|
+
cost: {
|
|
186
|
+
input: 1.2,
|
|
187
|
+
output: 6,
|
|
188
|
+
cacheRead: 0.24,
|
|
189
|
+
cacheWrite: 0,
|
|
190
|
+
},
|
|
191
|
+
contextWindow: 262144,
|
|
192
|
+
maxTokens: 32768,
|
|
193
|
+
} satisfies Model<"anthropic-messages">,
|
|
194
|
+
"alibaba/qwen3-max-preview": {
|
|
195
|
+
id: "alibaba/qwen3-max-preview",
|
|
196
|
+
name: "Qwen3 Max Preview",
|
|
197
|
+
api: "anthropic-messages",
|
|
198
|
+
provider: "vercel-ai-gateway",
|
|
199
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
200
|
+
reasoning: false,
|
|
201
|
+
input: ["text"],
|
|
202
|
+
cost: {
|
|
203
|
+
input: 1.2,
|
|
204
|
+
output: 6,
|
|
205
|
+
cacheRead: 0.24,
|
|
206
|
+
cacheWrite: 0,
|
|
207
|
+
},
|
|
208
|
+
contextWindow: 262144,
|
|
209
|
+
maxTokens: 32768,
|
|
210
|
+
} satisfies Model<"anthropic-messages">,
|
|
211
|
+
"alibaba/qwen3-max-thinking": {
|
|
212
|
+
id: "alibaba/qwen3-max-thinking",
|
|
213
|
+
name: "Qwen 3 Max Thinking",
|
|
214
|
+
api: "anthropic-messages",
|
|
215
|
+
provider: "vercel-ai-gateway",
|
|
216
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
217
|
+
reasoning: true,
|
|
218
|
+
input: ["text"],
|
|
219
|
+
cost: {
|
|
220
|
+
input: 1.2,
|
|
221
|
+
output: 6,
|
|
222
|
+
cacheRead: 0.24,
|
|
223
|
+
cacheWrite: 0,
|
|
224
|
+
},
|
|
225
|
+
contextWindow: 256000,
|
|
226
|
+
maxTokens: 65536,
|
|
227
|
+
} satisfies Model<"anthropic-messages">,
|
|
228
|
+
"alibaba/qwen3-next-80b-a3b-instruct": {
|
|
229
|
+
id: "alibaba/qwen3-next-80b-a3b-instruct",
|
|
230
|
+
name: "Qwen3 Next 80B A3B Instruct",
|
|
231
|
+
api: "anthropic-messages",
|
|
232
|
+
provider: "vercel-ai-gateway",
|
|
233
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
234
|
+
reasoning: false,
|
|
235
|
+
input: ["text"],
|
|
236
|
+
cost: {
|
|
237
|
+
input: 0.15,
|
|
238
|
+
output: 1.2,
|
|
239
|
+
cacheRead: 0,
|
|
240
|
+
cacheWrite: 0,
|
|
241
|
+
},
|
|
242
|
+
contextWindow: 131072,
|
|
243
|
+
maxTokens: 32768,
|
|
244
|
+
} satisfies Model<"anthropic-messages">,
|
|
245
|
+
"alibaba/qwen3-next-80b-a3b-thinking": {
|
|
246
|
+
id: "alibaba/qwen3-next-80b-a3b-thinking",
|
|
247
|
+
name: "Qwen3 Next 80B A3B Thinking",
|
|
248
|
+
api: "anthropic-messages",
|
|
249
|
+
provider: "vercel-ai-gateway",
|
|
250
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
251
|
+
reasoning: true,
|
|
252
|
+
input: ["text"],
|
|
253
|
+
cost: {
|
|
254
|
+
input: 0.15,
|
|
255
|
+
output: 1.2,
|
|
256
|
+
cacheRead: 0,
|
|
257
|
+
cacheWrite: 0,
|
|
258
|
+
},
|
|
259
|
+
contextWindow: 131072,
|
|
260
|
+
maxTokens: 32768,
|
|
261
|
+
} satisfies Model<"anthropic-messages">,
|
|
262
|
+
"alibaba/qwen3-vl-235b-a22b-instruct": {
|
|
263
|
+
id: "alibaba/qwen3-vl-235b-a22b-instruct",
|
|
264
|
+
name: "Qwen3 VL 235B A22B Instruct",
|
|
265
|
+
api: "anthropic-messages",
|
|
266
|
+
provider: "vercel-ai-gateway",
|
|
267
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
268
|
+
reasoning: false,
|
|
269
|
+
input: ["text", "image"],
|
|
270
|
+
cost: {
|
|
271
|
+
input: 0.4,
|
|
272
|
+
output: 1.6,
|
|
273
|
+
cacheRead: 0,
|
|
274
|
+
cacheWrite: 0,
|
|
275
|
+
},
|
|
276
|
+
contextWindow: 131072,
|
|
277
|
+
maxTokens: 129024,
|
|
278
|
+
} satisfies Model<"anthropic-messages">,
|
|
279
|
+
"alibaba/qwen3-vl-instruct": {
|
|
280
|
+
id: "alibaba/qwen3-vl-instruct",
|
|
281
|
+
name: "Qwen3 VL 235B A22B Instruct",
|
|
282
|
+
api: "anthropic-messages",
|
|
283
|
+
provider: "vercel-ai-gateway",
|
|
284
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
285
|
+
reasoning: false,
|
|
286
|
+
input: ["text", "image"],
|
|
287
|
+
cost: {
|
|
288
|
+
input: 0.4,
|
|
289
|
+
output: 1.6,
|
|
290
|
+
cacheRead: 0,
|
|
291
|
+
cacheWrite: 0,
|
|
292
|
+
},
|
|
293
|
+
contextWindow: 131072,
|
|
294
|
+
maxTokens: 129024,
|
|
295
|
+
} satisfies Model<"anthropic-messages">,
|
|
296
|
+
"alibaba/qwen3-vl-thinking": {
|
|
297
|
+
id: "alibaba/qwen3-vl-thinking",
|
|
298
|
+
name: "Qwen3 VL 235B A22B Thinking",
|
|
299
|
+
api: "anthropic-messages",
|
|
300
|
+
provider: "vercel-ai-gateway",
|
|
301
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
302
|
+
reasoning: true,
|
|
303
|
+
input: ["text", "image"],
|
|
304
|
+
cost: {
|
|
305
|
+
input: 0.4,
|
|
306
|
+
output: 4,
|
|
307
|
+
cacheRead: 0,
|
|
308
|
+
cacheWrite: 0,
|
|
309
|
+
},
|
|
310
|
+
contextWindow: 131072,
|
|
311
|
+
maxTokens: 32768,
|
|
312
|
+
} satisfies Model<"anthropic-messages">,
|
|
313
|
+
"alibaba/qwen3.5-flash": {
|
|
314
|
+
id: "alibaba/qwen3.5-flash",
|
|
315
|
+
name: "Qwen 3.5 Flash",
|
|
316
|
+
api: "anthropic-messages",
|
|
317
|
+
provider: "vercel-ai-gateway",
|
|
318
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
319
|
+
reasoning: true,
|
|
320
|
+
input: ["text", "image"],
|
|
321
|
+
cost: {
|
|
322
|
+
input: 0.1,
|
|
323
|
+
output: 0.4,
|
|
324
|
+
cacheRead: 0.001,
|
|
325
|
+
cacheWrite: 0.125,
|
|
326
|
+
},
|
|
327
|
+
contextWindow: 1000000,
|
|
328
|
+
maxTokens: 64000,
|
|
329
|
+
} satisfies Model<"anthropic-messages">,
|
|
330
|
+
"alibaba/qwen3.5-plus": {
|
|
331
|
+
id: "alibaba/qwen3.5-plus",
|
|
332
|
+
name: "Qwen 3.5 Plus",
|
|
333
|
+
api: "anthropic-messages",
|
|
334
|
+
provider: "vercel-ai-gateway",
|
|
335
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
336
|
+
reasoning: true,
|
|
337
|
+
input: ["text", "image"],
|
|
338
|
+
cost: {
|
|
339
|
+
input: 0.4,
|
|
340
|
+
output: 2.4,
|
|
341
|
+
cacheRead: 0.04,
|
|
342
|
+
cacheWrite: 0.5,
|
|
343
|
+
},
|
|
344
|
+
contextWindow: 1000000,
|
|
345
|
+
maxTokens: 64000,
|
|
346
|
+
} satisfies Model<"anthropic-messages">,
|
|
347
|
+
"alibaba/qwen3.6-27b": {
|
|
348
|
+
id: "alibaba/qwen3.6-27b",
|
|
349
|
+
name: "Qwen 3.6 27B",
|
|
350
|
+
api: "anthropic-messages",
|
|
351
|
+
provider: "vercel-ai-gateway",
|
|
352
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
353
|
+
reasoning: true,
|
|
354
|
+
input: ["text", "image"],
|
|
355
|
+
cost: {
|
|
356
|
+
input: 0.6,
|
|
357
|
+
output: 3.6,
|
|
358
|
+
cacheRead: 0,
|
|
359
|
+
cacheWrite: 0,
|
|
360
|
+
},
|
|
361
|
+
contextWindow: 256000,
|
|
362
|
+
maxTokens: 256000,
|
|
363
|
+
} satisfies Model<"anthropic-messages">,
|
|
364
|
+
"alibaba/qwen3.6-plus": {
|
|
365
|
+
id: "alibaba/qwen3.6-plus",
|
|
366
|
+
name: "Qwen 3.6 Plus",
|
|
367
|
+
api: "anthropic-messages",
|
|
368
|
+
provider: "vercel-ai-gateway",
|
|
369
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
370
|
+
reasoning: true,
|
|
371
|
+
input: ["text", "image"],
|
|
372
|
+
cost: {
|
|
373
|
+
input: 0.5,
|
|
374
|
+
output: 3,
|
|
375
|
+
cacheRead: 0.1,
|
|
376
|
+
cacheWrite: 0.625,
|
|
377
|
+
},
|
|
378
|
+
contextWindow: 1000000,
|
|
379
|
+
maxTokens: 64000,
|
|
380
|
+
} satisfies Model<"anthropic-messages">,
|
|
381
|
+
"alibaba/qwen3.7-max": {
|
|
382
|
+
id: "alibaba/qwen3.7-max",
|
|
383
|
+
name: "Qwen 3.7 Max",
|
|
384
|
+
api: "anthropic-messages",
|
|
385
|
+
provider: "vercel-ai-gateway",
|
|
386
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
387
|
+
reasoning: true,
|
|
388
|
+
input: ["text"],
|
|
389
|
+
cost: {
|
|
390
|
+
input: 1.25,
|
|
391
|
+
output: 3.75,
|
|
392
|
+
cacheRead: 0.25,
|
|
393
|
+
cacheWrite: 1.5625,
|
|
394
|
+
},
|
|
395
|
+
contextWindow: 991000,
|
|
396
|
+
maxTokens: 64000,
|
|
397
|
+
} satisfies Model<"anthropic-messages">,
|
|
398
|
+
"alibaba/qwen3.7-plus": {
|
|
399
|
+
id: "alibaba/qwen3.7-plus",
|
|
400
|
+
name: "Qwen 3.7 Plus",
|
|
401
|
+
api: "anthropic-messages",
|
|
402
|
+
provider: "vercel-ai-gateway",
|
|
403
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
404
|
+
reasoning: true,
|
|
405
|
+
input: ["text", "image"],
|
|
406
|
+
cost: {
|
|
407
|
+
input: 0.4,
|
|
408
|
+
output: 1.6,
|
|
409
|
+
cacheRead: 0.08,
|
|
410
|
+
cacheWrite: 0.5,
|
|
411
|
+
},
|
|
412
|
+
contextWindow: 1000000,
|
|
413
|
+
maxTokens: 64000,
|
|
414
|
+
} satisfies Model<"anthropic-messages">,
|
|
415
|
+
"amazon/nova-2-lite": {
|
|
416
|
+
id: "amazon/nova-2-lite",
|
|
417
|
+
name: "Nova 2 Lite",
|
|
418
|
+
api: "anthropic-messages",
|
|
419
|
+
provider: "vercel-ai-gateway",
|
|
420
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
421
|
+
reasoning: true,
|
|
422
|
+
input: ["text", "image"],
|
|
423
|
+
cost: {
|
|
424
|
+
input: 0.3,
|
|
425
|
+
output: 2.5,
|
|
426
|
+
cacheRead: 0.075,
|
|
427
|
+
cacheWrite: 0,
|
|
428
|
+
},
|
|
429
|
+
contextWindow: 1000000,
|
|
430
|
+
maxTokens: 1000000,
|
|
431
|
+
} satisfies Model<"anthropic-messages">,
|
|
432
|
+
"amazon/nova-lite": {
|
|
433
|
+
id: "amazon/nova-lite",
|
|
434
|
+
name: "Nova Lite",
|
|
435
|
+
api: "anthropic-messages",
|
|
436
|
+
provider: "vercel-ai-gateway",
|
|
437
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
438
|
+
reasoning: false,
|
|
439
|
+
input: ["text", "image"],
|
|
440
|
+
cost: {
|
|
441
|
+
input: 0.06,
|
|
442
|
+
output: 0.24,
|
|
443
|
+
cacheRead: 0,
|
|
444
|
+
cacheWrite: 0,
|
|
445
|
+
},
|
|
446
|
+
contextWindow: 300000,
|
|
447
|
+
maxTokens: 8192,
|
|
448
|
+
} satisfies Model<"anthropic-messages">,
|
|
449
|
+
"amazon/nova-micro": {
|
|
450
|
+
id: "amazon/nova-micro",
|
|
451
|
+
name: "Nova Micro",
|
|
452
|
+
api: "anthropic-messages",
|
|
453
|
+
provider: "vercel-ai-gateway",
|
|
454
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
455
|
+
reasoning: false,
|
|
456
|
+
input: ["text"],
|
|
457
|
+
cost: {
|
|
458
|
+
input: 0.035,
|
|
459
|
+
output: 0.14,
|
|
460
|
+
cacheRead: 0,
|
|
461
|
+
cacheWrite: 0,
|
|
462
|
+
},
|
|
463
|
+
contextWindow: 128000,
|
|
464
|
+
maxTokens: 8192,
|
|
465
|
+
} satisfies Model<"anthropic-messages">,
|
|
466
|
+
"amazon/nova-pro": {
|
|
467
|
+
id: "amazon/nova-pro",
|
|
468
|
+
name: "Nova Pro",
|
|
469
|
+
api: "anthropic-messages",
|
|
470
|
+
provider: "vercel-ai-gateway",
|
|
471
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
472
|
+
reasoning: false,
|
|
473
|
+
input: ["text", "image"],
|
|
474
|
+
cost: {
|
|
475
|
+
input: 0.8,
|
|
476
|
+
output: 3.2,
|
|
477
|
+
cacheRead: 0,
|
|
478
|
+
cacheWrite: 0,
|
|
479
|
+
},
|
|
480
|
+
contextWindow: 300000,
|
|
481
|
+
maxTokens: 8192,
|
|
482
|
+
} satisfies Model<"anthropic-messages">,
|
|
483
|
+
"anthropic/claude-3-haiku": {
|
|
484
|
+
id: "anthropic/claude-3-haiku",
|
|
485
|
+
name: "Claude 3 Haiku",
|
|
486
|
+
api: "anthropic-messages",
|
|
487
|
+
provider: "vercel-ai-gateway",
|
|
488
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
489
|
+
reasoning: false,
|
|
490
|
+
input: ["text", "image"],
|
|
491
|
+
cost: {
|
|
492
|
+
input: 0.25,
|
|
493
|
+
output: 1.25,
|
|
494
|
+
cacheRead: 0.03,
|
|
495
|
+
cacheWrite: 0.3,
|
|
496
|
+
},
|
|
497
|
+
contextWindow: 200000,
|
|
498
|
+
maxTokens: 4096,
|
|
499
|
+
} satisfies Model<"anthropic-messages">,
|
|
500
|
+
"anthropic/claude-fable-5": {
|
|
501
|
+
id: "anthropic/claude-fable-5",
|
|
502
|
+
name: "Claude Fable 5",
|
|
503
|
+
api: "anthropic-messages",
|
|
504
|
+
provider: "vercel-ai-gateway",
|
|
505
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
506
|
+
compat: {"forceAdaptiveThinking":true},
|
|
507
|
+
reasoning: true,
|
|
508
|
+
thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"},
|
|
509
|
+
input: ["text", "image"],
|
|
510
|
+
cost: {
|
|
511
|
+
input: 10,
|
|
512
|
+
output: 50,
|
|
513
|
+
cacheRead: 1,
|
|
514
|
+
cacheWrite: 12.5,
|
|
515
|
+
},
|
|
516
|
+
contextWindow: 1000000,
|
|
517
|
+
maxTokens: 128000,
|
|
518
|
+
} satisfies Model<"anthropic-messages">,
|
|
519
|
+
"anthropic/claude-haiku-4.5": {
|
|
520
|
+
id: "anthropic/claude-haiku-4.5",
|
|
521
|
+
name: "Claude Haiku 4.5",
|
|
522
|
+
api: "anthropic-messages",
|
|
523
|
+
provider: "vercel-ai-gateway",
|
|
524
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
525
|
+
reasoning: true,
|
|
526
|
+
input: ["text", "image"],
|
|
527
|
+
cost: {
|
|
528
|
+
input: 1,
|
|
529
|
+
output: 5,
|
|
530
|
+
cacheRead: 0.1,
|
|
531
|
+
cacheWrite: 1.25,
|
|
532
|
+
},
|
|
533
|
+
contextWindow: 200000,
|
|
534
|
+
maxTokens: 64000,
|
|
535
|
+
} satisfies Model<"anthropic-messages">,
|
|
536
|
+
"anthropic/claude-opus-4": {
|
|
537
|
+
id: "anthropic/claude-opus-4",
|
|
538
|
+
name: "Claude Opus 4",
|
|
539
|
+
api: "anthropic-messages",
|
|
540
|
+
provider: "vercel-ai-gateway",
|
|
541
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
542
|
+
reasoning: true,
|
|
543
|
+
input: ["text", "image"],
|
|
544
|
+
cost: {
|
|
545
|
+
input: 15,
|
|
546
|
+
output: 75,
|
|
547
|
+
cacheRead: 1.5,
|
|
548
|
+
cacheWrite: 18.75,
|
|
549
|
+
},
|
|
550
|
+
contextWindow: 200000,
|
|
551
|
+
maxTokens: 8192,
|
|
552
|
+
} satisfies Model<"anthropic-messages">,
|
|
553
|
+
"anthropic/claude-opus-4.1": {
|
|
554
|
+
id: "anthropic/claude-opus-4.1",
|
|
555
|
+
name: "Claude Opus 4.1",
|
|
556
|
+
api: "anthropic-messages",
|
|
557
|
+
provider: "vercel-ai-gateway",
|
|
558
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
559
|
+
reasoning: true,
|
|
560
|
+
input: ["text", "image"],
|
|
561
|
+
cost: {
|
|
562
|
+
input: 15,
|
|
563
|
+
output: 75,
|
|
564
|
+
cacheRead: 1.5,
|
|
565
|
+
cacheWrite: 18.75,
|
|
566
|
+
},
|
|
567
|
+
contextWindow: 200000,
|
|
568
|
+
maxTokens: 32000,
|
|
569
|
+
} satisfies Model<"anthropic-messages">,
|
|
570
|
+
"anthropic/claude-opus-4.5": {
|
|
571
|
+
id: "anthropic/claude-opus-4.5",
|
|
572
|
+
name: "Claude Opus 4.5",
|
|
573
|
+
api: "anthropic-messages",
|
|
574
|
+
provider: "vercel-ai-gateway",
|
|
575
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
576
|
+
reasoning: true,
|
|
577
|
+
input: ["text", "image"],
|
|
578
|
+
cost: {
|
|
579
|
+
input: 5,
|
|
580
|
+
output: 25,
|
|
581
|
+
cacheRead: 0.5,
|
|
582
|
+
cacheWrite: 6.25,
|
|
583
|
+
},
|
|
584
|
+
contextWindow: 200000,
|
|
585
|
+
maxTokens: 64000,
|
|
586
|
+
} satisfies Model<"anthropic-messages">,
|
|
587
|
+
"anthropic/claude-opus-4.6": {
|
|
588
|
+
id: "anthropic/claude-opus-4.6",
|
|
589
|
+
name: "Claude Opus 4.6",
|
|
590
|
+
api: "anthropic-messages",
|
|
591
|
+
provider: "vercel-ai-gateway",
|
|
592
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
593
|
+
compat: {"forceAdaptiveThinking":true},
|
|
594
|
+
reasoning: true,
|
|
595
|
+
thinkingLevelMap: {"max":"max"},
|
|
596
|
+
input: ["text", "image"],
|
|
597
|
+
cost: {
|
|
598
|
+
input: 5,
|
|
599
|
+
output: 25,
|
|
600
|
+
cacheRead: 0.5,
|
|
601
|
+
cacheWrite: 6.25,
|
|
602
|
+
},
|
|
603
|
+
contextWindow: 1000000,
|
|
604
|
+
maxTokens: 128000,
|
|
605
|
+
} satisfies Model<"anthropic-messages">,
|
|
606
|
+
"anthropic/claude-opus-4.7": {
|
|
607
|
+
id: "anthropic/claude-opus-4.7",
|
|
608
|
+
name: "Claude Opus 4.7",
|
|
609
|
+
api: "anthropic-messages",
|
|
610
|
+
provider: "vercel-ai-gateway",
|
|
611
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
612
|
+
compat: {"forceAdaptiveThinking":true,"supportsTemperature":false},
|
|
613
|
+
reasoning: true,
|
|
614
|
+
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
615
|
+
input: ["text", "image"],
|
|
616
|
+
cost: {
|
|
617
|
+
input: 5,
|
|
618
|
+
output: 25,
|
|
619
|
+
cacheRead: 0.5,
|
|
620
|
+
cacheWrite: 6.25,
|
|
621
|
+
},
|
|
622
|
+
contextWindow: 1000000,
|
|
623
|
+
maxTokens: 128000,
|
|
624
|
+
} satisfies Model<"anthropic-messages">,
|
|
625
|
+
"anthropic/claude-opus-4.7-fast": {
|
|
626
|
+
id: "anthropic/claude-opus-4.7-fast",
|
|
627
|
+
name: "Claude Opus 4.7 (Fast)",
|
|
628
|
+
api: "anthropic-messages",
|
|
629
|
+
provider: "vercel-ai-gateway",
|
|
630
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
631
|
+
compat: {"forceAdaptiveThinking":true,"supportsTemperature":false},
|
|
632
|
+
reasoning: true,
|
|
633
|
+
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
634
|
+
input: ["text", "image"],
|
|
635
|
+
cost: {
|
|
636
|
+
input: 30,
|
|
637
|
+
output: 150,
|
|
638
|
+
cacheRead: 3,
|
|
639
|
+
cacheWrite: 37.5,
|
|
640
|
+
},
|
|
641
|
+
contextWindow: 1000000,
|
|
642
|
+
maxTokens: 128000,
|
|
643
|
+
} satisfies Model<"anthropic-messages">,
|
|
644
|
+
"anthropic/claude-opus-4.8": {
|
|
645
|
+
id: "anthropic/claude-opus-4.8",
|
|
646
|
+
name: "Claude Opus 4.8",
|
|
647
|
+
api: "anthropic-messages",
|
|
648
|
+
provider: "vercel-ai-gateway",
|
|
649
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
650
|
+
compat: {"forceAdaptiveThinking":true,"supportsTemperature":false},
|
|
651
|
+
reasoning: true,
|
|
652
|
+
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
653
|
+
input: ["text", "image"],
|
|
654
|
+
cost: {
|
|
655
|
+
input: 5,
|
|
656
|
+
output: 25,
|
|
657
|
+
cacheRead: 0.5,
|
|
658
|
+
cacheWrite: 6.25,
|
|
659
|
+
},
|
|
660
|
+
contextWindow: 1000000,
|
|
661
|
+
maxTokens: 128000,
|
|
662
|
+
} satisfies Model<"anthropic-messages">,
|
|
663
|
+
"anthropic/claude-opus-4.8-fast": {
|
|
664
|
+
id: "anthropic/claude-opus-4.8-fast",
|
|
665
|
+
name: "Claude Opus 4.8 (Fast)",
|
|
666
|
+
api: "anthropic-messages",
|
|
667
|
+
provider: "vercel-ai-gateway",
|
|
668
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
669
|
+
compat: {"forceAdaptiveThinking":true,"supportsTemperature":false},
|
|
670
|
+
reasoning: true,
|
|
671
|
+
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
672
|
+
input: ["text", "image"],
|
|
673
|
+
cost: {
|
|
674
|
+
input: 10,
|
|
675
|
+
output: 50,
|
|
676
|
+
cacheRead: 1,
|
|
677
|
+
cacheWrite: 12.5,
|
|
678
|
+
},
|
|
679
|
+
contextWindow: 1000000,
|
|
680
|
+
maxTokens: 128000,
|
|
681
|
+
} satisfies Model<"anthropic-messages">,
|
|
682
|
+
"anthropic/claude-sonnet-4": {
|
|
683
|
+
id: "anthropic/claude-sonnet-4",
|
|
684
|
+
name: "Claude Sonnet 4",
|
|
685
|
+
api: "anthropic-messages",
|
|
686
|
+
provider: "vercel-ai-gateway",
|
|
687
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
688
|
+
reasoning: true,
|
|
689
|
+
input: ["text", "image"],
|
|
690
|
+
cost: {
|
|
691
|
+
input: 3,
|
|
692
|
+
output: 15,
|
|
693
|
+
cacheRead: 0.3,
|
|
694
|
+
cacheWrite: 3.75,
|
|
695
|
+
},
|
|
696
|
+
contextWindow: 1000000,
|
|
697
|
+
maxTokens: 8192,
|
|
698
|
+
} satisfies Model<"anthropic-messages">,
|
|
699
|
+
"anthropic/claude-sonnet-4.5": {
|
|
700
|
+
id: "anthropic/claude-sonnet-4.5",
|
|
701
|
+
name: "Claude Sonnet 4.5",
|
|
702
|
+
api: "anthropic-messages",
|
|
703
|
+
provider: "vercel-ai-gateway",
|
|
704
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
705
|
+
reasoning: true,
|
|
706
|
+
input: ["text", "image"],
|
|
707
|
+
cost: {
|
|
708
|
+
input: 3,
|
|
709
|
+
output: 15,
|
|
710
|
+
cacheRead: 0.3,
|
|
711
|
+
cacheWrite: 3.75,
|
|
712
|
+
},
|
|
713
|
+
contextWindow: 1000000,
|
|
714
|
+
maxTokens: 64000,
|
|
715
|
+
} satisfies Model<"anthropic-messages">,
|
|
716
|
+
"anthropic/claude-sonnet-4.6": {
|
|
717
|
+
id: "anthropic/claude-sonnet-4.6",
|
|
718
|
+
name: "Claude Sonnet 4.6",
|
|
719
|
+
api: "anthropic-messages",
|
|
720
|
+
provider: "vercel-ai-gateway",
|
|
721
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
722
|
+
compat: {"forceAdaptiveThinking":true},
|
|
723
|
+
reasoning: true,
|
|
724
|
+
thinkingLevelMap: {"max":"max"},
|
|
725
|
+
input: ["text", "image"],
|
|
726
|
+
cost: {
|
|
727
|
+
input: 3,
|
|
728
|
+
output: 15,
|
|
729
|
+
cacheRead: 0.3,
|
|
730
|
+
cacheWrite: 3.75,
|
|
731
|
+
},
|
|
732
|
+
contextWindow: 1000000,
|
|
733
|
+
maxTokens: 128000,
|
|
734
|
+
} satisfies Model<"anthropic-messages">,
|
|
735
|
+
"anthropic/claude-sonnet-5": {
|
|
736
|
+
id: "anthropic/claude-sonnet-5",
|
|
737
|
+
name: "Claude Sonnet 5",
|
|
738
|
+
api: "anthropic-messages",
|
|
739
|
+
provider: "vercel-ai-gateway",
|
|
740
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
741
|
+
compat: {"forceAdaptiveThinking":true},
|
|
742
|
+
reasoning: true,
|
|
743
|
+
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
744
|
+
input: ["text", "image"],
|
|
745
|
+
cost: {
|
|
746
|
+
input: 2,
|
|
747
|
+
output: 10,
|
|
748
|
+
cacheRead: 0.2,
|
|
749
|
+
cacheWrite: 2.5,
|
|
750
|
+
},
|
|
751
|
+
contextWindow: 1000000,
|
|
752
|
+
maxTokens: 128000,
|
|
753
|
+
} satisfies Model<"anthropic-messages">,
|
|
754
|
+
"arcee-ai/trinity-large-thinking": {
|
|
755
|
+
id: "arcee-ai/trinity-large-thinking",
|
|
756
|
+
name: "Trinity Large Thinking",
|
|
757
|
+
api: "anthropic-messages",
|
|
758
|
+
provider: "vercel-ai-gateway",
|
|
759
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
760
|
+
reasoning: true,
|
|
761
|
+
input: ["text"],
|
|
762
|
+
cost: {
|
|
763
|
+
input: 0.25,
|
|
764
|
+
output: 0.9,
|
|
765
|
+
cacheRead: 0,
|
|
766
|
+
cacheWrite: 0,
|
|
767
|
+
},
|
|
768
|
+
contextWindow: 262100,
|
|
769
|
+
maxTokens: 80000,
|
|
770
|
+
} satisfies Model<"anthropic-messages">,
|
|
771
|
+
"arcee-ai/trinity-mini": {
|
|
772
|
+
id: "arcee-ai/trinity-mini",
|
|
773
|
+
name: "Trinity Mini",
|
|
774
|
+
api: "anthropic-messages",
|
|
775
|
+
provider: "vercel-ai-gateway",
|
|
776
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
777
|
+
reasoning: false,
|
|
778
|
+
input: ["text"],
|
|
779
|
+
cost: {
|
|
780
|
+
input: 0.045,
|
|
781
|
+
output: 0.15,
|
|
782
|
+
cacheRead: 0,
|
|
783
|
+
cacheWrite: 0,
|
|
784
|
+
},
|
|
785
|
+
contextWindow: 131072,
|
|
786
|
+
maxTokens: 131072,
|
|
787
|
+
} satisfies Model<"anthropic-messages">,
|
|
788
|
+
"bytedance/seed-1.6": {
|
|
789
|
+
id: "bytedance/seed-1.6",
|
|
790
|
+
name: "Seed 1.6",
|
|
791
|
+
api: "anthropic-messages",
|
|
792
|
+
provider: "vercel-ai-gateway",
|
|
793
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
794
|
+
reasoning: true,
|
|
795
|
+
input: ["text", "image"],
|
|
796
|
+
cost: {
|
|
797
|
+
input: 0.25,
|
|
798
|
+
output: 2,
|
|
799
|
+
cacheRead: 0.05,
|
|
800
|
+
cacheWrite: 0,
|
|
801
|
+
},
|
|
802
|
+
contextWindow: 256000,
|
|
803
|
+
maxTokens: 32000,
|
|
804
|
+
} satisfies Model<"anthropic-messages">,
|
|
805
|
+
"bytedance/seed-1.8": {
|
|
806
|
+
id: "bytedance/seed-1.8",
|
|
807
|
+
name: "Bytedance Seed 1.8",
|
|
808
|
+
api: "anthropic-messages",
|
|
809
|
+
provider: "vercel-ai-gateway",
|
|
810
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
811
|
+
reasoning: true,
|
|
812
|
+
input: ["text", "image"],
|
|
813
|
+
cost: {
|
|
814
|
+
input: 0.25,
|
|
815
|
+
output: 2,
|
|
816
|
+
cacheRead: 0.05,
|
|
817
|
+
cacheWrite: 0,
|
|
818
|
+
},
|
|
819
|
+
contextWindow: 256000,
|
|
820
|
+
maxTokens: 64000,
|
|
821
|
+
} satisfies Model<"anthropic-messages">,
|
|
822
|
+
"cohere/command-a": {
|
|
823
|
+
id: "cohere/command-a",
|
|
824
|
+
name: "Command A",
|
|
825
|
+
api: "anthropic-messages",
|
|
826
|
+
provider: "vercel-ai-gateway",
|
|
827
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
828
|
+
reasoning: false,
|
|
829
|
+
input: ["text"],
|
|
830
|
+
cost: {
|
|
831
|
+
input: 2.5,
|
|
832
|
+
output: 10,
|
|
833
|
+
cacheRead: 0,
|
|
834
|
+
cacheWrite: 0,
|
|
835
|
+
},
|
|
836
|
+
contextWindow: 256000,
|
|
837
|
+
maxTokens: 8000,
|
|
838
|
+
} satisfies Model<"anthropic-messages">,
|
|
839
|
+
"deepseek/deepseek-r1": {
|
|
840
|
+
id: "deepseek/deepseek-r1",
|
|
841
|
+
name: "DeepSeek-R1",
|
|
842
|
+
api: "anthropic-messages",
|
|
843
|
+
provider: "vercel-ai-gateway",
|
|
844
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
845
|
+
reasoning: true,
|
|
846
|
+
input: ["text"],
|
|
847
|
+
cost: {
|
|
848
|
+
input: 1.35,
|
|
849
|
+
output: 5.4,
|
|
850
|
+
cacheRead: 0,
|
|
851
|
+
cacheWrite: 0,
|
|
852
|
+
},
|
|
853
|
+
contextWindow: 128000,
|
|
854
|
+
maxTokens: 8192,
|
|
855
|
+
} satisfies Model<"anthropic-messages">,
|
|
856
|
+
"deepseek/deepseek-v3": {
|
|
857
|
+
id: "deepseek/deepseek-v3",
|
|
858
|
+
name: "DeepSeek V3 0324",
|
|
859
|
+
api: "anthropic-messages",
|
|
860
|
+
provider: "vercel-ai-gateway",
|
|
861
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
862
|
+
reasoning: false,
|
|
863
|
+
input: ["text"],
|
|
864
|
+
cost: {
|
|
865
|
+
input: 0.27,
|
|
866
|
+
output: 1.12,
|
|
867
|
+
cacheRead: 0.135,
|
|
868
|
+
cacheWrite: 0,
|
|
869
|
+
},
|
|
870
|
+
contextWindow: 163840,
|
|
871
|
+
maxTokens: 163840,
|
|
872
|
+
} satisfies Model<"anthropic-messages">,
|
|
873
|
+
"deepseek/deepseek-v3.1": {
|
|
874
|
+
id: "deepseek/deepseek-v3.1",
|
|
875
|
+
name: "DeepSeek V3.1",
|
|
876
|
+
api: "anthropic-messages",
|
|
877
|
+
provider: "vercel-ai-gateway",
|
|
878
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
879
|
+
reasoning: true,
|
|
880
|
+
input: ["text"],
|
|
881
|
+
cost: {
|
|
882
|
+
input: 0.25,
|
|
883
|
+
output: 0.95,
|
|
884
|
+
cacheRead: 0.13,
|
|
885
|
+
cacheWrite: 0,
|
|
886
|
+
},
|
|
887
|
+
contextWindow: 163840,
|
|
888
|
+
maxTokens: 128000,
|
|
889
|
+
} satisfies Model<"anthropic-messages">,
|
|
890
|
+
"deepseek/deepseek-v3.1-terminus": {
|
|
891
|
+
id: "deepseek/deepseek-v3.1-terminus",
|
|
892
|
+
name: "DeepSeek V3.1 Terminus",
|
|
893
|
+
api: "anthropic-messages",
|
|
894
|
+
provider: "vercel-ai-gateway",
|
|
895
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
896
|
+
reasoning: true,
|
|
897
|
+
input: ["text"],
|
|
898
|
+
cost: {
|
|
899
|
+
input: 0.27,
|
|
900
|
+
output: 1,
|
|
901
|
+
cacheRead: 0.135,
|
|
902
|
+
cacheWrite: 0,
|
|
903
|
+
},
|
|
904
|
+
contextWindow: 131072,
|
|
905
|
+
maxTokens: 65536,
|
|
906
|
+
} satisfies Model<"anthropic-messages">,
|
|
907
|
+
"deepseek/deepseek-v3.2": {
|
|
908
|
+
id: "deepseek/deepseek-v3.2",
|
|
909
|
+
name: "DeepSeek V3.2",
|
|
910
|
+
api: "anthropic-messages",
|
|
911
|
+
provider: "vercel-ai-gateway",
|
|
912
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
913
|
+
reasoning: false,
|
|
914
|
+
input: ["text"],
|
|
915
|
+
cost: {
|
|
916
|
+
input: 0.28,
|
|
917
|
+
output: 0.42,
|
|
918
|
+
cacheRead: 0.028,
|
|
919
|
+
cacheWrite: 0,
|
|
920
|
+
},
|
|
921
|
+
contextWindow: 128000,
|
|
922
|
+
maxTokens: 8000,
|
|
923
|
+
} satisfies Model<"anthropic-messages">,
|
|
924
|
+
"deepseek/deepseek-v3.2-thinking": {
|
|
925
|
+
id: "deepseek/deepseek-v3.2-thinking",
|
|
926
|
+
name: "DeepSeek V3.2 Thinking",
|
|
927
|
+
api: "anthropic-messages",
|
|
928
|
+
provider: "vercel-ai-gateway",
|
|
929
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
930
|
+
reasoning: true,
|
|
931
|
+
input: ["text"],
|
|
932
|
+
cost: {
|
|
933
|
+
input: 0.62,
|
|
934
|
+
output: 1.85,
|
|
935
|
+
cacheRead: 0,
|
|
936
|
+
cacheWrite: 0,
|
|
937
|
+
},
|
|
938
|
+
contextWindow: 128000,
|
|
939
|
+
maxTokens: 8000,
|
|
940
|
+
} satisfies Model<"anthropic-messages">,
|
|
941
|
+
"deepseek/deepseek-v4-flash": {
|
|
942
|
+
id: "deepseek/deepseek-v4-flash",
|
|
943
|
+
name: "DeepSeek V4 Flash",
|
|
944
|
+
api: "anthropic-messages",
|
|
945
|
+
provider: "vercel-ai-gateway",
|
|
946
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
947
|
+
reasoning: true,
|
|
948
|
+
input: ["text"],
|
|
949
|
+
cost: {
|
|
950
|
+
input: 0.14,
|
|
951
|
+
output: 0.28,
|
|
952
|
+
cacheRead: 0.028,
|
|
953
|
+
cacheWrite: 0,
|
|
954
|
+
},
|
|
955
|
+
contextWindow: 1000000,
|
|
956
|
+
maxTokens: 384000,
|
|
957
|
+
} satisfies Model<"anthropic-messages">,
|
|
958
|
+
"deepseek/deepseek-v4-pro": {
|
|
959
|
+
id: "deepseek/deepseek-v4-pro",
|
|
960
|
+
name: "DeepSeek V4 Pro",
|
|
961
|
+
api: "anthropic-messages",
|
|
962
|
+
provider: "vercel-ai-gateway",
|
|
963
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
964
|
+
reasoning: true,
|
|
965
|
+
input: ["text"],
|
|
966
|
+
cost: {
|
|
967
|
+
input: 0.435,
|
|
968
|
+
output: 0.87,
|
|
969
|
+
cacheRead: 0.0036,
|
|
970
|
+
cacheWrite: 0,
|
|
971
|
+
},
|
|
972
|
+
contextWindow: 1000000,
|
|
973
|
+
maxTokens: 384000,
|
|
974
|
+
} satisfies Model<"anthropic-messages">,
|
|
975
|
+
"google/gemini-2.5-flash": {
|
|
976
|
+
id: "google/gemini-2.5-flash",
|
|
977
|
+
name: "Gemini 2.5 Flash",
|
|
978
|
+
api: "anthropic-messages",
|
|
979
|
+
provider: "vercel-ai-gateway",
|
|
980
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
981
|
+
reasoning: true,
|
|
982
|
+
input: ["text", "image"],
|
|
983
|
+
cost: {
|
|
984
|
+
input: 0.3,
|
|
985
|
+
output: 2.5,
|
|
986
|
+
cacheRead: 0.03,
|
|
987
|
+
cacheWrite: 0,
|
|
988
|
+
},
|
|
989
|
+
contextWindow: 1000000,
|
|
990
|
+
maxTokens: 65536,
|
|
991
|
+
} satisfies Model<"anthropic-messages">,
|
|
992
|
+
"google/gemini-2.5-flash-lite": {
|
|
993
|
+
id: "google/gemini-2.5-flash-lite",
|
|
994
|
+
name: "Gemini 2.5 Flash Lite",
|
|
995
|
+
api: "anthropic-messages",
|
|
996
|
+
provider: "vercel-ai-gateway",
|
|
997
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
998
|
+
reasoning: true,
|
|
999
|
+
input: ["text", "image"],
|
|
1000
|
+
cost: {
|
|
1001
|
+
input: 0.1,
|
|
1002
|
+
output: 0.4,
|
|
1003
|
+
cacheRead: 0.01,
|
|
1004
|
+
cacheWrite: 0,
|
|
1005
|
+
},
|
|
1006
|
+
contextWindow: 1048576,
|
|
1007
|
+
maxTokens: 65536,
|
|
1008
|
+
} satisfies Model<"anthropic-messages">,
|
|
1009
|
+
"google/gemini-2.5-pro": {
|
|
1010
|
+
id: "google/gemini-2.5-pro",
|
|
1011
|
+
name: "Gemini 2.5 Pro",
|
|
1012
|
+
api: "anthropic-messages",
|
|
1013
|
+
provider: "vercel-ai-gateway",
|
|
1014
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1015
|
+
reasoning: true,
|
|
1016
|
+
input: ["text", "image"],
|
|
1017
|
+
cost: {
|
|
1018
|
+
input: 1.25,
|
|
1019
|
+
output: 10,
|
|
1020
|
+
cacheRead: 0.125,
|
|
1021
|
+
cacheWrite: 0,
|
|
1022
|
+
},
|
|
1023
|
+
contextWindow: 1048576,
|
|
1024
|
+
maxTokens: 65536,
|
|
1025
|
+
} satisfies Model<"anthropic-messages">,
|
|
1026
|
+
"google/gemini-3-flash": {
|
|
1027
|
+
id: "google/gemini-3-flash",
|
|
1028
|
+
name: "Gemini 3 Flash",
|
|
1029
|
+
api: "anthropic-messages",
|
|
1030
|
+
provider: "vercel-ai-gateway",
|
|
1031
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1032
|
+
reasoning: true,
|
|
1033
|
+
input: ["text", "image"],
|
|
1034
|
+
cost: {
|
|
1035
|
+
input: 0.5,
|
|
1036
|
+
output: 3,
|
|
1037
|
+
cacheRead: 0.05,
|
|
1038
|
+
cacheWrite: 0,
|
|
1039
|
+
},
|
|
1040
|
+
contextWindow: 1000000,
|
|
1041
|
+
maxTokens: 65000,
|
|
1042
|
+
} satisfies Model<"anthropic-messages">,
|
|
1043
|
+
"google/gemini-3-pro-preview": {
|
|
1044
|
+
id: "google/gemini-3-pro-preview",
|
|
1045
|
+
name: "Gemini 3 Pro Preview",
|
|
1046
|
+
api: "anthropic-messages",
|
|
1047
|
+
provider: "vercel-ai-gateway",
|
|
1048
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1049
|
+
reasoning: true,
|
|
1050
|
+
input: ["text", "image"],
|
|
1051
|
+
cost: {
|
|
1052
|
+
input: 2,
|
|
1053
|
+
output: 12,
|
|
1054
|
+
cacheRead: 0.2,
|
|
1055
|
+
cacheWrite: 0,
|
|
1056
|
+
},
|
|
1057
|
+
contextWindow: 1000000,
|
|
1058
|
+
maxTokens: 64000,
|
|
1059
|
+
} satisfies Model<"anthropic-messages">,
|
|
1060
|
+
"google/gemini-3.1-flash-lite": {
|
|
1061
|
+
id: "google/gemini-3.1-flash-lite",
|
|
1062
|
+
name: "Gemini 3.1 Flash Lite",
|
|
1063
|
+
api: "anthropic-messages",
|
|
1064
|
+
provider: "vercel-ai-gateway",
|
|
1065
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1066
|
+
reasoning: true,
|
|
1067
|
+
input: ["text", "image"],
|
|
1068
|
+
cost: {
|
|
1069
|
+
input: 0.25,
|
|
1070
|
+
output: 1.5,
|
|
1071
|
+
cacheRead: 0.03,
|
|
1072
|
+
cacheWrite: 0,
|
|
1073
|
+
},
|
|
1074
|
+
contextWindow: 1000000,
|
|
1075
|
+
maxTokens: 65000,
|
|
1076
|
+
} satisfies Model<"anthropic-messages">,
|
|
1077
|
+
"google/gemini-3.1-flash-lite-preview": {
|
|
1078
|
+
id: "google/gemini-3.1-flash-lite-preview",
|
|
1079
|
+
name: "Gemini 3.1 Flash Lite Preview",
|
|
1080
|
+
api: "anthropic-messages",
|
|
1081
|
+
provider: "vercel-ai-gateway",
|
|
1082
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1083
|
+
reasoning: true,
|
|
1084
|
+
input: ["text", "image"],
|
|
1085
|
+
cost: {
|
|
1086
|
+
input: 0.25,
|
|
1087
|
+
output: 1.5,
|
|
1088
|
+
cacheRead: 0.03,
|
|
1089
|
+
cacheWrite: 0,
|
|
1090
|
+
},
|
|
1091
|
+
contextWindow: 1000000,
|
|
1092
|
+
maxTokens: 65000,
|
|
1093
|
+
} satisfies Model<"anthropic-messages">,
|
|
1094
|
+
"google/gemini-3.1-pro-preview": {
|
|
1095
|
+
id: "google/gemini-3.1-pro-preview",
|
|
1096
|
+
name: "Gemini 3.1 Pro Preview",
|
|
1097
|
+
api: "anthropic-messages",
|
|
1098
|
+
provider: "vercel-ai-gateway",
|
|
1099
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1100
|
+
reasoning: true,
|
|
1101
|
+
input: ["text", "image"],
|
|
1102
|
+
cost: {
|
|
1103
|
+
input: 2,
|
|
1104
|
+
output: 12,
|
|
1105
|
+
cacheRead: 0.2,
|
|
1106
|
+
cacheWrite: 0,
|
|
1107
|
+
},
|
|
1108
|
+
contextWindow: 1000000,
|
|
1109
|
+
maxTokens: 64000,
|
|
1110
|
+
} satisfies Model<"anthropic-messages">,
|
|
1111
|
+
"google/gemini-3.5-flash": {
|
|
1112
|
+
id: "google/gemini-3.5-flash",
|
|
1113
|
+
name: "Gemini 3.5 Flash",
|
|
1114
|
+
api: "anthropic-messages",
|
|
1115
|
+
provider: "vercel-ai-gateway",
|
|
1116
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1117
|
+
reasoning: true,
|
|
1118
|
+
input: ["text", "image"],
|
|
1119
|
+
cost: {
|
|
1120
|
+
input: 1.5,
|
|
1121
|
+
output: 9,
|
|
1122
|
+
cacheRead: 0.15,
|
|
1123
|
+
cacheWrite: 0,
|
|
1124
|
+
},
|
|
1125
|
+
contextWindow: 1000000,
|
|
1126
|
+
maxTokens: 64000,
|
|
1127
|
+
} satisfies Model<"anthropic-messages">,
|
|
1128
|
+
"google/gemma-4-26b-a4b-it": {
|
|
1129
|
+
id: "google/gemma-4-26b-a4b-it",
|
|
1130
|
+
name: "Gemma 4 26B A4B IT",
|
|
1131
|
+
api: "anthropic-messages",
|
|
1132
|
+
provider: "vercel-ai-gateway",
|
|
1133
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1134
|
+
reasoning: true,
|
|
1135
|
+
input: ["text", "image"],
|
|
1136
|
+
cost: {
|
|
1137
|
+
input: 0.15,
|
|
1138
|
+
output: 0.6,
|
|
1139
|
+
cacheRead: 0.015,
|
|
1140
|
+
cacheWrite: 0,
|
|
1141
|
+
},
|
|
1142
|
+
contextWindow: 262144,
|
|
1143
|
+
maxTokens: 131072,
|
|
1144
|
+
} satisfies Model<"anthropic-messages">,
|
|
1145
|
+
"google/gemma-4-31b-it": {
|
|
1146
|
+
id: "google/gemma-4-31b-it",
|
|
1147
|
+
name: "Gemma 4 31B IT",
|
|
1148
|
+
api: "anthropic-messages",
|
|
1149
|
+
provider: "vercel-ai-gateway",
|
|
1150
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1151
|
+
reasoning: true,
|
|
1152
|
+
input: ["text", "image"],
|
|
1153
|
+
cost: {
|
|
1154
|
+
input: 0.14,
|
|
1155
|
+
output: 0.4,
|
|
1156
|
+
cacheRead: 0,
|
|
1157
|
+
cacheWrite: 0,
|
|
1158
|
+
},
|
|
1159
|
+
contextWindow: 262144,
|
|
1160
|
+
maxTokens: 131072,
|
|
1161
|
+
} satisfies Model<"anthropic-messages">,
|
|
1162
|
+
"inception/mercury-2": {
|
|
1163
|
+
id: "inception/mercury-2",
|
|
1164
|
+
name: "Mercury 2",
|
|
1165
|
+
api: "anthropic-messages",
|
|
1166
|
+
provider: "vercel-ai-gateway",
|
|
1167
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1168
|
+
reasoning: true,
|
|
1169
|
+
input: ["text"],
|
|
1170
|
+
cost: {
|
|
1171
|
+
input: 0.25,
|
|
1172
|
+
output: 0.75,
|
|
1173
|
+
cacheRead: 0.025,
|
|
1174
|
+
cacheWrite: 0,
|
|
1175
|
+
},
|
|
1176
|
+
contextWindow: 128000,
|
|
1177
|
+
maxTokens: 128000,
|
|
1178
|
+
} satisfies Model<"anthropic-messages">,
|
|
1179
|
+
"inception/mercury-coder-small": {
|
|
1180
|
+
id: "inception/mercury-coder-small",
|
|
1181
|
+
name: "Mercury Coder Small Beta",
|
|
1182
|
+
api: "anthropic-messages",
|
|
1183
|
+
provider: "vercel-ai-gateway",
|
|
1184
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1185
|
+
reasoning: false,
|
|
1186
|
+
input: ["text"],
|
|
1187
|
+
cost: {
|
|
1188
|
+
input: 0.25,
|
|
1189
|
+
output: 1,
|
|
1190
|
+
cacheRead: 0,
|
|
1191
|
+
cacheWrite: 0,
|
|
1192
|
+
},
|
|
1193
|
+
contextWindow: 32000,
|
|
1194
|
+
maxTokens: 16384,
|
|
1195
|
+
} satisfies Model<"anthropic-messages">,
|
|
1196
|
+
"interfaze/interfaze-beta": {
|
|
1197
|
+
id: "interfaze/interfaze-beta",
|
|
1198
|
+
name: "Interfaze Beta",
|
|
1199
|
+
api: "anthropic-messages",
|
|
1200
|
+
provider: "vercel-ai-gateway",
|
|
1201
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1202
|
+
reasoning: true,
|
|
1203
|
+
input: ["text", "image"],
|
|
1204
|
+
cost: {
|
|
1205
|
+
input: 1.5,
|
|
1206
|
+
output: 3.5,
|
|
1207
|
+
cacheRead: 0,
|
|
1208
|
+
cacheWrite: 0,
|
|
1209
|
+
},
|
|
1210
|
+
contextWindow: 1000000,
|
|
1211
|
+
maxTokens: 32000,
|
|
1212
|
+
} satisfies Model<"anthropic-messages">,
|
|
1213
|
+
"kwaipilot/kat-coder-air-v2.5": {
|
|
1214
|
+
id: "kwaipilot/kat-coder-air-v2.5",
|
|
1215
|
+
name: "Kat Coder Air V2.5",
|
|
1216
|
+
api: "anthropic-messages",
|
|
1217
|
+
provider: "vercel-ai-gateway",
|
|
1218
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1219
|
+
reasoning: true,
|
|
1220
|
+
input: ["text"],
|
|
1221
|
+
cost: {
|
|
1222
|
+
input: 0.15,
|
|
1223
|
+
output: 0.6,
|
|
1224
|
+
cacheRead: 0.03,
|
|
1225
|
+
cacheWrite: 0,
|
|
1226
|
+
},
|
|
1227
|
+
contextWindow: 256000,
|
|
1228
|
+
maxTokens: 80000,
|
|
1229
|
+
} satisfies Model<"anthropic-messages">,
|
|
1230
|
+
"kwaipilot/kat-coder-pro-v1": {
|
|
1231
|
+
id: "kwaipilot/kat-coder-pro-v1",
|
|
1232
|
+
name: "KAT-Coder-Pro V1",
|
|
1233
|
+
api: "anthropic-messages",
|
|
1234
|
+
provider: "vercel-ai-gateway",
|
|
1235
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1236
|
+
reasoning: false,
|
|
1237
|
+
input: ["text"],
|
|
1238
|
+
cost: {
|
|
1239
|
+
input: 0.3,
|
|
1240
|
+
output: 1.2,
|
|
1241
|
+
cacheRead: 0.06,
|
|
1242
|
+
cacheWrite: 0,
|
|
1243
|
+
},
|
|
1244
|
+
contextWindow: 256000,
|
|
1245
|
+
maxTokens: 32000,
|
|
1246
|
+
} satisfies Model<"anthropic-messages">,
|
|
1247
|
+
"kwaipilot/kat-coder-pro-v2": {
|
|
1248
|
+
id: "kwaipilot/kat-coder-pro-v2",
|
|
1249
|
+
name: "Kat Coder Pro V2",
|
|
1250
|
+
api: "anthropic-messages",
|
|
1251
|
+
provider: "vercel-ai-gateway",
|
|
1252
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1253
|
+
reasoning: true,
|
|
1254
|
+
input: ["text"],
|
|
1255
|
+
cost: {
|
|
1256
|
+
input: 0.3,
|
|
1257
|
+
output: 1.2,
|
|
1258
|
+
cacheRead: 0.06,
|
|
1259
|
+
cacheWrite: 0,
|
|
1260
|
+
},
|
|
1261
|
+
contextWindow: 256000,
|
|
1262
|
+
maxTokens: 256000,
|
|
1263
|
+
} satisfies Model<"anthropic-messages">,
|
|
1264
|
+
"kwaipilot/kat-coder-pro-v2.5": {
|
|
1265
|
+
id: "kwaipilot/kat-coder-pro-v2.5",
|
|
1266
|
+
name: "Kat Coder Pro V2.5",
|
|
1267
|
+
api: "anthropic-messages",
|
|
1268
|
+
provider: "vercel-ai-gateway",
|
|
1269
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1270
|
+
reasoning: true,
|
|
1271
|
+
input: ["text"],
|
|
1272
|
+
cost: {
|
|
1273
|
+
input: 0.74,
|
|
1274
|
+
output: 2.96,
|
|
1275
|
+
cacheRead: 0.15,
|
|
1276
|
+
cacheWrite: 0,
|
|
1277
|
+
},
|
|
1278
|
+
contextWindow: 256000,
|
|
1279
|
+
maxTokens: 80000,
|
|
1280
|
+
} satisfies Model<"anthropic-messages">,
|
|
1281
|
+
"meta/llama-3.1-70b": {
|
|
1282
|
+
id: "meta/llama-3.1-70b",
|
|
1283
|
+
name: "Llama 3.1 70B Instruct",
|
|
1284
|
+
api: "anthropic-messages",
|
|
1285
|
+
provider: "vercel-ai-gateway",
|
|
1286
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1287
|
+
reasoning: false,
|
|
1288
|
+
input: ["text"],
|
|
1289
|
+
cost: {
|
|
1290
|
+
input: 0.72,
|
|
1291
|
+
output: 0.72,
|
|
1292
|
+
cacheRead: 0,
|
|
1293
|
+
cacheWrite: 0,
|
|
1294
|
+
},
|
|
1295
|
+
contextWindow: 128000,
|
|
1296
|
+
maxTokens: 8192,
|
|
1297
|
+
} satisfies Model<"anthropic-messages">,
|
|
1298
|
+
"meta/llama-3.1-8b": {
|
|
1299
|
+
id: "meta/llama-3.1-8b",
|
|
1300
|
+
name: "Llama 3.1 8B Instruct",
|
|
1301
|
+
api: "anthropic-messages",
|
|
1302
|
+
provider: "vercel-ai-gateway",
|
|
1303
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1304
|
+
reasoning: false,
|
|
1305
|
+
input: ["text"],
|
|
1306
|
+
cost: {
|
|
1307
|
+
input: 0.22,
|
|
1308
|
+
output: 0.22,
|
|
1309
|
+
cacheRead: 0,
|
|
1310
|
+
cacheWrite: 0,
|
|
1311
|
+
},
|
|
1312
|
+
contextWindow: 128000,
|
|
1313
|
+
maxTokens: 8192,
|
|
1314
|
+
} satisfies Model<"anthropic-messages">,
|
|
1315
|
+
"meta/llama-3.2-11b": {
|
|
1316
|
+
id: "meta/llama-3.2-11b",
|
|
1317
|
+
name: "Llama 3.2 11B Vision Instruct",
|
|
1318
|
+
api: "anthropic-messages",
|
|
1319
|
+
provider: "vercel-ai-gateway",
|
|
1320
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1321
|
+
reasoning: false,
|
|
1322
|
+
input: ["text", "image"],
|
|
1323
|
+
cost: {
|
|
1324
|
+
input: 0.16,
|
|
1325
|
+
output: 0.16,
|
|
1326
|
+
cacheRead: 0,
|
|
1327
|
+
cacheWrite: 0,
|
|
1328
|
+
},
|
|
1329
|
+
contextWindow: 128000,
|
|
1330
|
+
maxTokens: 8192,
|
|
1331
|
+
} satisfies Model<"anthropic-messages">,
|
|
1332
|
+
"meta/llama-3.2-90b": {
|
|
1333
|
+
id: "meta/llama-3.2-90b",
|
|
1334
|
+
name: "Llama 3.2 90B Vision Instruct",
|
|
1335
|
+
api: "anthropic-messages",
|
|
1336
|
+
provider: "vercel-ai-gateway",
|
|
1337
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1338
|
+
reasoning: false,
|
|
1339
|
+
input: ["text", "image"],
|
|
1340
|
+
cost: {
|
|
1341
|
+
input: 0.72,
|
|
1342
|
+
output: 0.72,
|
|
1343
|
+
cacheRead: 0,
|
|
1344
|
+
cacheWrite: 0,
|
|
1345
|
+
},
|
|
1346
|
+
contextWindow: 128000,
|
|
1347
|
+
maxTokens: 8192,
|
|
1348
|
+
} satisfies Model<"anthropic-messages">,
|
|
1349
|
+
"meta/llama-3.3-70b": {
|
|
1350
|
+
id: "meta/llama-3.3-70b",
|
|
1351
|
+
name: "Llama 3.3 70B Instruct",
|
|
1352
|
+
api: "anthropic-messages",
|
|
1353
|
+
provider: "vercel-ai-gateway",
|
|
1354
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1355
|
+
reasoning: false,
|
|
1356
|
+
input: ["text"],
|
|
1357
|
+
cost: {
|
|
1358
|
+
input: 0.72,
|
|
1359
|
+
output: 0.72,
|
|
1360
|
+
cacheRead: 0,
|
|
1361
|
+
cacheWrite: 0,
|
|
1362
|
+
},
|
|
1363
|
+
contextWindow: 128000,
|
|
1364
|
+
maxTokens: 8192,
|
|
1365
|
+
} satisfies Model<"anthropic-messages">,
|
|
1366
|
+
"meta/llama-4-maverick": {
|
|
1367
|
+
id: "meta/llama-4-maverick",
|
|
1368
|
+
name: "Llama 4 Maverick 17B Instruct",
|
|
1369
|
+
api: "anthropic-messages",
|
|
1370
|
+
provider: "vercel-ai-gateway",
|
|
1371
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1372
|
+
reasoning: false,
|
|
1373
|
+
input: ["text", "image"],
|
|
1374
|
+
cost: {
|
|
1375
|
+
input: 0.24,
|
|
1376
|
+
output: 0.97,
|
|
1377
|
+
cacheRead: 0,
|
|
1378
|
+
cacheWrite: 0,
|
|
1379
|
+
},
|
|
1380
|
+
contextWindow: 128000,
|
|
1381
|
+
maxTokens: 8192,
|
|
1382
|
+
} satisfies Model<"anthropic-messages">,
|
|
1383
|
+
"meta/llama-4-scout": {
|
|
1384
|
+
id: "meta/llama-4-scout",
|
|
1385
|
+
name: "Llama 4 Scout 17B Instruct",
|
|
1386
|
+
api: "anthropic-messages",
|
|
1387
|
+
provider: "vercel-ai-gateway",
|
|
1388
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1389
|
+
reasoning: false,
|
|
1390
|
+
input: ["text", "image"],
|
|
1391
|
+
cost: {
|
|
1392
|
+
input: 0.17,
|
|
1393
|
+
output: 0.66,
|
|
1394
|
+
cacheRead: 0,
|
|
1395
|
+
cacheWrite: 0,
|
|
1396
|
+
},
|
|
1397
|
+
contextWindow: 128000,
|
|
1398
|
+
maxTokens: 8192,
|
|
1399
|
+
} satisfies Model<"anthropic-messages">,
|
|
1400
|
+
"meta/muse-spark-1.1": {
|
|
1401
|
+
id: "meta/muse-spark-1.1",
|
|
1402
|
+
name: "Muse Spark 1.1",
|
|
1403
|
+
api: "anthropic-messages",
|
|
1404
|
+
provider: "vercel-ai-gateway",
|
|
1405
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1406
|
+
reasoning: true,
|
|
1407
|
+
input: ["text", "image"],
|
|
1408
|
+
cost: {
|
|
1409
|
+
input: 1.25,
|
|
1410
|
+
output: 4.25,
|
|
1411
|
+
cacheRead: 0.15,
|
|
1412
|
+
cacheWrite: 0,
|
|
1413
|
+
},
|
|
1414
|
+
contextWindow: 1048576,
|
|
1415
|
+
maxTokens: 1048576,
|
|
1416
|
+
} satisfies Model<"anthropic-messages">,
|
|
1417
|
+
"minimax/minimax-m2": {
|
|
1418
|
+
id: "minimax/minimax-m2",
|
|
1419
|
+
name: "MiniMax M2",
|
|
1420
|
+
api: "anthropic-messages",
|
|
1421
|
+
provider: "vercel-ai-gateway",
|
|
1422
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1423
|
+
reasoning: true,
|
|
1424
|
+
input: ["text"],
|
|
1425
|
+
cost: {
|
|
1426
|
+
input: 0.3,
|
|
1427
|
+
output: 1.2,
|
|
1428
|
+
cacheRead: 0.03,
|
|
1429
|
+
cacheWrite: 0.375,
|
|
1430
|
+
},
|
|
1431
|
+
contextWindow: 205000,
|
|
1432
|
+
maxTokens: 205000,
|
|
1433
|
+
} satisfies Model<"anthropic-messages">,
|
|
1434
|
+
"minimax/minimax-m2.1": {
|
|
1435
|
+
id: "minimax/minimax-m2.1",
|
|
1436
|
+
name: "MiniMax M2.1",
|
|
1437
|
+
api: "anthropic-messages",
|
|
1438
|
+
provider: "vercel-ai-gateway",
|
|
1439
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1440
|
+
reasoning: true,
|
|
1441
|
+
input: ["text"],
|
|
1442
|
+
cost: {
|
|
1443
|
+
input: 0.3,
|
|
1444
|
+
output: 1.2,
|
|
1445
|
+
cacheRead: 0.03,
|
|
1446
|
+
cacheWrite: 0.375,
|
|
1447
|
+
},
|
|
1448
|
+
contextWindow: 204800,
|
|
1449
|
+
maxTokens: 131072,
|
|
1450
|
+
} satisfies Model<"anthropic-messages">,
|
|
1451
|
+
"minimax/minimax-m2.1-lightning": {
|
|
1452
|
+
id: "minimax/minimax-m2.1-lightning",
|
|
1453
|
+
name: "MiniMax M2.1 Lightning",
|
|
1454
|
+
api: "anthropic-messages",
|
|
1455
|
+
provider: "vercel-ai-gateway",
|
|
1456
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1457
|
+
reasoning: true,
|
|
1458
|
+
input: ["text"],
|
|
1459
|
+
cost: {
|
|
1460
|
+
input: 0.3,
|
|
1461
|
+
output: 2.4,
|
|
1462
|
+
cacheRead: 0.03,
|
|
1463
|
+
cacheWrite: 0.375,
|
|
1464
|
+
},
|
|
1465
|
+
contextWindow: 204800,
|
|
1466
|
+
maxTokens: 131072,
|
|
1467
|
+
} satisfies Model<"anthropic-messages">,
|
|
1468
|
+
"minimax/minimax-m2.5": {
|
|
1469
|
+
id: "minimax/minimax-m2.5",
|
|
1470
|
+
name: "MiniMax M2.5",
|
|
1471
|
+
api: "anthropic-messages",
|
|
1472
|
+
provider: "vercel-ai-gateway",
|
|
1473
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1474
|
+
reasoning: true,
|
|
1475
|
+
input: ["text"],
|
|
1476
|
+
cost: {
|
|
1477
|
+
input: 0.3,
|
|
1478
|
+
output: 1.2,
|
|
1479
|
+
cacheRead: 0.03,
|
|
1480
|
+
cacheWrite: 0.375,
|
|
1481
|
+
},
|
|
1482
|
+
contextWindow: 204800,
|
|
1483
|
+
maxTokens: 131000,
|
|
1484
|
+
} satisfies Model<"anthropic-messages">,
|
|
1485
|
+
"minimax/minimax-m2.5-highspeed": {
|
|
1486
|
+
id: "minimax/minimax-m2.5-highspeed",
|
|
1487
|
+
name: "MiniMax M2.5 High Speed",
|
|
1488
|
+
api: "anthropic-messages",
|
|
1489
|
+
provider: "vercel-ai-gateway",
|
|
1490
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1491
|
+
reasoning: true,
|
|
1492
|
+
input: ["text"],
|
|
1493
|
+
cost: {
|
|
1494
|
+
input: 0.6,
|
|
1495
|
+
output: 2.4,
|
|
1496
|
+
cacheRead: 0.03,
|
|
1497
|
+
cacheWrite: 0.375,
|
|
1498
|
+
},
|
|
1499
|
+
contextWindow: 204800,
|
|
1500
|
+
maxTokens: 131000,
|
|
1501
|
+
} satisfies Model<"anthropic-messages">,
|
|
1502
|
+
"minimax/minimax-m2.7": {
|
|
1503
|
+
id: "minimax/minimax-m2.7",
|
|
1504
|
+
name: "MiniMax M2.7",
|
|
1505
|
+
api: "anthropic-messages",
|
|
1506
|
+
provider: "vercel-ai-gateway",
|
|
1507
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1508
|
+
reasoning: true,
|
|
1509
|
+
input: ["text"],
|
|
1510
|
+
cost: {
|
|
1511
|
+
input: 0.3,
|
|
1512
|
+
output: 1.2,
|
|
1513
|
+
cacheRead: 0.06,
|
|
1514
|
+
cacheWrite: 0.375,
|
|
1515
|
+
},
|
|
1516
|
+
contextWindow: 204800,
|
|
1517
|
+
maxTokens: 131000,
|
|
1518
|
+
} satisfies Model<"anthropic-messages">,
|
|
1519
|
+
"minimax/minimax-m2.7-highspeed": {
|
|
1520
|
+
id: "minimax/minimax-m2.7-highspeed",
|
|
1521
|
+
name: "MiniMax M2.7 High Speed",
|
|
1522
|
+
api: "anthropic-messages",
|
|
1523
|
+
provider: "vercel-ai-gateway",
|
|
1524
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1525
|
+
reasoning: true,
|
|
1526
|
+
input: ["text"],
|
|
1527
|
+
cost: {
|
|
1528
|
+
input: 0.6,
|
|
1529
|
+
output: 2.4,
|
|
1530
|
+
cacheRead: 0.06,
|
|
1531
|
+
cacheWrite: 0.375,
|
|
1532
|
+
},
|
|
1533
|
+
contextWindow: 204800,
|
|
1534
|
+
maxTokens: 131100,
|
|
1535
|
+
} satisfies Model<"anthropic-messages">,
|
|
1536
|
+
"minimax/minimax-m3": {
|
|
1537
|
+
id: "minimax/minimax-m3",
|
|
1538
|
+
name: "MiniMax M3",
|
|
1539
|
+
api: "anthropic-messages",
|
|
1540
|
+
provider: "vercel-ai-gateway",
|
|
1541
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1542
|
+
reasoning: true,
|
|
1543
|
+
input: ["text", "image"],
|
|
1544
|
+
cost: {
|
|
1545
|
+
input: 0.3,
|
|
1546
|
+
output: 1.2,
|
|
1547
|
+
cacheRead: 0.06,
|
|
1548
|
+
cacheWrite: 0,
|
|
1549
|
+
},
|
|
1550
|
+
contextWindow: 1000000,
|
|
1551
|
+
maxTokens: 1000000,
|
|
1552
|
+
} satisfies Model<"anthropic-messages">,
|
|
1553
|
+
"mistral/codestral": {
|
|
1554
|
+
id: "mistral/codestral",
|
|
1555
|
+
name: "Mistral Codestral",
|
|
1556
|
+
api: "anthropic-messages",
|
|
1557
|
+
provider: "vercel-ai-gateway",
|
|
1558
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1559
|
+
reasoning: false,
|
|
1560
|
+
input: ["text"],
|
|
1561
|
+
cost: {
|
|
1562
|
+
input: 0.3,
|
|
1563
|
+
output: 0.9,
|
|
1564
|
+
cacheRead: 0,
|
|
1565
|
+
cacheWrite: 0,
|
|
1566
|
+
},
|
|
1567
|
+
contextWindow: 128000,
|
|
1568
|
+
maxTokens: 4000,
|
|
1569
|
+
} satisfies Model<"anthropic-messages">,
|
|
1570
|
+
"mistral/devstral-2": {
|
|
1571
|
+
id: "mistral/devstral-2",
|
|
1572
|
+
name: "Devstral 2",
|
|
1573
|
+
api: "anthropic-messages",
|
|
1574
|
+
provider: "vercel-ai-gateway",
|
|
1575
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1576
|
+
reasoning: false,
|
|
1577
|
+
input: ["text"],
|
|
1578
|
+
cost: {
|
|
1579
|
+
input: 0.4,
|
|
1580
|
+
output: 2,
|
|
1581
|
+
cacheRead: 0,
|
|
1582
|
+
cacheWrite: 0,
|
|
1583
|
+
},
|
|
1584
|
+
contextWindow: 256000,
|
|
1585
|
+
maxTokens: 256000,
|
|
1586
|
+
} satisfies Model<"anthropic-messages">,
|
|
1587
|
+
"mistral/devstral-small-2": {
|
|
1588
|
+
id: "mistral/devstral-small-2",
|
|
1589
|
+
name: "Devstral Small 2",
|
|
1590
|
+
api: "anthropic-messages",
|
|
1591
|
+
provider: "vercel-ai-gateway",
|
|
1592
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1593
|
+
reasoning: false,
|
|
1594
|
+
input: ["text", "image"],
|
|
1595
|
+
cost: {
|
|
1596
|
+
input: 0.1,
|
|
1597
|
+
output: 0.3,
|
|
1598
|
+
cacheRead: 0,
|
|
1599
|
+
cacheWrite: 0,
|
|
1600
|
+
},
|
|
1601
|
+
contextWindow: 256000,
|
|
1602
|
+
maxTokens: 256000,
|
|
1603
|
+
} satisfies Model<"anthropic-messages">,
|
|
1604
|
+
"mistral/magistral-medium": {
|
|
1605
|
+
id: "mistral/magistral-medium",
|
|
1606
|
+
name: "Magistral Medium 2509",
|
|
1607
|
+
api: "anthropic-messages",
|
|
1608
|
+
provider: "vercel-ai-gateway",
|
|
1609
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1610
|
+
reasoning: true,
|
|
1611
|
+
input: ["text", "image"],
|
|
1612
|
+
cost: {
|
|
1613
|
+
input: 2,
|
|
1614
|
+
output: 5,
|
|
1615
|
+
cacheRead: 0,
|
|
1616
|
+
cacheWrite: 0,
|
|
1617
|
+
},
|
|
1618
|
+
contextWindow: 128000,
|
|
1619
|
+
maxTokens: 64000,
|
|
1620
|
+
} satisfies Model<"anthropic-messages">,
|
|
1621
|
+
"mistral/magistral-small": {
|
|
1622
|
+
id: "mistral/magistral-small",
|
|
1623
|
+
name: "Magistral Small 2509",
|
|
1624
|
+
api: "anthropic-messages",
|
|
1625
|
+
provider: "vercel-ai-gateway",
|
|
1626
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1627
|
+
reasoning: true,
|
|
1628
|
+
input: ["text", "image"],
|
|
1629
|
+
cost: {
|
|
1630
|
+
input: 0.5,
|
|
1631
|
+
output: 1.5,
|
|
1632
|
+
cacheRead: 0,
|
|
1633
|
+
cacheWrite: 0,
|
|
1634
|
+
},
|
|
1635
|
+
contextWindow: 128000,
|
|
1636
|
+
maxTokens: 64000,
|
|
1637
|
+
} satisfies Model<"anthropic-messages">,
|
|
1638
|
+
"mistral/ministral-14b": {
|
|
1639
|
+
id: "mistral/ministral-14b",
|
|
1640
|
+
name: "Ministral 14B",
|
|
1641
|
+
api: "anthropic-messages",
|
|
1642
|
+
provider: "vercel-ai-gateway",
|
|
1643
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1644
|
+
reasoning: false,
|
|
1645
|
+
input: ["text", "image"],
|
|
1646
|
+
cost: {
|
|
1647
|
+
input: 0.2,
|
|
1648
|
+
output: 0.2,
|
|
1649
|
+
cacheRead: 0,
|
|
1650
|
+
cacheWrite: 0,
|
|
1651
|
+
},
|
|
1652
|
+
contextWindow: 256000,
|
|
1653
|
+
maxTokens: 256000,
|
|
1654
|
+
} satisfies Model<"anthropic-messages">,
|
|
1655
|
+
"mistral/ministral-3b": {
|
|
1656
|
+
id: "mistral/ministral-3b",
|
|
1657
|
+
name: "Ministral 3B",
|
|
1658
|
+
api: "anthropic-messages",
|
|
1659
|
+
provider: "vercel-ai-gateway",
|
|
1660
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1661
|
+
reasoning: false,
|
|
1662
|
+
input: ["text"],
|
|
1663
|
+
cost: {
|
|
1664
|
+
input: 0.1,
|
|
1665
|
+
output: 0.1,
|
|
1666
|
+
cacheRead: 0,
|
|
1667
|
+
cacheWrite: 0,
|
|
1668
|
+
},
|
|
1669
|
+
contextWindow: 128000,
|
|
1670
|
+
maxTokens: 4000,
|
|
1671
|
+
} satisfies Model<"anthropic-messages">,
|
|
1672
|
+
"mistral/ministral-8b": {
|
|
1673
|
+
id: "mistral/ministral-8b",
|
|
1674
|
+
name: "Ministral 8B",
|
|
1675
|
+
api: "anthropic-messages",
|
|
1676
|
+
provider: "vercel-ai-gateway",
|
|
1677
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1678
|
+
reasoning: false,
|
|
1679
|
+
input: ["text"],
|
|
1680
|
+
cost: {
|
|
1681
|
+
input: 0.15,
|
|
1682
|
+
output: 0.15,
|
|
1683
|
+
cacheRead: 0,
|
|
1684
|
+
cacheWrite: 0,
|
|
1685
|
+
},
|
|
1686
|
+
contextWindow: 128000,
|
|
1687
|
+
maxTokens: 4000,
|
|
1688
|
+
} satisfies Model<"anthropic-messages">,
|
|
1689
|
+
"mistral/mistral-large-3": {
|
|
1690
|
+
id: "mistral/mistral-large-3",
|
|
1691
|
+
name: "Mistral Large 3",
|
|
1692
|
+
api: "anthropic-messages",
|
|
1693
|
+
provider: "vercel-ai-gateway",
|
|
1694
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1695
|
+
reasoning: false,
|
|
1696
|
+
input: ["text", "image"],
|
|
1697
|
+
cost: {
|
|
1698
|
+
input: 0.5,
|
|
1699
|
+
output: 1.5,
|
|
1700
|
+
cacheRead: 0,
|
|
1701
|
+
cacheWrite: 0,
|
|
1702
|
+
},
|
|
1703
|
+
contextWindow: 256000,
|
|
1704
|
+
maxTokens: 256000,
|
|
1705
|
+
} satisfies Model<"anthropic-messages">,
|
|
1706
|
+
"mistral/mistral-medium": {
|
|
1707
|
+
id: "mistral/mistral-medium",
|
|
1708
|
+
name: "Mistral Medium 3.1",
|
|
1709
|
+
api: "anthropic-messages",
|
|
1710
|
+
provider: "vercel-ai-gateway",
|
|
1711
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1712
|
+
reasoning: false,
|
|
1713
|
+
input: ["text", "image"],
|
|
1714
|
+
cost: {
|
|
1715
|
+
input: 0.4,
|
|
1716
|
+
output: 2,
|
|
1717
|
+
cacheRead: 0,
|
|
1718
|
+
cacheWrite: 0,
|
|
1719
|
+
},
|
|
1720
|
+
contextWindow: 128000,
|
|
1721
|
+
maxTokens: 64000,
|
|
1722
|
+
} satisfies Model<"anthropic-messages">,
|
|
1723
|
+
"mistral/mistral-medium-3.5": {
|
|
1724
|
+
id: "mistral/mistral-medium-3.5",
|
|
1725
|
+
name: "Mistral Medium Latest",
|
|
1726
|
+
api: "anthropic-messages",
|
|
1727
|
+
provider: "vercel-ai-gateway",
|
|
1728
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1729
|
+
reasoning: true,
|
|
1730
|
+
input: ["text", "image"],
|
|
1731
|
+
cost: {
|
|
1732
|
+
input: 1.5,
|
|
1733
|
+
output: 7.5,
|
|
1734
|
+
cacheRead: 0,
|
|
1735
|
+
cacheWrite: 0,
|
|
1736
|
+
},
|
|
1737
|
+
contextWindow: 256000,
|
|
1738
|
+
maxTokens: 256000,
|
|
1739
|
+
} satisfies Model<"anthropic-messages">,
|
|
1740
|
+
"mistral/mistral-nemo": {
|
|
1741
|
+
id: "mistral/mistral-nemo",
|
|
1742
|
+
name: "Mistral Nemo 12B",
|
|
1743
|
+
api: "anthropic-messages",
|
|
1744
|
+
provider: "vercel-ai-gateway",
|
|
1745
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1746
|
+
reasoning: false,
|
|
1747
|
+
input: ["text"],
|
|
1748
|
+
cost: {
|
|
1749
|
+
input: 0.15,
|
|
1750
|
+
output: 0.15,
|
|
1751
|
+
cacheRead: 0,
|
|
1752
|
+
cacheWrite: 0,
|
|
1753
|
+
},
|
|
1754
|
+
contextWindow: 128000,
|
|
1755
|
+
maxTokens: 128000,
|
|
1756
|
+
} satisfies Model<"anthropic-messages">,
|
|
1757
|
+
"mistral/mistral-small": {
|
|
1758
|
+
id: "mistral/mistral-small",
|
|
1759
|
+
name: "Mistral Small",
|
|
1760
|
+
api: "anthropic-messages",
|
|
1761
|
+
provider: "vercel-ai-gateway",
|
|
1762
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1763
|
+
reasoning: false,
|
|
1764
|
+
input: ["text", "image"],
|
|
1765
|
+
cost: {
|
|
1766
|
+
input: 0.1,
|
|
1767
|
+
output: 0.3,
|
|
1768
|
+
cacheRead: 0,
|
|
1769
|
+
cacheWrite: 0,
|
|
1770
|
+
},
|
|
1771
|
+
contextWindow: 32000,
|
|
1772
|
+
maxTokens: 4000,
|
|
1773
|
+
} satisfies Model<"anthropic-messages">,
|
|
1774
|
+
"mistral/pixtral-12b": {
|
|
1775
|
+
id: "mistral/pixtral-12b",
|
|
1776
|
+
name: "Pixtral 12B 2409",
|
|
1777
|
+
api: "anthropic-messages",
|
|
1778
|
+
provider: "vercel-ai-gateway",
|
|
1779
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1780
|
+
reasoning: false,
|
|
1781
|
+
input: ["text", "image"],
|
|
1782
|
+
cost: {
|
|
1783
|
+
input: 0.15,
|
|
1784
|
+
output: 0.15,
|
|
1785
|
+
cacheRead: 0,
|
|
1786
|
+
cacheWrite: 0,
|
|
1787
|
+
},
|
|
1788
|
+
contextWindow: 128000,
|
|
1789
|
+
maxTokens: 4000,
|
|
1790
|
+
} satisfies Model<"anthropic-messages">,
|
|
1791
|
+
"moonshotai/kimi-k2": {
|
|
1792
|
+
id: "moonshotai/kimi-k2",
|
|
1793
|
+
name: "Kimi K2 Instruct",
|
|
1794
|
+
api: "anthropic-messages",
|
|
1795
|
+
provider: "vercel-ai-gateway",
|
|
1796
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1797
|
+
reasoning: false,
|
|
1798
|
+
input: ["text"],
|
|
1799
|
+
cost: {
|
|
1800
|
+
input: 0.57,
|
|
1801
|
+
output: 2.3,
|
|
1802
|
+
cacheRead: 0,
|
|
1803
|
+
cacheWrite: 0,
|
|
1804
|
+
},
|
|
1805
|
+
contextWindow: 131072,
|
|
1806
|
+
maxTokens: 131072,
|
|
1807
|
+
} satisfies Model<"anthropic-messages">,
|
|
1808
|
+
"moonshotai/kimi-k2-thinking": {
|
|
1809
|
+
id: "moonshotai/kimi-k2-thinking",
|
|
1810
|
+
name: "Kimi K2 Thinking",
|
|
1811
|
+
api: "anthropic-messages",
|
|
1812
|
+
provider: "vercel-ai-gateway",
|
|
1813
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1814
|
+
reasoning: true,
|
|
1815
|
+
input: ["text"],
|
|
1816
|
+
cost: {
|
|
1817
|
+
input: 0.47,
|
|
1818
|
+
output: 2,
|
|
1819
|
+
cacheRead: 0.141,
|
|
1820
|
+
cacheWrite: 0,
|
|
1821
|
+
},
|
|
1822
|
+
contextWindow: 216144,
|
|
1823
|
+
maxTokens: 216144,
|
|
1824
|
+
} satisfies Model<"anthropic-messages">,
|
|
1825
|
+
"moonshotai/kimi-k2.5": {
|
|
1826
|
+
id: "moonshotai/kimi-k2.5",
|
|
1827
|
+
name: "Kimi K2.5",
|
|
1828
|
+
api: "anthropic-messages",
|
|
1829
|
+
provider: "vercel-ai-gateway",
|
|
1830
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1831
|
+
reasoning: true,
|
|
1832
|
+
input: ["text", "image"],
|
|
1833
|
+
cost: {
|
|
1834
|
+
input: 0.6,
|
|
1835
|
+
output: 3,
|
|
1836
|
+
cacheRead: 0.1,
|
|
1837
|
+
cacheWrite: 0,
|
|
1838
|
+
},
|
|
1839
|
+
contextWindow: 262114,
|
|
1840
|
+
maxTokens: 262114,
|
|
1841
|
+
} satisfies Model<"anthropic-messages">,
|
|
1842
|
+
"moonshotai/kimi-k2.6": {
|
|
1843
|
+
id: "moonshotai/kimi-k2.6",
|
|
1844
|
+
name: "Kimi K2.6",
|
|
1845
|
+
api: "anthropic-messages",
|
|
1846
|
+
provider: "vercel-ai-gateway",
|
|
1847
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1848
|
+
reasoning: true,
|
|
1849
|
+
input: ["text", "image"],
|
|
1850
|
+
cost: {
|
|
1851
|
+
input: 0.95,
|
|
1852
|
+
output: 4,
|
|
1853
|
+
cacheRead: 0.16,
|
|
1854
|
+
cacheWrite: 0,
|
|
1855
|
+
},
|
|
1856
|
+
contextWindow: 262000,
|
|
1857
|
+
maxTokens: 262000,
|
|
1858
|
+
} satisfies Model<"anthropic-messages">,
|
|
1859
|
+
"moonshotai/kimi-k2.7-code": {
|
|
1860
|
+
id: "moonshotai/kimi-k2.7-code",
|
|
1861
|
+
name: "Kimi K2.7 Code",
|
|
1862
|
+
api: "anthropic-messages",
|
|
1863
|
+
provider: "vercel-ai-gateway",
|
|
1864
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1865
|
+
reasoning: true,
|
|
1866
|
+
input: ["text", "image"],
|
|
1867
|
+
cost: {
|
|
1868
|
+
input: 0.95,
|
|
1869
|
+
output: 4,
|
|
1870
|
+
cacheRead: 0.19,
|
|
1871
|
+
cacheWrite: 0,
|
|
1872
|
+
},
|
|
1873
|
+
contextWindow: 256000,
|
|
1874
|
+
maxTokens: 32768,
|
|
1875
|
+
} satisfies Model<"anthropic-messages">,
|
|
1876
|
+
"moonshotai/kimi-k2.7-code-highspeed": {
|
|
1877
|
+
id: "moonshotai/kimi-k2.7-code-highspeed",
|
|
1878
|
+
name: "Kimi K2.7 Code High Speed",
|
|
1879
|
+
api: "anthropic-messages",
|
|
1880
|
+
provider: "vercel-ai-gateway",
|
|
1881
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1882
|
+
reasoning: true,
|
|
1883
|
+
input: ["text", "image"],
|
|
1884
|
+
cost: {
|
|
1885
|
+
input: 1.9,
|
|
1886
|
+
output: 8,
|
|
1887
|
+
cacheRead: 0.38,
|
|
1888
|
+
cacheWrite: 0,
|
|
1889
|
+
},
|
|
1890
|
+
contextWindow: 262144,
|
|
1891
|
+
maxTokens: 32768,
|
|
1892
|
+
} satisfies Model<"anthropic-messages">,
|
|
1893
|
+
"moonshotai/kimi-k3": {
|
|
1894
|
+
id: "moonshotai/kimi-k3",
|
|
1895
|
+
name: "Kimi K3",
|
|
1896
|
+
api: "anthropic-messages",
|
|
1897
|
+
provider: "vercel-ai-gateway",
|
|
1898
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1899
|
+
reasoning: true,
|
|
1900
|
+
input: ["text", "image"],
|
|
1901
|
+
cost: {
|
|
1902
|
+
input: 3,
|
|
1903
|
+
output: 15,
|
|
1904
|
+
cacheRead: 0.3,
|
|
1905
|
+
cacheWrite: 0,
|
|
1906
|
+
},
|
|
1907
|
+
contextWindow: 1000000,
|
|
1908
|
+
maxTokens: 131072,
|
|
1909
|
+
} satisfies Model<"anthropic-messages">,
|
|
1910
|
+
"nvidia/nemotron-3-nano-30b-a3b": {
|
|
1911
|
+
id: "nvidia/nemotron-3-nano-30b-a3b",
|
|
1912
|
+
name: "Nemotron 3 Nano 30B A3B",
|
|
1913
|
+
api: "anthropic-messages",
|
|
1914
|
+
provider: "vercel-ai-gateway",
|
|
1915
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1916
|
+
reasoning: true,
|
|
1917
|
+
input: ["text"],
|
|
1918
|
+
cost: {
|
|
1919
|
+
input: 0.05,
|
|
1920
|
+
output: 0.24,
|
|
1921
|
+
cacheRead: 0,
|
|
1922
|
+
cacheWrite: 0,
|
|
1923
|
+
},
|
|
1924
|
+
contextWindow: 262144,
|
|
1925
|
+
maxTokens: 262144,
|
|
1926
|
+
} satisfies Model<"anthropic-messages">,
|
|
1927
|
+
"nvidia/nemotron-3-super-120b-a12b": {
|
|
1928
|
+
id: "nvidia/nemotron-3-super-120b-a12b",
|
|
1929
|
+
name: "NVIDIA Nemotron 3 Super 120B A12B",
|
|
1930
|
+
api: "anthropic-messages",
|
|
1931
|
+
provider: "vercel-ai-gateway",
|
|
1932
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1933
|
+
reasoning: true,
|
|
1934
|
+
input: ["text"],
|
|
1935
|
+
cost: {
|
|
1936
|
+
input: 0.15,
|
|
1937
|
+
output: 0.65,
|
|
1938
|
+
cacheRead: 0,
|
|
1939
|
+
cacheWrite: 0,
|
|
1940
|
+
},
|
|
1941
|
+
contextWindow: 256000,
|
|
1942
|
+
maxTokens: 32000,
|
|
1943
|
+
} satisfies Model<"anthropic-messages">,
|
|
1944
|
+
"nvidia/nemotron-3-ultra-550b-a55b": {
|
|
1945
|
+
id: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
1946
|
+
name: "Nemotron 3 Ultra",
|
|
1947
|
+
api: "anthropic-messages",
|
|
1948
|
+
provider: "vercel-ai-gateway",
|
|
1949
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1950
|
+
reasoning: true,
|
|
1951
|
+
input: ["text"],
|
|
1952
|
+
cost: {
|
|
1953
|
+
input: 0.6,
|
|
1954
|
+
output: 2.4,
|
|
1955
|
+
cacheRead: 0.12,
|
|
1956
|
+
cacheWrite: 0,
|
|
1957
|
+
},
|
|
1958
|
+
contextWindow: 1000000,
|
|
1959
|
+
maxTokens: 65000,
|
|
1960
|
+
} satisfies Model<"anthropic-messages">,
|
|
1961
|
+
"nvidia/nemotron-nano-12b-v2-vl": {
|
|
1962
|
+
id: "nvidia/nemotron-nano-12b-v2-vl",
|
|
1963
|
+
name: "Nvidia Nemotron Nano 12B V2 VL",
|
|
1964
|
+
api: "anthropic-messages",
|
|
1965
|
+
provider: "vercel-ai-gateway",
|
|
1966
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1967
|
+
reasoning: true,
|
|
1968
|
+
input: ["text", "image"],
|
|
1969
|
+
cost: {
|
|
1970
|
+
input: 0.2,
|
|
1971
|
+
output: 0.6,
|
|
1972
|
+
cacheRead: 0,
|
|
1973
|
+
cacheWrite: 0,
|
|
1974
|
+
},
|
|
1975
|
+
contextWindow: 131072,
|
|
1976
|
+
maxTokens: 131072,
|
|
1977
|
+
} satisfies Model<"anthropic-messages">,
|
|
1978
|
+
"nvidia/nemotron-nano-9b-v2": {
|
|
1979
|
+
id: "nvidia/nemotron-nano-9b-v2",
|
|
1980
|
+
name: "Nvidia Nemotron Nano 9B V2",
|
|
1981
|
+
api: "anthropic-messages",
|
|
1982
|
+
provider: "vercel-ai-gateway",
|
|
1983
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
1984
|
+
reasoning: true,
|
|
1985
|
+
input: ["text"],
|
|
1986
|
+
cost: {
|
|
1987
|
+
input: 0.06,
|
|
1988
|
+
output: 0.23,
|
|
1989
|
+
cacheRead: 0,
|
|
1990
|
+
cacheWrite: 0,
|
|
1991
|
+
},
|
|
1992
|
+
contextWindow: 131072,
|
|
1993
|
+
maxTokens: 131072,
|
|
1994
|
+
} satisfies Model<"anthropic-messages">,
|
|
1995
|
+
"openai/gpt-3.5-turbo": {
|
|
1996
|
+
id: "openai/gpt-3.5-turbo",
|
|
1997
|
+
name: "GPT-3.5 Turbo",
|
|
1998
|
+
api: "anthropic-messages",
|
|
1999
|
+
provider: "vercel-ai-gateway",
|
|
2000
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2001
|
+
reasoning: false,
|
|
2002
|
+
input: ["text"],
|
|
2003
|
+
cost: {
|
|
2004
|
+
input: 0.5,
|
|
2005
|
+
output: 1.5,
|
|
2006
|
+
cacheRead: 0,
|
|
2007
|
+
cacheWrite: 0,
|
|
2008
|
+
},
|
|
2009
|
+
contextWindow: 16385,
|
|
2010
|
+
maxTokens: 4096,
|
|
2011
|
+
} satisfies Model<"anthropic-messages">,
|
|
2012
|
+
"openai/gpt-4-turbo": {
|
|
2013
|
+
id: "openai/gpt-4-turbo",
|
|
2014
|
+
name: "GPT-4 Turbo",
|
|
2015
|
+
api: "anthropic-messages",
|
|
2016
|
+
provider: "vercel-ai-gateway",
|
|
2017
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2018
|
+
reasoning: false,
|
|
2019
|
+
input: ["text", "image"],
|
|
2020
|
+
cost: {
|
|
2021
|
+
input: 10,
|
|
2022
|
+
output: 30,
|
|
2023
|
+
cacheRead: 0,
|
|
2024
|
+
cacheWrite: 0,
|
|
2025
|
+
},
|
|
2026
|
+
contextWindow: 128000,
|
|
2027
|
+
maxTokens: 4096,
|
|
2028
|
+
} satisfies Model<"anthropic-messages">,
|
|
2029
|
+
"openai/gpt-4.1": {
|
|
2030
|
+
id: "openai/gpt-4.1",
|
|
2031
|
+
name: "GPT-4.1",
|
|
2032
|
+
api: "anthropic-messages",
|
|
2033
|
+
provider: "vercel-ai-gateway",
|
|
2034
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2035
|
+
reasoning: false,
|
|
2036
|
+
input: ["text", "image"],
|
|
2037
|
+
cost: {
|
|
2038
|
+
input: 2,
|
|
2039
|
+
output: 8,
|
|
2040
|
+
cacheRead: 0.5,
|
|
2041
|
+
cacheWrite: 0,
|
|
2042
|
+
},
|
|
2043
|
+
contextWindow: 1047576,
|
|
2044
|
+
maxTokens: 32768,
|
|
2045
|
+
} satisfies Model<"anthropic-messages">,
|
|
2046
|
+
"openai/gpt-4.1-mini": {
|
|
2047
|
+
id: "openai/gpt-4.1-mini",
|
|
2048
|
+
name: "GPT-4.1 mini",
|
|
2049
|
+
api: "anthropic-messages",
|
|
2050
|
+
provider: "vercel-ai-gateway",
|
|
2051
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2052
|
+
reasoning: false,
|
|
2053
|
+
input: ["text", "image"],
|
|
2054
|
+
cost: {
|
|
2055
|
+
input: 0.4,
|
|
2056
|
+
output: 1.6,
|
|
2057
|
+
cacheRead: 0.1,
|
|
2058
|
+
cacheWrite: 0,
|
|
2059
|
+
},
|
|
2060
|
+
contextWindow: 1047576,
|
|
2061
|
+
maxTokens: 32768,
|
|
2062
|
+
} satisfies Model<"anthropic-messages">,
|
|
2063
|
+
"openai/gpt-4.1-nano": {
|
|
2064
|
+
id: "openai/gpt-4.1-nano",
|
|
2065
|
+
name: "GPT-4.1 nano",
|
|
2066
|
+
api: "anthropic-messages",
|
|
2067
|
+
provider: "vercel-ai-gateway",
|
|
2068
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2069
|
+
reasoning: false,
|
|
2070
|
+
input: ["text", "image"],
|
|
2071
|
+
cost: {
|
|
2072
|
+
input: 0.1,
|
|
2073
|
+
output: 0.4,
|
|
2074
|
+
cacheRead: 0.025,
|
|
2075
|
+
cacheWrite: 0,
|
|
2076
|
+
},
|
|
2077
|
+
contextWindow: 1047576,
|
|
2078
|
+
maxTokens: 32768,
|
|
2079
|
+
} satisfies Model<"anthropic-messages">,
|
|
2080
|
+
"openai/gpt-4o": {
|
|
2081
|
+
id: "openai/gpt-4o",
|
|
2082
|
+
name: "GPT-4o",
|
|
2083
|
+
api: "anthropic-messages",
|
|
2084
|
+
provider: "vercel-ai-gateway",
|
|
2085
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2086
|
+
reasoning: false,
|
|
2087
|
+
input: ["text", "image"],
|
|
2088
|
+
cost: {
|
|
2089
|
+
input: 2.5,
|
|
2090
|
+
output: 10,
|
|
2091
|
+
cacheRead: 1.25,
|
|
2092
|
+
cacheWrite: 0,
|
|
2093
|
+
},
|
|
2094
|
+
contextWindow: 128000,
|
|
2095
|
+
maxTokens: 16384,
|
|
2096
|
+
} satisfies Model<"anthropic-messages">,
|
|
2097
|
+
"openai/gpt-4o-mini": {
|
|
2098
|
+
id: "openai/gpt-4o-mini",
|
|
2099
|
+
name: "GPT-4o mini",
|
|
2100
|
+
api: "anthropic-messages",
|
|
2101
|
+
provider: "vercel-ai-gateway",
|
|
2102
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2103
|
+
reasoning: false,
|
|
2104
|
+
input: ["text", "image"],
|
|
2105
|
+
cost: {
|
|
2106
|
+
input: 0.15,
|
|
2107
|
+
output: 0.6,
|
|
2108
|
+
cacheRead: 0.075,
|
|
2109
|
+
cacheWrite: 0,
|
|
2110
|
+
},
|
|
2111
|
+
contextWindow: 128000,
|
|
2112
|
+
maxTokens: 16384,
|
|
2113
|
+
} satisfies Model<"anthropic-messages">,
|
|
2114
|
+
"openai/gpt-5": {
|
|
2115
|
+
id: "openai/gpt-5",
|
|
2116
|
+
name: "GPT-5",
|
|
2117
|
+
api: "anthropic-messages",
|
|
2118
|
+
provider: "vercel-ai-gateway",
|
|
2119
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2120
|
+
reasoning: true,
|
|
2121
|
+
input: ["text", "image"],
|
|
2122
|
+
cost: {
|
|
2123
|
+
input: 1.25,
|
|
2124
|
+
output: 10,
|
|
2125
|
+
cacheRead: 0.125,
|
|
2126
|
+
cacheWrite: 0,
|
|
2127
|
+
},
|
|
2128
|
+
contextWindow: 400000,
|
|
2129
|
+
maxTokens: 128000,
|
|
2130
|
+
} satisfies Model<"anthropic-messages">,
|
|
2131
|
+
"openai/gpt-5-chat": {
|
|
2132
|
+
id: "openai/gpt-5-chat",
|
|
2133
|
+
name: "GPT 5 Chat",
|
|
2134
|
+
api: "anthropic-messages",
|
|
2135
|
+
provider: "vercel-ai-gateway",
|
|
2136
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2137
|
+
reasoning: false,
|
|
2138
|
+
input: ["text", "image"],
|
|
2139
|
+
cost: {
|
|
2140
|
+
input: 1.25,
|
|
2141
|
+
output: 10,
|
|
2142
|
+
cacheRead: 0.125,
|
|
2143
|
+
cacheWrite: 0,
|
|
2144
|
+
},
|
|
2145
|
+
contextWindow: 128000,
|
|
2146
|
+
maxTokens: 16384,
|
|
2147
|
+
} satisfies Model<"anthropic-messages">,
|
|
2148
|
+
"openai/gpt-5-codex": {
|
|
2149
|
+
id: "openai/gpt-5-codex",
|
|
2150
|
+
name: "GPT-5-Codex",
|
|
2151
|
+
api: "anthropic-messages",
|
|
2152
|
+
provider: "vercel-ai-gateway",
|
|
2153
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2154
|
+
reasoning: true,
|
|
2155
|
+
input: ["text", "image"],
|
|
2156
|
+
cost: {
|
|
2157
|
+
input: 1.25,
|
|
2158
|
+
output: 10,
|
|
2159
|
+
cacheRead: 0.125,
|
|
2160
|
+
cacheWrite: 0,
|
|
2161
|
+
},
|
|
2162
|
+
contextWindow: 400000,
|
|
2163
|
+
maxTokens: 128000,
|
|
2164
|
+
} satisfies Model<"anthropic-messages">,
|
|
2165
|
+
"openai/gpt-5-mini": {
|
|
2166
|
+
id: "openai/gpt-5-mini",
|
|
2167
|
+
name: "GPT-5 mini",
|
|
2168
|
+
api: "anthropic-messages",
|
|
2169
|
+
provider: "vercel-ai-gateway",
|
|
2170
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2171
|
+
reasoning: true,
|
|
2172
|
+
input: ["text", "image"],
|
|
2173
|
+
cost: {
|
|
2174
|
+
input: 0.25,
|
|
2175
|
+
output: 2,
|
|
2176
|
+
cacheRead: 0.025,
|
|
2177
|
+
cacheWrite: 0,
|
|
2178
|
+
},
|
|
2179
|
+
contextWindow: 400000,
|
|
2180
|
+
maxTokens: 128000,
|
|
2181
|
+
} satisfies Model<"anthropic-messages">,
|
|
2182
|
+
"openai/gpt-5-nano": {
|
|
2183
|
+
id: "openai/gpt-5-nano",
|
|
2184
|
+
name: "GPT-5 nano",
|
|
2185
|
+
api: "anthropic-messages",
|
|
2186
|
+
provider: "vercel-ai-gateway",
|
|
2187
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2188
|
+
reasoning: true,
|
|
2189
|
+
input: ["text", "image"],
|
|
2190
|
+
cost: {
|
|
2191
|
+
input: 0.05,
|
|
2192
|
+
output: 0.4,
|
|
2193
|
+
cacheRead: 0.005,
|
|
2194
|
+
cacheWrite: 0,
|
|
2195
|
+
},
|
|
2196
|
+
contextWindow: 400000,
|
|
2197
|
+
maxTokens: 128000,
|
|
2198
|
+
} satisfies Model<"anthropic-messages">,
|
|
2199
|
+
"openai/gpt-5-pro": {
|
|
2200
|
+
id: "openai/gpt-5-pro",
|
|
2201
|
+
name: "GPT-5 pro",
|
|
2202
|
+
api: "anthropic-messages",
|
|
2203
|
+
provider: "vercel-ai-gateway",
|
|
2204
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2205
|
+
reasoning: true,
|
|
2206
|
+
input: ["text", "image"],
|
|
2207
|
+
cost: {
|
|
2208
|
+
input: 15,
|
|
2209
|
+
output: 120,
|
|
2210
|
+
cacheRead: 0,
|
|
2211
|
+
cacheWrite: 0,
|
|
2212
|
+
},
|
|
2213
|
+
contextWindow: 400000,
|
|
2214
|
+
maxTokens: 272000,
|
|
2215
|
+
} satisfies Model<"anthropic-messages">,
|
|
2216
|
+
"openai/gpt-5.1-codex": {
|
|
2217
|
+
id: "openai/gpt-5.1-codex",
|
|
2218
|
+
name: "GPT-5.1-Codex",
|
|
2219
|
+
api: "anthropic-messages",
|
|
2220
|
+
provider: "vercel-ai-gateway",
|
|
2221
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2222
|
+
reasoning: true,
|
|
2223
|
+
input: ["text", "image"],
|
|
2224
|
+
cost: {
|
|
2225
|
+
input: 1.25,
|
|
2226
|
+
output: 10,
|
|
2227
|
+
cacheRead: 0.125,
|
|
2228
|
+
cacheWrite: 0,
|
|
2229
|
+
},
|
|
2230
|
+
contextWindow: 400000,
|
|
2231
|
+
maxTokens: 128000,
|
|
2232
|
+
} satisfies Model<"anthropic-messages">,
|
|
2233
|
+
"openai/gpt-5.1-codex-max": {
|
|
2234
|
+
id: "openai/gpt-5.1-codex-max",
|
|
2235
|
+
name: "GPT 5.1 Codex Max",
|
|
2236
|
+
api: "anthropic-messages",
|
|
2237
|
+
provider: "vercel-ai-gateway",
|
|
2238
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2239
|
+
reasoning: true,
|
|
2240
|
+
input: ["text", "image"],
|
|
2241
|
+
cost: {
|
|
2242
|
+
input: 1.25,
|
|
2243
|
+
output: 10,
|
|
2244
|
+
cacheRead: 0.125,
|
|
2245
|
+
cacheWrite: 0,
|
|
2246
|
+
},
|
|
2247
|
+
contextWindow: 400000,
|
|
2248
|
+
maxTokens: 128000,
|
|
2249
|
+
} satisfies Model<"anthropic-messages">,
|
|
2250
|
+
"openai/gpt-5.1-codex-mini": {
|
|
2251
|
+
id: "openai/gpt-5.1-codex-mini",
|
|
2252
|
+
name: "GPT 5.1 Codex Mini",
|
|
2253
|
+
api: "anthropic-messages",
|
|
2254
|
+
provider: "vercel-ai-gateway",
|
|
2255
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2256
|
+
reasoning: true,
|
|
2257
|
+
input: ["text", "image"],
|
|
2258
|
+
cost: {
|
|
2259
|
+
input: 0.25,
|
|
2260
|
+
output: 2,
|
|
2261
|
+
cacheRead: 0.025,
|
|
2262
|
+
cacheWrite: 0,
|
|
2263
|
+
},
|
|
2264
|
+
contextWindow: 400000,
|
|
2265
|
+
maxTokens: 128000,
|
|
2266
|
+
} satisfies Model<"anthropic-messages">,
|
|
2267
|
+
"openai/gpt-5.1-instant": {
|
|
2268
|
+
id: "openai/gpt-5.1-instant",
|
|
2269
|
+
name: "GPT-5.1 Instant",
|
|
2270
|
+
api: "anthropic-messages",
|
|
2271
|
+
provider: "vercel-ai-gateway",
|
|
2272
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2273
|
+
reasoning: false,
|
|
2274
|
+
input: ["text", "image"],
|
|
2275
|
+
cost: {
|
|
2276
|
+
input: 1.25,
|
|
2277
|
+
output: 10,
|
|
2278
|
+
cacheRead: 0.125,
|
|
2279
|
+
cacheWrite: 0,
|
|
2280
|
+
},
|
|
2281
|
+
contextWindow: 128000,
|
|
2282
|
+
maxTokens: 16384,
|
|
2283
|
+
} satisfies Model<"anthropic-messages">,
|
|
2284
|
+
"openai/gpt-5.1-thinking": {
|
|
2285
|
+
id: "openai/gpt-5.1-thinking",
|
|
2286
|
+
name: "GPT 5.1 Thinking",
|
|
2287
|
+
api: "anthropic-messages",
|
|
2288
|
+
provider: "vercel-ai-gateway",
|
|
2289
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2290
|
+
reasoning: true,
|
|
2291
|
+
input: ["text", "image"],
|
|
2292
|
+
cost: {
|
|
2293
|
+
input: 1.25,
|
|
2294
|
+
output: 10,
|
|
2295
|
+
cacheRead: 0.125,
|
|
2296
|
+
cacheWrite: 0,
|
|
2297
|
+
},
|
|
2298
|
+
contextWindow: 400000,
|
|
2299
|
+
maxTokens: 128000,
|
|
2300
|
+
} satisfies Model<"anthropic-messages">,
|
|
2301
|
+
"openai/gpt-5.2": {
|
|
2302
|
+
id: "openai/gpt-5.2",
|
|
2303
|
+
name: "GPT 5.2",
|
|
2304
|
+
api: "anthropic-messages",
|
|
2305
|
+
provider: "vercel-ai-gateway",
|
|
2306
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2307
|
+
reasoning: true,
|
|
2308
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2309
|
+
input: ["text", "image"],
|
|
2310
|
+
cost: {
|
|
2311
|
+
input: 1.75,
|
|
2312
|
+
output: 14,
|
|
2313
|
+
cacheRead: 0.175,
|
|
2314
|
+
cacheWrite: 0,
|
|
2315
|
+
},
|
|
2316
|
+
contextWindow: 400000,
|
|
2317
|
+
maxTokens: 128000,
|
|
2318
|
+
} satisfies Model<"anthropic-messages">,
|
|
2319
|
+
"openai/gpt-5.2-chat": {
|
|
2320
|
+
id: "openai/gpt-5.2-chat",
|
|
2321
|
+
name: "GPT 5.2 Chat",
|
|
2322
|
+
api: "anthropic-messages",
|
|
2323
|
+
provider: "vercel-ai-gateway",
|
|
2324
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2325
|
+
reasoning: false,
|
|
2326
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2327
|
+
input: ["text", "image"],
|
|
2328
|
+
cost: {
|
|
2329
|
+
input: 1.75,
|
|
2330
|
+
output: 14,
|
|
2331
|
+
cacheRead: 0.175,
|
|
2332
|
+
cacheWrite: 0,
|
|
2333
|
+
},
|
|
2334
|
+
contextWindow: 128000,
|
|
2335
|
+
maxTokens: 16384,
|
|
2336
|
+
} satisfies Model<"anthropic-messages">,
|
|
2337
|
+
"openai/gpt-5.2-codex": {
|
|
2338
|
+
id: "openai/gpt-5.2-codex",
|
|
2339
|
+
name: "GPT 5.2 Codex",
|
|
2340
|
+
api: "anthropic-messages",
|
|
2341
|
+
provider: "vercel-ai-gateway",
|
|
2342
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2343
|
+
reasoning: true,
|
|
2344
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2345
|
+
input: ["text", "image"],
|
|
2346
|
+
cost: {
|
|
2347
|
+
input: 1.75,
|
|
2348
|
+
output: 14,
|
|
2349
|
+
cacheRead: 0.175,
|
|
2350
|
+
cacheWrite: 0,
|
|
2351
|
+
},
|
|
2352
|
+
contextWindow: 400000,
|
|
2353
|
+
maxTokens: 128000,
|
|
2354
|
+
} satisfies Model<"anthropic-messages">,
|
|
2355
|
+
"openai/gpt-5.2-pro": {
|
|
2356
|
+
id: "openai/gpt-5.2-pro",
|
|
2357
|
+
name: "GPT 5.2 ",
|
|
2358
|
+
api: "anthropic-messages",
|
|
2359
|
+
provider: "vercel-ai-gateway",
|
|
2360
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2361
|
+
reasoning: true,
|
|
2362
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2363
|
+
input: ["text", "image"],
|
|
2364
|
+
cost: {
|
|
2365
|
+
input: 21,
|
|
2366
|
+
output: 168,
|
|
2367
|
+
cacheRead: 0,
|
|
2368
|
+
cacheWrite: 0,
|
|
2369
|
+
},
|
|
2370
|
+
contextWindow: 400000,
|
|
2371
|
+
maxTokens: 128000,
|
|
2372
|
+
} satisfies Model<"anthropic-messages">,
|
|
2373
|
+
"openai/gpt-5.3-chat": {
|
|
2374
|
+
id: "openai/gpt-5.3-chat",
|
|
2375
|
+
name: "GPT-5.3 Chat",
|
|
2376
|
+
api: "anthropic-messages",
|
|
2377
|
+
provider: "vercel-ai-gateway",
|
|
2378
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2379
|
+
reasoning: false,
|
|
2380
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2381
|
+
input: ["text", "image"],
|
|
2382
|
+
cost: {
|
|
2383
|
+
input: 1.75,
|
|
2384
|
+
output: 14,
|
|
2385
|
+
cacheRead: 0.175,
|
|
2386
|
+
cacheWrite: 0,
|
|
2387
|
+
},
|
|
2388
|
+
contextWindow: 128000,
|
|
2389
|
+
maxTokens: 16384,
|
|
2390
|
+
} satisfies Model<"anthropic-messages">,
|
|
2391
|
+
"openai/gpt-5.3-codex": {
|
|
2392
|
+
id: "openai/gpt-5.3-codex",
|
|
2393
|
+
name: "GPT 5.3 Codex",
|
|
2394
|
+
api: "anthropic-messages",
|
|
2395
|
+
provider: "vercel-ai-gateway",
|
|
2396
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2397
|
+
reasoning: true,
|
|
2398
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2399
|
+
input: ["text", "image"],
|
|
2400
|
+
cost: {
|
|
2401
|
+
input: 1.75,
|
|
2402
|
+
output: 14,
|
|
2403
|
+
cacheRead: 0.175,
|
|
2404
|
+
cacheWrite: 0,
|
|
2405
|
+
},
|
|
2406
|
+
contextWindow: 400000,
|
|
2407
|
+
maxTokens: 128000,
|
|
2408
|
+
} satisfies Model<"anthropic-messages">,
|
|
2409
|
+
"openai/gpt-5.4": {
|
|
2410
|
+
id: "openai/gpt-5.4",
|
|
2411
|
+
name: "GPT 5.4",
|
|
2412
|
+
api: "anthropic-messages",
|
|
2413
|
+
provider: "vercel-ai-gateway",
|
|
2414
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2415
|
+
reasoning: true,
|
|
2416
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2417
|
+
input: ["text", "image"],
|
|
2418
|
+
cost: {
|
|
2419
|
+
input: 2.5,
|
|
2420
|
+
output: 15,
|
|
2421
|
+
cacheRead: 0.25,
|
|
2422
|
+
cacheWrite: 0,
|
|
2423
|
+
},
|
|
2424
|
+
contextWindow: 1050000,
|
|
2425
|
+
maxTokens: 128000,
|
|
2426
|
+
} satisfies Model<"anthropic-messages">,
|
|
2427
|
+
"openai/gpt-5.4-mini": {
|
|
2428
|
+
id: "openai/gpt-5.4-mini",
|
|
2429
|
+
name: "GPT 5.4 Mini",
|
|
2430
|
+
api: "anthropic-messages",
|
|
2431
|
+
provider: "vercel-ai-gateway",
|
|
2432
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2433
|
+
reasoning: true,
|
|
2434
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2435
|
+
input: ["text", "image"],
|
|
2436
|
+
cost: {
|
|
2437
|
+
input: 0.75,
|
|
2438
|
+
output: 4.5,
|
|
2439
|
+
cacheRead: 0.075,
|
|
2440
|
+
cacheWrite: 0,
|
|
2441
|
+
},
|
|
2442
|
+
contextWindow: 400000,
|
|
2443
|
+
maxTokens: 128000,
|
|
2444
|
+
} satisfies Model<"anthropic-messages">,
|
|
2445
|
+
"openai/gpt-5.4-nano": {
|
|
2446
|
+
id: "openai/gpt-5.4-nano",
|
|
2447
|
+
name: "GPT 5.4 Nano",
|
|
2448
|
+
api: "anthropic-messages",
|
|
2449
|
+
provider: "vercel-ai-gateway",
|
|
2450
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2451
|
+
reasoning: true,
|
|
2452
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2453
|
+
input: ["text", "image"],
|
|
2454
|
+
cost: {
|
|
2455
|
+
input: 0.2,
|
|
2456
|
+
output: 1.25,
|
|
2457
|
+
cacheRead: 0.02,
|
|
2458
|
+
cacheWrite: 0,
|
|
2459
|
+
},
|
|
2460
|
+
contextWindow: 400000,
|
|
2461
|
+
maxTokens: 128000,
|
|
2462
|
+
} satisfies Model<"anthropic-messages">,
|
|
2463
|
+
"openai/gpt-5.4-pro": {
|
|
2464
|
+
id: "openai/gpt-5.4-pro",
|
|
2465
|
+
name: "GPT 5.4 Pro",
|
|
2466
|
+
api: "anthropic-messages",
|
|
2467
|
+
provider: "vercel-ai-gateway",
|
|
2468
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2469
|
+
reasoning: true,
|
|
2470
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2471
|
+
input: ["text", "image"],
|
|
2472
|
+
cost: {
|
|
2473
|
+
input: 30,
|
|
2474
|
+
output: 180,
|
|
2475
|
+
cacheRead: 0,
|
|
2476
|
+
cacheWrite: 0,
|
|
2477
|
+
},
|
|
2478
|
+
contextWindow: 1050000,
|
|
2479
|
+
maxTokens: 128000,
|
|
2480
|
+
} satisfies Model<"anthropic-messages">,
|
|
2481
|
+
"openai/gpt-5.5": {
|
|
2482
|
+
id: "openai/gpt-5.5",
|
|
2483
|
+
name: "GPT 5.5",
|
|
2484
|
+
api: "anthropic-messages",
|
|
2485
|
+
provider: "vercel-ai-gateway",
|
|
2486
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2487
|
+
reasoning: true,
|
|
2488
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2489
|
+
input: ["text", "image"],
|
|
2490
|
+
cost: {
|
|
2491
|
+
input: 5,
|
|
2492
|
+
output: 30,
|
|
2493
|
+
cacheRead: 0.5,
|
|
2494
|
+
cacheWrite: 0,
|
|
2495
|
+
},
|
|
2496
|
+
contextWindow: 1000000,
|
|
2497
|
+
maxTokens: 128000,
|
|
2498
|
+
} satisfies Model<"anthropic-messages">,
|
|
2499
|
+
"openai/gpt-5.5-pro": {
|
|
2500
|
+
id: "openai/gpt-5.5-pro",
|
|
2501
|
+
name: "GPT 5.5 Pro",
|
|
2502
|
+
api: "anthropic-messages",
|
|
2503
|
+
provider: "vercel-ai-gateway",
|
|
2504
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2505
|
+
reasoning: true,
|
|
2506
|
+
thinkingLevelMap: {"xhigh":"xhigh","off":null,"minimal":null,"low":null},
|
|
2507
|
+
input: ["text", "image"],
|
|
2508
|
+
cost: {
|
|
2509
|
+
input: 30,
|
|
2510
|
+
output: 180,
|
|
2511
|
+
cacheRead: 0,
|
|
2512
|
+
cacheWrite: 0,
|
|
2513
|
+
},
|
|
2514
|
+
contextWindow: 1000000,
|
|
2515
|
+
maxTokens: 128000,
|
|
2516
|
+
} satisfies Model<"anthropic-messages">,
|
|
2517
|
+
"openai/gpt-5.6-luna": {
|
|
2518
|
+
id: "openai/gpt-5.6-luna",
|
|
2519
|
+
name: "GPT 5.6 Luna",
|
|
2520
|
+
api: "anthropic-messages",
|
|
2521
|
+
provider: "vercel-ai-gateway",
|
|
2522
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2523
|
+
reasoning: true,
|
|
2524
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2525
|
+
input: ["text", "image"],
|
|
2526
|
+
cost: {
|
|
2527
|
+
input: 1,
|
|
2528
|
+
output: 6,
|
|
2529
|
+
cacheRead: 0.1,
|
|
2530
|
+
cacheWrite: 1.25,
|
|
2531
|
+
},
|
|
2532
|
+
contextWindow: 1050000,
|
|
2533
|
+
maxTokens: 128000,
|
|
2534
|
+
} satisfies Model<"anthropic-messages">,
|
|
2535
|
+
"openai/gpt-5.6-sol": {
|
|
2536
|
+
id: "openai/gpt-5.6-sol",
|
|
2537
|
+
name: "GPT 5.6 Sol",
|
|
2538
|
+
api: "anthropic-messages",
|
|
2539
|
+
provider: "vercel-ai-gateway",
|
|
2540
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2541
|
+
reasoning: true,
|
|
2542
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2543
|
+
input: ["text", "image"],
|
|
2544
|
+
cost: {
|
|
2545
|
+
input: 5,
|
|
2546
|
+
output: 30,
|
|
2547
|
+
cacheRead: 0.5,
|
|
2548
|
+
cacheWrite: 6.25,
|
|
2549
|
+
},
|
|
2550
|
+
contextWindow: 1050000,
|
|
2551
|
+
maxTokens: 128000,
|
|
2552
|
+
} satisfies Model<"anthropic-messages">,
|
|
2553
|
+
"openai/gpt-5.6-terra": {
|
|
2554
|
+
id: "openai/gpt-5.6-terra",
|
|
2555
|
+
name: "GPT 5.6 Terra",
|
|
2556
|
+
api: "anthropic-messages",
|
|
2557
|
+
provider: "vercel-ai-gateway",
|
|
2558
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2559
|
+
reasoning: true,
|
|
2560
|
+
thinkingLevelMap: {"xhigh":"xhigh"},
|
|
2561
|
+
input: ["text", "image"],
|
|
2562
|
+
cost: {
|
|
2563
|
+
input: 2.5,
|
|
2564
|
+
output: 15,
|
|
2565
|
+
cacheRead: 0.25,
|
|
2566
|
+
cacheWrite: 3.125,
|
|
2567
|
+
},
|
|
2568
|
+
contextWindow: 1050000,
|
|
2569
|
+
maxTokens: 128000,
|
|
2570
|
+
} satisfies Model<"anthropic-messages">,
|
|
2571
|
+
"openai/gpt-oss-120b": {
|
|
2572
|
+
id: "openai/gpt-oss-120b",
|
|
2573
|
+
name: "GPT OSS 120B",
|
|
2574
|
+
api: "anthropic-messages",
|
|
2575
|
+
provider: "vercel-ai-gateway",
|
|
2576
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2577
|
+
reasoning: true,
|
|
2578
|
+
input: ["text"],
|
|
2579
|
+
cost: {
|
|
2580
|
+
input: 0.1,
|
|
2581
|
+
output: 0.5,
|
|
2582
|
+
cacheRead: 0,
|
|
2583
|
+
cacheWrite: 0,
|
|
2584
|
+
},
|
|
2585
|
+
contextWindow: 131072,
|
|
2586
|
+
maxTokens: 131072,
|
|
2587
|
+
} satisfies Model<"anthropic-messages">,
|
|
2588
|
+
"openai/gpt-oss-20b": {
|
|
2589
|
+
id: "openai/gpt-oss-20b",
|
|
2590
|
+
name: "GPT OSS 20B",
|
|
2591
|
+
api: "anthropic-messages",
|
|
2592
|
+
provider: "vercel-ai-gateway",
|
|
2593
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2594
|
+
reasoning: true,
|
|
2595
|
+
input: ["text"],
|
|
2596
|
+
cost: {
|
|
2597
|
+
input: 0.05,
|
|
2598
|
+
output: 0.2,
|
|
2599
|
+
cacheRead: 0,
|
|
2600
|
+
cacheWrite: 0,
|
|
2601
|
+
},
|
|
2602
|
+
contextWindow: 131072,
|
|
2603
|
+
maxTokens: 8192,
|
|
2604
|
+
} satisfies Model<"anthropic-messages">,
|
|
2605
|
+
"openai/gpt-oss-safeguard-20b": {
|
|
2606
|
+
id: "openai/gpt-oss-safeguard-20b",
|
|
2607
|
+
name: "GPT OSS Safeguard 20B",
|
|
2608
|
+
api: "anthropic-messages",
|
|
2609
|
+
provider: "vercel-ai-gateway",
|
|
2610
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2611
|
+
reasoning: true,
|
|
2612
|
+
input: ["text"],
|
|
2613
|
+
cost: {
|
|
2614
|
+
input: 0.075,
|
|
2615
|
+
output: 0.3,
|
|
2616
|
+
cacheRead: 0.037,
|
|
2617
|
+
cacheWrite: 0,
|
|
2618
|
+
},
|
|
2619
|
+
contextWindow: 131072,
|
|
2620
|
+
maxTokens: 65536,
|
|
2621
|
+
} satisfies Model<"anthropic-messages">,
|
|
2622
|
+
"openai/o1": {
|
|
2623
|
+
id: "openai/o1",
|
|
2624
|
+
name: "o1",
|
|
2625
|
+
api: "anthropic-messages",
|
|
2626
|
+
provider: "vercel-ai-gateway",
|
|
2627
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2628
|
+
reasoning: true,
|
|
2629
|
+
input: ["text", "image"],
|
|
2630
|
+
cost: {
|
|
2631
|
+
input: 15,
|
|
2632
|
+
output: 60,
|
|
2633
|
+
cacheRead: 7.5,
|
|
2634
|
+
cacheWrite: 0,
|
|
2635
|
+
},
|
|
2636
|
+
contextWindow: 200000,
|
|
2637
|
+
maxTokens: 100000,
|
|
2638
|
+
} satisfies Model<"anthropic-messages">,
|
|
2639
|
+
"openai/o3": {
|
|
2640
|
+
id: "openai/o3",
|
|
2641
|
+
name: "o3",
|
|
2642
|
+
api: "anthropic-messages",
|
|
2643
|
+
provider: "vercel-ai-gateway",
|
|
2644
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2645
|
+
reasoning: true,
|
|
2646
|
+
input: ["text", "image"],
|
|
2647
|
+
cost: {
|
|
2648
|
+
input: 2,
|
|
2649
|
+
output: 8,
|
|
2650
|
+
cacheRead: 0.5,
|
|
2651
|
+
cacheWrite: 0,
|
|
2652
|
+
},
|
|
2653
|
+
contextWindow: 200000,
|
|
2654
|
+
maxTokens: 100000,
|
|
2655
|
+
} satisfies Model<"anthropic-messages">,
|
|
2656
|
+
"openai/o3-deep-research": {
|
|
2657
|
+
id: "openai/o3-deep-research",
|
|
2658
|
+
name: "o3-deep-research",
|
|
2659
|
+
api: "anthropic-messages",
|
|
2660
|
+
provider: "vercel-ai-gateway",
|
|
2661
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2662
|
+
reasoning: true,
|
|
2663
|
+
input: ["text", "image"],
|
|
2664
|
+
cost: {
|
|
2665
|
+
input: 10,
|
|
2666
|
+
output: 40,
|
|
2667
|
+
cacheRead: 2.5,
|
|
2668
|
+
cacheWrite: 0,
|
|
2669
|
+
},
|
|
2670
|
+
contextWindow: 200000,
|
|
2671
|
+
maxTokens: 100000,
|
|
2672
|
+
} satisfies Model<"anthropic-messages">,
|
|
2673
|
+
"openai/o3-mini": {
|
|
2674
|
+
id: "openai/o3-mini",
|
|
2675
|
+
name: "o3-mini",
|
|
2676
|
+
api: "anthropic-messages",
|
|
2677
|
+
provider: "vercel-ai-gateway",
|
|
2678
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2679
|
+
reasoning: true,
|
|
2680
|
+
input: ["text"],
|
|
2681
|
+
cost: {
|
|
2682
|
+
input: 1.1,
|
|
2683
|
+
output: 4.4,
|
|
2684
|
+
cacheRead: 0.55,
|
|
2685
|
+
cacheWrite: 0,
|
|
2686
|
+
},
|
|
2687
|
+
contextWindow: 200000,
|
|
2688
|
+
maxTokens: 100000,
|
|
2689
|
+
} satisfies Model<"anthropic-messages">,
|
|
2690
|
+
"openai/o3-pro": {
|
|
2691
|
+
id: "openai/o3-pro",
|
|
2692
|
+
name: "o3 Pro",
|
|
2693
|
+
api: "anthropic-messages",
|
|
2694
|
+
provider: "vercel-ai-gateway",
|
|
2695
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2696
|
+
reasoning: true,
|
|
2697
|
+
input: ["text", "image"],
|
|
2698
|
+
cost: {
|
|
2699
|
+
input: 20,
|
|
2700
|
+
output: 80,
|
|
2701
|
+
cacheRead: 0,
|
|
2702
|
+
cacheWrite: 0,
|
|
2703
|
+
},
|
|
2704
|
+
contextWindow: 200000,
|
|
2705
|
+
maxTokens: 100000,
|
|
2706
|
+
} satisfies Model<"anthropic-messages">,
|
|
2707
|
+
"openai/o4-mini": {
|
|
2708
|
+
id: "openai/o4-mini",
|
|
2709
|
+
name: "o4-mini",
|
|
2710
|
+
api: "anthropic-messages",
|
|
2711
|
+
provider: "vercel-ai-gateway",
|
|
2712
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2713
|
+
reasoning: true,
|
|
2714
|
+
input: ["text", "image"],
|
|
2715
|
+
cost: {
|
|
2716
|
+
input: 1.1,
|
|
2717
|
+
output: 4.4,
|
|
2718
|
+
cacheRead: 0.275,
|
|
2719
|
+
cacheWrite: 0,
|
|
2720
|
+
},
|
|
2721
|
+
contextWindow: 200000,
|
|
2722
|
+
maxTokens: 100000,
|
|
2723
|
+
} satisfies Model<"anthropic-messages">,
|
|
2724
|
+
"sakana/fugu-ultra": {
|
|
2725
|
+
id: "sakana/fugu-ultra",
|
|
2726
|
+
name: "Fugu Ultra",
|
|
2727
|
+
api: "anthropic-messages",
|
|
2728
|
+
provider: "vercel-ai-gateway",
|
|
2729
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2730
|
+
reasoning: true,
|
|
2731
|
+
input: ["text", "image"],
|
|
2732
|
+
cost: {
|
|
2733
|
+
input: 5,
|
|
2734
|
+
output: 30,
|
|
2735
|
+
cacheRead: 0.5,
|
|
2736
|
+
cacheWrite: 0,
|
|
2737
|
+
},
|
|
2738
|
+
contextWindow: 1000000,
|
|
2739
|
+
maxTokens: 1000000,
|
|
2740
|
+
} satisfies Model<"anthropic-messages">,
|
|
2741
|
+
"stepfun/step-3.5-flash": {
|
|
2742
|
+
id: "stepfun/step-3.5-flash",
|
|
2743
|
+
name: "StepFun 3.5 Flash",
|
|
2744
|
+
api: "anthropic-messages",
|
|
2745
|
+
provider: "vercel-ai-gateway",
|
|
2746
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2747
|
+
reasoning: true,
|
|
2748
|
+
input: ["text"],
|
|
2749
|
+
cost: {
|
|
2750
|
+
input: 0.09,
|
|
2751
|
+
output: 0.3,
|
|
2752
|
+
cacheRead: 0.02,
|
|
2753
|
+
cacheWrite: 0,
|
|
2754
|
+
},
|
|
2755
|
+
contextWindow: 262114,
|
|
2756
|
+
maxTokens: 262114,
|
|
2757
|
+
} satisfies Model<"anthropic-messages">,
|
|
2758
|
+
"stepfun/step-3.7-flash": {
|
|
2759
|
+
id: "stepfun/step-3.7-flash",
|
|
2760
|
+
name: "Step 3.7 Flash",
|
|
2761
|
+
api: "anthropic-messages",
|
|
2762
|
+
provider: "vercel-ai-gateway",
|
|
2763
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2764
|
+
reasoning: true,
|
|
2765
|
+
input: ["text", "image"],
|
|
2766
|
+
cost: {
|
|
2767
|
+
input: 0.2,
|
|
2768
|
+
output: 1.15,
|
|
2769
|
+
cacheRead: 0.04,
|
|
2770
|
+
cacheWrite: 0,
|
|
2771
|
+
},
|
|
2772
|
+
contextWindow: 256000,
|
|
2773
|
+
maxTokens: 256000,
|
|
2774
|
+
} satisfies Model<"anthropic-messages">,
|
|
2775
|
+
"thinkingmachines/inkling": {
|
|
2776
|
+
id: "thinkingmachines/inkling",
|
|
2777
|
+
name: "Inkling",
|
|
2778
|
+
api: "anthropic-messages",
|
|
2779
|
+
provider: "vercel-ai-gateway",
|
|
2780
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2781
|
+
reasoning: true,
|
|
2782
|
+
input: ["text", "image"],
|
|
2783
|
+
cost: {
|
|
2784
|
+
input: 1,
|
|
2785
|
+
output: 4.05,
|
|
2786
|
+
cacheRead: 0.17,
|
|
2787
|
+
cacheWrite: 0,
|
|
2788
|
+
},
|
|
2789
|
+
contextWindow: 256000,
|
|
2790
|
+
maxTokens: 256000,
|
|
2791
|
+
} satisfies Model<"anthropic-messages">,
|
|
2792
|
+
"xai/grok-4.1-fast-non-reasoning": {
|
|
2793
|
+
id: "xai/grok-4.1-fast-non-reasoning",
|
|
2794
|
+
name: "Grok 4.1 Fast Non-Reasoning",
|
|
2795
|
+
api: "anthropic-messages",
|
|
2796
|
+
provider: "vercel-ai-gateway",
|
|
2797
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2798
|
+
reasoning: false,
|
|
2799
|
+
input: ["text", "image"],
|
|
2800
|
+
cost: {
|
|
2801
|
+
input: 0.2,
|
|
2802
|
+
output: 0.5,
|
|
2803
|
+
cacheRead: 0.05,
|
|
2804
|
+
cacheWrite: 0,
|
|
2805
|
+
},
|
|
2806
|
+
contextWindow: 1000000,
|
|
2807
|
+
maxTokens: 1000000,
|
|
2808
|
+
} satisfies Model<"anthropic-messages">,
|
|
2809
|
+
"xai/grok-4.1-fast-reasoning": {
|
|
2810
|
+
id: "xai/grok-4.1-fast-reasoning",
|
|
2811
|
+
name: "Grok 4.1 Fast Reasoning",
|
|
2812
|
+
api: "anthropic-messages",
|
|
2813
|
+
provider: "vercel-ai-gateway",
|
|
2814
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2815
|
+
reasoning: true,
|
|
2816
|
+
input: ["text", "image"],
|
|
2817
|
+
cost: {
|
|
2818
|
+
input: 0.2,
|
|
2819
|
+
output: 0.5,
|
|
2820
|
+
cacheRead: 0.05,
|
|
2821
|
+
cacheWrite: 0,
|
|
2822
|
+
},
|
|
2823
|
+
contextWindow: 1000000,
|
|
2824
|
+
maxTokens: 1000000,
|
|
2825
|
+
} satisfies Model<"anthropic-messages">,
|
|
2826
|
+
"xai/grok-4.20-multi-agent": {
|
|
2827
|
+
id: "xai/grok-4.20-multi-agent",
|
|
2828
|
+
name: "Grok 4.20 Multi-Agent",
|
|
2829
|
+
api: "anthropic-messages",
|
|
2830
|
+
provider: "vercel-ai-gateway",
|
|
2831
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2832
|
+
reasoning: true,
|
|
2833
|
+
input: ["text", "image"],
|
|
2834
|
+
cost: {
|
|
2835
|
+
input: 1.25,
|
|
2836
|
+
output: 2.5,
|
|
2837
|
+
cacheRead: 0.2,
|
|
2838
|
+
cacheWrite: 0,
|
|
2839
|
+
},
|
|
2840
|
+
contextWindow: 2000000,
|
|
2841
|
+
maxTokens: 2000000,
|
|
2842
|
+
} satisfies Model<"anthropic-messages">,
|
|
2843
|
+
"xai/grok-4.20-multi-agent-beta": {
|
|
2844
|
+
id: "xai/grok-4.20-multi-agent-beta",
|
|
2845
|
+
name: "Grok 4.20 Multi Agent Beta",
|
|
2846
|
+
api: "anthropic-messages",
|
|
2847
|
+
provider: "vercel-ai-gateway",
|
|
2848
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2849
|
+
reasoning: true,
|
|
2850
|
+
input: ["text", "image"],
|
|
2851
|
+
cost: {
|
|
2852
|
+
input: 1.25,
|
|
2853
|
+
output: 2.5,
|
|
2854
|
+
cacheRead: 0.2,
|
|
2855
|
+
cacheWrite: 0,
|
|
2856
|
+
},
|
|
2857
|
+
contextWindow: 2000000,
|
|
2858
|
+
maxTokens: 2000000,
|
|
2859
|
+
} satisfies Model<"anthropic-messages">,
|
|
2860
|
+
"xai/grok-4.20-non-reasoning": {
|
|
2861
|
+
id: "xai/grok-4.20-non-reasoning",
|
|
2862
|
+
name: "Grok 4.20 Non-Reasoning",
|
|
2863
|
+
api: "anthropic-messages",
|
|
2864
|
+
provider: "vercel-ai-gateway",
|
|
2865
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2866
|
+
reasoning: false,
|
|
2867
|
+
input: ["text", "image"],
|
|
2868
|
+
cost: {
|
|
2869
|
+
input: 1.25,
|
|
2870
|
+
output: 2.5,
|
|
2871
|
+
cacheRead: 0.2,
|
|
2872
|
+
cacheWrite: 0,
|
|
2873
|
+
},
|
|
2874
|
+
contextWindow: 2000000,
|
|
2875
|
+
maxTokens: 2000000,
|
|
2876
|
+
} satisfies Model<"anthropic-messages">,
|
|
2877
|
+
"xai/grok-4.20-non-reasoning-beta": {
|
|
2878
|
+
id: "xai/grok-4.20-non-reasoning-beta",
|
|
2879
|
+
name: "Grok 4.20 Beta Non-Reasoning",
|
|
2880
|
+
api: "anthropic-messages",
|
|
2881
|
+
provider: "vercel-ai-gateway",
|
|
2882
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2883
|
+
reasoning: false,
|
|
2884
|
+
input: ["text", "image"],
|
|
2885
|
+
cost: {
|
|
2886
|
+
input: 1.25,
|
|
2887
|
+
output: 2.5,
|
|
2888
|
+
cacheRead: 0.2,
|
|
2889
|
+
cacheWrite: 0,
|
|
2890
|
+
},
|
|
2891
|
+
contextWindow: 2000000,
|
|
2892
|
+
maxTokens: 2000000,
|
|
2893
|
+
} satisfies Model<"anthropic-messages">,
|
|
2894
|
+
"xai/grok-4.20-reasoning": {
|
|
2895
|
+
id: "xai/grok-4.20-reasoning",
|
|
2896
|
+
name: "Grok 4.20 Reasoning",
|
|
2897
|
+
api: "anthropic-messages",
|
|
2898
|
+
provider: "vercel-ai-gateway",
|
|
2899
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2900
|
+
reasoning: true,
|
|
2901
|
+
input: ["text", "image"],
|
|
2902
|
+
cost: {
|
|
2903
|
+
input: 1.25,
|
|
2904
|
+
output: 2.5,
|
|
2905
|
+
cacheRead: 0.2,
|
|
2906
|
+
cacheWrite: 0,
|
|
2907
|
+
},
|
|
2908
|
+
contextWindow: 2000000,
|
|
2909
|
+
maxTokens: 2000000,
|
|
2910
|
+
} satisfies Model<"anthropic-messages">,
|
|
2911
|
+
"xai/grok-4.20-reasoning-beta": {
|
|
2912
|
+
id: "xai/grok-4.20-reasoning-beta",
|
|
2913
|
+
name: "Grok 4.20 Beta Reasoning",
|
|
2914
|
+
api: "anthropic-messages",
|
|
2915
|
+
provider: "vercel-ai-gateway",
|
|
2916
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2917
|
+
reasoning: true,
|
|
2918
|
+
input: ["text", "image"],
|
|
2919
|
+
cost: {
|
|
2920
|
+
input: 1.25,
|
|
2921
|
+
output: 2.5,
|
|
2922
|
+
cacheRead: 0.2,
|
|
2923
|
+
cacheWrite: 0,
|
|
2924
|
+
},
|
|
2925
|
+
contextWindow: 2000000,
|
|
2926
|
+
maxTokens: 2000000,
|
|
2927
|
+
} satisfies Model<"anthropic-messages">,
|
|
2928
|
+
"xai/grok-4.3": {
|
|
2929
|
+
id: "xai/grok-4.3",
|
|
2930
|
+
name: "Grok 4.3",
|
|
2931
|
+
api: "anthropic-messages",
|
|
2932
|
+
provider: "vercel-ai-gateway",
|
|
2933
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2934
|
+
reasoning: true,
|
|
2935
|
+
input: ["text", "image"],
|
|
2936
|
+
cost: {
|
|
2937
|
+
input: 1.25,
|
|
2938
|
+
output: 2.5,
|
|
2939
|
+
cacheRead: 0.2,
|
|
2940
|
+
cacheWrite: 0,
|
|
2941
|
+
},
|
|
2942
|
+
contextWindow: 1000000,
|
|
2943
|
+
maxTokens: 1000000,
|
|
2944
|
+
} satisfies Model<"anthropic-messages">,
|
|
2945
|
+
"xai/grok-4.5": {
|
|
2946
|
+
id: "xai/grok-4.5",
|
|
2947
|
+
name: "Grok 4.5",
|
|
2948
|
+
api: "anthropic-messages",
|
|
2949
|
+
provider: "vercel-ai-gateway",
|
|
2950
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2951
|
+
reasoning: true,
|
|
2952
|
+
input: ["text", "image"],
|
|
2953
|
+
cost: {
|
|
2954
|
+
input: 2,
|
|
2955
|
+
output: 6,
|
|
2956
|
+
cacheRead: 0.5,
|
|
2957
|
+
cacheWrite: 0,
|
|
2958
|
+
},
|
|
2959
|
+
contextWindow: 500000,
|
|
2960
|
+
maxTokens: 500000,
|
|
2961
|
+
} satisfies Model<"anthropic-messages">,
|
|
2962
|
+
"xai/grok-build-0.1": {
|
|
2963
|
+
id: "xai/grok-build-0.1",
|
|
2964
|
+
name: "Grok Build 0.1",
|
|
2965
|
+
api: "anthropic-messages",
|
|
2966
|
+
provider: "vercel-ai-gateway",
|
|
2967
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2968
|
+
reasoning: true,
|
|
2969
|
+
input: ["text", "image"],
|
|
2970
|
+
cost: {
|
|
2971
|
+
input: 1,
|
|
2972
|
+
output: 2,
|
|
2973
|
+
cacheRead: 0.2,
|
|
2974
|
+
cacheWrite: 0,
|
|
2975
|
+
},
|
|
2976
|
+
contextWindow: 256000,
|
|
2977
|
+
maxTokens: 256000,
|
|
2978
|
+
} satisfies Model<"anthropic-messages">,
|
|
2979
|
+
"xiaomi/mimo-v2.5": {
|
|
2980
|
+
id: "xiaomi/mimo-v2.5",
|
|
2981
|
+
name: "MiMo M2.5",
|
|
2982
|
+
api: "anthropic-messages",
|
|
2983
|
+
provider: "vercel-ai-gateway",
|
|
2984
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
2985
|
+
reasoning: true,
|
|
2986
|
+
input: ["text", "image"],
|
|
2987
|
+
cost: {
|
|
2988
|
+
input: 0.14,
|
|
2989
|
+
output: 0.28,
|
|
2990
|
+
cacheRead: 0.0028,
|
|
2991
|
+
cacheWrite: 0,
|
|
2992
|
+
},
|
|
2993
|
+
contextWindow: 1050000,
|
|
2994
|
+
maxTokens: 131100,
|
|
2995
|
+
} satisfies Model<"anthropic-messages">,
|
|
2996
|
+
"xiaomi/mimo-v2.5-pro": {
|
|
2997
|
+
id: "xiaomi/mimo-v2.5-pro",
|
|
2998
|
+
name: "MiMo V2.5 Pro",
|
|
2999
|
+
api: "anthropic-messages",
|
|
3000
|
+
provider: "vercel-ai-gateway",
|
|
3001
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3002
|
+
reasoning: true,
|
|
3003
|
+
input: ["text"],
|
|
3004
|
+
cost: {
|
|
3005
|
+
input: 0.435,
|
|
3006
|
+
output: 0.87,
|
|
3007
|
+
cacheRead: 0.0036,
|
|
3008
|
+
cacheWrite: 0,
|
|
3009
|
+
},
|
|
3010
|
+
contextWindow: 1050000,
|
|
3011
|
+
maxTokens: 131000,
|
|
3012
|
+
} satisfies Model<"anthropic-messages">,
|
|
3013
|
+
"zai/glm-4.5": {
|
|
3014
|
+
id: "zai/glm-4.5",
|
|
3015
|
+
name: "GLM 4.5",
|
|
3016
|
+
api: "anthropic-messages",
|
|
3017
|
+
provider: "vercel-ai-gateway",
|
|
3018
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3019
|
+
reasoning: true,
|
|
3020
|
+
input: ["text"],
|
|
3021
|
+
cost: {
|
|
3022
|
+
input: 0.6,
|
|
3023
|
+
output: 2.2,
|
|
3024
|
+
cacheRead: 0.11,
|
|
3025
|
+
cacheWrite: 0,
|
|
3026
|
+
},
|
|
3027
|
+
contextWindow: 128000,
|
|
3028
|
+
maxTokens: 96000,
|
|
3029
|
+
} satisfies Model<"anthropic-messages">,
|
|
3030
|
+
"zai/glm-4.5-air": {
|
|
3031
|
+
id: "zai/glm-4.5-air",
|
|
3032
|
+
name: "GLM 4.5 Air",
|
|
3033
|
+
api: "anthropic-messages",
|
|
3034
|
+
provider: "vercel-ai-gateway",
|
|
3035
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3036
|
+
reasoning: true,
|
|
3037
|
+
input: ["text"],
|
|
3038
|
+
cost: {
|
|
3039
|
+
input: 0.2,
|
|
3040
|
+
output: 1.1,
|
|
3041
|
+
cacheRead: 0.03,
|
|
3042
|
+
cacheWrite: 0,
|
|
3043
|
+
},
|
|
3044
|
+
contextWindow: 128000,
|
|
3045
|
+
maxTokens: 96000,
|
|
3046
|
+
} satisfies Model<"anthropic-messages">,
|
|
3047
|
+
"zai/glm-4.5v": {
|
|
3048
|
+
id: "zai/glm-4.5v",
|
|
3049
|
+
name: "GLM 4.5V",
|
|
3050
|
+
api: "anthropic-messages",
|
|
3051
|
+
provider: "vercel-ai-gateway",
|
|
3052
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3053
|
+
reasoning: true,
|
|
3054
|
+
input: ["text", "image"],
|
|
3055
|
+
cost: {
|
|
3056
|
+
input: 0.6,
|
|
3057
|
+
output: 1.8,
|
|
3058
|
+
cacheRead: 0.11,
|
|
3059
|
+
cacheWrite: 0,
|
|
3060
|
+
},
|
|
3061
|
+
contextWindow: 66000,
|
|
3062
|
+
maxTokens: 16000,
|
|
3063
|
+
} satisfies Model<"anthropic-messages">,
|
|
3064
|
+
"zai/glm-4.6": {
|
|
3065
|
+
id: "zai/glm-4.6",
|
|
3066
|
+
name: "GLM 4.6",
|
|
3067
|
+
api: "anthropic-messages",
|
|
3068
|
+
provider: "vercel-ai-gateway",
|
|
3069
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3070
|
+
reasoning: true,
|
|
3071
|
+
input: ["text"],
|
|
3072
|
+
cost: {
|
|
3073
|
+
input: 0.6,
|
|
3074
|
+
output: 2.2,
|
|
3075
|
+
cacheRead: 0.11,
|
|
3076
|
+
cacheWrite: 0,
|
|
3077
|
+
},
|
|
3078
|
+
contextWindow: 200000,
|
|
3079
|
+
maxTokens: 96000,
|
|
3080
|
+
} satisfies Model<"anthropic-messages">,
|
|
3081
|
+
"zai/glm-4.6v": {
|
|
3082
|
+
id: "zai/glm-4.6v",
|
|
3083
|
+
name: "GLM-4.6V",
|
|
3084
|
+
api: "anthropic-messages",
|
|
3085
|
+
provider: "vercel-ai-gateway",
|
|
3086
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3087
|
+
reasoning: true,
|
|
3088
|
+
input: ["text", "image"],
|
|
3089
|
+
cost: {
|
|
3090
|
+
input: 0.3,
|
|
3091
|
+
output: 0.9,
|
|
3092
|
+
cacheRead: 0.05,
|
|
3093
|
+
cacheWrite: 0,
|
|
3094
|
+
},
|
|
3095
|
+
contextWindow: 128000,
|
|
3096
|
+
maxTokens: 24000,
|
|
3097
|
+
} satisfies Model<"anthropic-messages">,
|
|
3098
|
+
"zai/glm-4.6v-flash": {
|
|
3099
|
+
id: "zai/glm-4.6v-flash",
|
|
3100
|
+
name: "GLM-4.6V-Flash",
|
|
3101
|
+
api: "anthropic-messages",
|
|
3102
|
+
provider: "vercel-ai-gateway",
|
|
3103
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3104
|
+
reasoning: true,
|
|
3105
|
+
input: ["text", "image"],
|
|
3106
|
+
cost: {
|
|
3107
|
+
input: 0,
|
|
3108
|
+
output: 0,
|
|
3109
|
+
cacheRead: 0,
|
|
3110
|
+
cacheWrite: 0,
|
|
3111
|
+
},
|
|
3112
|
+
contextWindow: 128000,
|
|
3113
|
+
maxTokens: 24000,
|
|
3114
|
+
} satisfies Model<"anthropic-messages">,
|
|
3115
|
+
"zai/glm-4.7": {
|
|
3116
|
+
id: "zai/glm-4.7",
|
|
3117
|
+
name: "GLM 4.7",
|
|
3118
|
+
api: "anthropic-messages",
|
|
3119
|
+
provider: "vercel-ai-gateway",
|
|
3120
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3121
|
+
reasoning: true,
|
|
3122
|
+
input: ["text"],
|
|
3123
|
+
cost: {
|
|
3124
|
+
input: 0.6,
|
|
3125
|
+
output: 2.2,
|
|
3126
|
+
cacheRead: 0.12,
|
|
3127
|
+
cacheWrite: 0,
|
|
3128
|
+
},
|
|
3129
|
+
contextWindow: 200000,
|
|
3130
|
+
maxTokens: 120000,
|
|
3131
|
+
} satisfies Model<"anthropic-messages">,
|
|
3132
|
+
"zai/glm-4.7-flash": {
|
|
3133
|
+
id: "zai/glm-4.7-flash",
|
|
3134
|
+
name: "GLM 4.7 Flash",
|
|
3135
|
+
api: "anthropic-messages",
|
|
3136
|
+
provider: "vercel-ai-gateway",
|
|
3137
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3138
|
+
reasoning: true,
|
|
3139
|
+
input: ["text"],
|
|
3140
|
+
cost: {
|
|
3141
|
+
input: 0.07,
|
|
3142
|
+
output: 0.4,
|
|
3143
|
+
cacheRead: 0,
|
|
3144
|
+
cacheWrite: 0,
|
|
3145
|
+
},
|
|
3146
|
+
contextWindow: 200000,
|
|
3147
|
+
maxTokens: 131000,
|
|
3148
|
+
} satisfies Model<"anthropic-messages">,
|
|
3149
|
+
"zai/glm-4.7-flashx": {
|
|
3150
|
+
id: "zai/glm-4.7-flashx",
|
|
3151
|
+
name: "GLM 4.7 FlashX",
|
|
3152
|
+
api: "anthropic-messages",
|
|
3153
|
+
provider: "vercel-ai-gateway",
|
|
3154
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3155
|
+
reasoning: true,
|
|
3156
|
+
input: ["text"],
|
|
3157
|
+
cost: {
|
|
3158
|
+
input: 0.06,
|
|
3159
|
+
output: 0.4,
|
|
3160
|
+
cacheRead: 0.01,
|
|
3161
|
+
cacheWrite: 0,
|
|
3162
|
+
},
|
|
3163
|
+
contextWindow: 200000,
|
|
3164
|
+
maxTokens: 128000,
|
|
3165
|
+
} satisfies Model<"anthropic-messages">,
|
|
3166
|
+
"zai/glm-5": {
|
|
3167
|
+
id: "zai/glm-5",
|
|
3168
|
+
name: "GLM 5",
|
|
3169
|
+
api: "anthropic-messages",
|
|
3170
|
+
provider: "vercel-ai-gateway",
|
|
3171
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3172
|
+
reasoning: true,
|
|
3173
|
+
input: ["text"],
|
|
3174
|
+
cost: {
|
|
3175
|
+
input: 0.95,
|
|
3176
|
+
output: 3.15,
|
|
3177
|
+
cacheRead: 0.2,
|
|
3178
|
+
cacheWrite: 0,
|
|
3179
|
+
},
|
|
3180
|
+
contextWindow: 202800,
|
|
3181
|
+
maxTokens: 131100,
|
|
3182
|
+
} satisfies Model<"anthropic-messages">,
|
|
3183
|
+
"zai/glm-5-turbo": {
|
|
3184
|
+
id: "zai/glm-5-turbo",
|
|
3185
|
+
name: "GLM 5 Turbo",
|
|
3186
|
+
api: "anthropic-messages",
|
|
3187
|
+
provider: "vercel-ai-gateway",
|
|
3188
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3189
|
+
reasoning: true,
|
|
3190
|
+
input: ["text"],
|
|
3191
|
+
cost: {
|
|
3192
|
+
input: 1.2,
|
|
3193
|
+
output: 4,
|
|
3194
|
+
cacheRead: 0.24,
|
|
3195
|
+
cacheWrite: 0,
|
|
3196
|
+
},
|
|
3197
|
+
contextWindow: 202800,
|
|
3198
|
+
maxTokens: 131100,
|
|
3199
|
+
} satisfies Model<"anthropic-messages">,
|
|
3200
|
+
"zai/glm-5.1": {
|
|
3201
|
+
id: "zai/glm-5.1",
|
|
3202
|
+
name: "GLM 5.1",
|
|
3203
|
+
api: "anthropic-messages",
|
|
3204
|
+
provider: "vercel-ai-gateway",
|
|
3205
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3206
|
+
reasoning: true,
|
|
3207
|
+
input: ["text"],
|
|
3208
|
+
cost: {
|
|
3209
|
+
input: 1.3,
|
|
3210
|
+
output: 4.3,
|
|
3211
|
+
cacheRead: 0.26,
|
|
3212
|
+
cacheWrite: 0,
|
|
3213
|
+
},
|
|
3214
|
+
contextWindow: 202000,
|
|
3215
|
+
maxTokens: 202000,
|
|
3216
|
+
} satisfies Model<"anthropic-messages">,
|
|
3217
|
+
"zai/glm-5.2": {
|
|
3218
|
+
id: "zai/glm-5.2",
|
|
3219
|
+
name: "GLM 5.2",
|
|
3220
|
+
api: "anthropic-messages",
|
|
3221
|
+
provider: "vercel-ai-gateway",
|
|
3222
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3223
|
+
reasoning: true,
|
|
3224
|
+
input: ["text"],
|
|
3225
|
+
cost: {
|
|
3226
|
+
input: 1.4,
|
|
3227
|
+
output: 4.4,
|
|
3228
|
+
cacheRead: 0.26,
|
|
3229
|
+
cacheWrite: 0,
|
|
3230
|
+
},
|
|
3231
|
+
contextWindow: 1040000,
|
|
3232
|
+
maxTokens: 128000,
|
|
3233
|
+
} satisfies Model<"anthropic-messages">,
|
|
3234
|
+
"zai/glm-5.2-fast": {
|
|
3235
|
+
id: "zai/glm-5.2-fast",
|
|
3236
|
+
name: "GLM 5.2 Fast",
|
|
3237
|
+
api: "anthropic-messages",
|
|
3238
|
+
provider: "vercel-ai-gateway",
|
|
3239
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3240
|
+
reasoning: true,
|
|
3241
|
+
input: ["text"],
|
|
3242
|
+
cost: {
|
|
3243
|
+
input: 2.1,
|
|
3244
|
+
output: 6.6,
|
|
3245
|
+
cacheRead: 0.21,
|
|
3246
|
+
cacheWrite: 0,
|
|
3247
|
+
},
|
|
3248
|
+
contextWindow: 1000000,
|
|
3249
|
+
maxTokens: 128000,
|
|
3250
|
+
} satisfies Model<"anthropic-messages">,
|
|
3251
|
+
"zai/glm-5v-turbo": {
|
|
3252
|
+
id: "zai/glm-5v-turbo",
|
|
3253
|
+
name: "GLM 5V Turbo",
|
|
3254
|
+
api: "anthropic-messages",
|
|
3255
|
+
provider: "vercel-ai-gateway",
|
|
3256
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
3257
|
+
reasoning: true,
|
|
3258
|
+
input: ["text", "image"],
|
|
3259
|
+
cost: {
|
|
3260
|
+
input: 1.2,
|
|
3261
|
+
output: 4,
|
|
3262
|
+
cacheRead: 0.24,
|
|
3263
|
+
cacheWrite: 0,
|
|
3264
|
+
},
|
|
3265
|
+
contextWindow: 200000,
|
|
3266
|
+
maxTokens: 128000,
|
|
3267
|
+
} satisfies Model<"anthropic-messages">,
|
|
3268
|
+
} as const;
|