@absolutejs/ai 0.2.6 → 0.2.8
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/CHANGELOG.md +12 -0
- package/README.md +2 -0
- package/changelog.json +297 -261
- package/dist/ai/index.js +11 -2
- package/dist/ai/index.js.map +5 -5
- package/dist/ai/models/index.js +315 -28
- package/dist/ai/models/index.js.map +7 -6
- package/dist/ai/providers/anthropic.js +9 -2
- package/dist/ai/providers/anthropic.js.map +4 -4
- package/dist/ai/providers/gemini.js +9 -2
- package/dist/ai/providers/gemini.js.map +4 -4
- package/dist/ai/providers/ollama.js +2 -2
- package/dist/ai/providers/ollama.js.map +3 -3
- package/dist/ai/providers/openai.js +9 -2
- package/dist/ai/providers/openai.js.map +4 -4
- package/dist/ai/providers/openaiCompatible.js +9 -2
- package/dist/ai/providers/openaiCompatible.js.map +4 -4
- package/dist/ai/providers/openaiResponses.js +9 -2
- package/dist/ai/providers/openaiResponses.js.map +4 -4
- package/dist/ai/providers/openrouter.js +9 -2
- package/dist/ai/providers/openrouter.js.map +4 -4
- package/dist/ai/research.js +84 -0
- package/dist/ai/research.js.map +10 -0
- package/dist/src/ai/generateAI.d.ts +2 -0
- package/dist/src/ai/models/catalog.d.ts +2 -1
- package/dist/src/ai/models/directory.d.ts +38 -0
- package/dist/src/ai/models/index.d.ts +1 -0
- package/dist/src/ai/models/reasoning.d.ts +2 -1
- package/dist/src/ai/research.d.ts +33 -0
- package/dist/src/ai/research.test.d.ts +1 -0
- package/dist/types/ai.d.ts +2 -0
- package/package.json +7 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/ai/models/catalog.ts", "../src/ai/models/reasoning.ts", "../src/ai/models/index.ts"],
|
|
3
|
+
"sources": ["../src/ai/models/catalog.ts", "../src/ai/models/reasoning.ts", "../src/ai/models/directory.ts", "../src/ai/models/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { ModelMetadata } from \"./index\";\n\n/** Reviewed provider support, independent of application feature availability. */\nexport const MODEL_METADATA: Readonly<Record<string, ModelMetadata>> = {\n \"anthropic:claude-fable-5-1\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/models/overview\",\n \"https://platform.claude.com/docs/en/build-with-claude/pdf-support\",\n \"https://platform.claude.com/docs/en/build-with-claude/structured-outputs\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"anthropic:claude-opus-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/models/overview\",\n \"https://platform.claude.com/docs/en/build-with-claude/pdf-support\",\n \"https://platform.claude.com/docs/en/build-with-claude/structured-outputs\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"anthropic:claude-sonnet-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/models/overview\",\n \"https://platform.claude.com/docs/en/build-with-claude/pdf-support\",\n \"https://platform.claude.com/docs/en/build-with-claude/structured-outputs\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"anthropic:claude-haiku-4-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 200000,\n sources: [\n \"https://platform.claude.com/docs/en/models/overview\",\n \"https://platform.claude.com/docs/en/build-with-claude/pdf-support\",\n \"https://platform.claude.com/docs/en/build-with-claude/structured-outputs\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"anthropic:claude-opus-4-6\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n sources: [\n \"https://platform.claude.com/docs/en/models/overview\",\n \"https://platform.claude.com/docs/en/build-with-claude/pdf-support\",\n \"https://platform.claude.com/docs/en/build-with-claude/structured-outputs\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"anthropic:claude-sonnet-4-6\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n sources: [\n \"https://platform.claude.com/docs/en/models/overview\",\n \"https://platform.claude.com/docs/en/build-with-claude/pdf-support\",\n \"https://platform.claude.com/docs/en/build-with-claude/structured-outputs\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-6-astra\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-6-astra\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-5.6-sol\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-5.6-sol\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-5.6-terra\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-5.6-terra\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-5.6-luna\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-5.6-luna\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"google:gemini-3.8-flash\": {\n input: [\"text\", \"image\", \"pdf\", \"audio\", \"video\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1048576,\n sources: [\"https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash\"],\n reviewedAt: \"2026-09-20\",\n },\n \"google:gemini-3.1-pro-preview\": {\n input: [\"text\", \"image\", \"pdf\", \"audio\", \"video\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1048576,\n sources: [\n \"https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"google:gemini-2.5-flash\": {\n input: [\"text\", \"image\", \"pdf\", \"audio\", \"video\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1048576,\n sources: [\"https://ai.google.dev/gemini-api/docs/models/gemini-2.5-flash\"],\n reviewedAt: \"2026-09-20\",\n },\n \"xai:grok-4.6\": {\n input: [\"text\", \"image\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 500000,\n sources: [\n \"https://docs.x.ai/developers/grok-4-6\",\n \"https://docs.x.ai/developers/model-capabilities/text/structured-outputs\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"deepseek:deepseek-flash\": {\n input: [\"text\", \"image\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://api-docs.deepseek.com/quick_start/pricing/\"],\n reviewedAt: \"2026-09-20\",\n },\n \"deepseek:deepseek-v4-pro\": {\n input: [\"text\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://api-docs.deepseek.com/quick_start/pricing/\"],\n reviewedAt: \"2026-09-20\",\n },\n \"mistral:mistral-medium-3-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\"],\n contextWindow: 256000,\n sources: [\"https://docs.mistral.ai/models/mistral-medium-3-5-26-04\"],\n reviewedAt: \"2026-09-20\",\n },\n \"moonshot:kimi-k3\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://platform.kimi.ai/docs/guide/kimi-k3-quickstart\"],\n reviewedAt: \"2026-09-20\",\n },\n \"moonshot:kimi-k2.7-code\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 262144,\n sources: [\"https://www.kimi.ai/resources/kimi-k2-7-code\"],\n reviewedAt: \"2026-09-20\",\n },\n \"meta:Llama-4-Maverick-17B-128E-Instruct-FP8\": {\n input: [\"text\", \"image\"],\n output: [\"text\"],\n features: [\"tools\"],\n contextWindow: 1000000,\n sources: [\n \"https://github.com/meta-llama/llama-models/blob/main/models/llama4/MODEL_CARD.md\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"alibaba:qwen3.8-max\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://help.aliyun.com/en/model-studio/qwen3-8-max\"],\n reviewedAt: \"2026-09-20\",\n },\n \"alibaba:qwen3.7-plus\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://help.aliyun.com/en/model-studio/qwen3-7-plus\"],\n reviewedAt: \"2026-09-20\",\n },\n};\n\nexport const getModelMetadata = (\n provider: string,\n id: string,\n): ModelMetadata | undefined => MODEL_METADATA[`${provider}:${id}`];\n",
|
|
6
|
-
"import type { ReasoningEffort } from \"../../../types/ai\";\n\nexport const REASONING_EFFORTS = [\n \"none\",\n \"minimal\",\n \"low\",\n \"medium\",\n \"high\",\n \"xhigh\",\n \"max\",\n] as const;\nexport type ReasoningSelection = \"auto\" | ReasoningEffort;\nexport type ModelReasoning = {\n kind: \"effort\" | \"budget\" | \"fixed\";\n efforts: readonly ReasoningEffort[];\n description: string;\n source: string;\n};\nexport const isReasoningSelection = (\n value: unknown,\n): value is ReasoningSelection =>\n value === \"auto\" || REASONING_EFFORTS.some((effort) => effort === value);\nconst profile = (\n kind: ModelReasoning[\"kind\"],\n efforts: readonly ReasoningEffort[],\n description: string,\n source: string,\n): ModelReasoning => ({ kind, efforts, description, source });\nconst claude = profile(\n \"effort\",\n [\"low\", \"medium\", \"high\", \"xhigh\", \"max\"],\n \"More thinking for harder problems; higher settings can take longer and use more credits.\",\n \"https://platform.claude.com/docs/en/build-with-claude/effort\",\n);\nconst claude46 = {\n ...claude,\n efforts: [\"low\", \"medium\", \"high\", \"max\"] as const,\n};\nconst haiku = profile(\n \"budget\",\n [\"none\", \"low\", \"medium\", \"high\"],\n \"Thinking-token budget: Low 2,048; Medium 8,192; High 16,384. Actual usage can be lower.\",\n \"https://platform.claude.com/docs/en/build-with-claude/extended-thinking\",\n);\nconst gpt = profile(\n \"effort\",\n [\"none\", \"low\", \"medium\", \"high\", \"xhigh\", \"max\"],\n claude.description,\n \"https://developers.openai.com/api/docs/models/gpt-5.6-sol\",\n);\nconst gemini = profile(\n \"effort\",\n [\"low\", \"medium\", \"high\"],\n claude.description,\n \"https://ai.google.dev/gemini-api/docs/openai\",\n);\nconst deepseek = profile(\n \"effort\",\n [\"none\", \"low\", \"high\", \"max\"],\n claude.description,\n \"https://api-docs.deepseek.com/guides/thinking_mode/\",\n);\nconst mistral = profile(\n \"effort\",\n [\"none\", \"high\"],\n \"Minimal thinking or full reasoning. This model does not offer intermediate effort levels.\",\n \"https://docs.mistral.ai/studio/conversations/reasoning\",\n);\nconst qwen = profile(\n \"budget\",\n [\"none\", \"low\", \"medium\", \"high\"],\n haiku.description,\n \"https://help.aliyun.com/en/model-studio/deep-thinking\",\n);\n/** Exact reviewed IDs; unknown models expose only the provider default. Reviewed 2026-09-20. */\nexport const MODEL_REASONING: Readonly<Record<string, ModelReasoning>> = {\n \"anthropic:claude-fable-5-1\": claude,\n \"anthropic:claude-opus-5\": claude,\n \"anthropic:claude-sonnet-5\": claude,\n \"anthropic:claude-sonnet-4-6\": claude46,\n \"anthropic:claude-opus-4-6\": claude46,\n \"anthropic:claude-haiku-4-5\": haiku,\n \"openai:gpt-6-astra\": {\n ...gpt,\n efforts: [\"low\", \"medium\", \"high\", \"xhigh\", \"max\"],\n source: \"https://developers.openai.com/api/docs/models/gpt-6-astra\",\n },\n \"openai:gpt-5.6-sol\": gpt,\n \"openai:gpt-5.6-terra\": gpt,\n \"openai:gpt-5.6-luna\": gpt,\n \"google:gemini-3.8-flash\": gemini,\n \"google:gemini-3.1-pro-preview\": gemini,\n \"google:gemini-2.5-flash\": profile(\n \"budget\",\n [\"none\", \"low\", \"medium\", \"high\"],\n \"Thinking-token budget: Low 1,024; Medium 8,192; High 24,576.\",\n gemini.source,\n ),\n \"xai:grok-4.6\": profile(\n \"effort\",\n [\"low\", \"medium\", \"high\", \"xhigh\"],\n \"Always reasons. Choose how much thinking it should do.\",\n \"https://docs.x.ai/developers/model-capabilities/text/reasoning\",\n ),\n \"deepseek:deepseek-flash\": deepseek,\n \"deepseek:deepseek-v4-pro\": deepseek,\n \"mistral:mistral-medium-3-5\": mistral,\n \"mistral:mistral-small-latest\": mistral,\n \"alibaba:qwen3.8-max\": qwen,\n \"alibaba:qwen3.7-plus\": qwen,\n \"moonshot:kimi-k3\": profile(\n \"effort\",\n [\"low\", \"high\", \"max\"],\n \"Always reasons. Choose how much thinking it should do.\",\n \"https://platform.kimi.ai/docs/guide/kimi-k3-quickstart\",\n ),\n \"moonshot:kimi-k2.7-code\": profile(\n \"fixed\",\n [],\n \"Thinking is always enabled; this model has no documented adjustable effort control.\",\n \"https://www.kimi.ai/resources/kimi-k2-7-code\",\n ),\n};\nexport const getModelReasoning = (\n provider: string,\n model: string,\n): ModelReasoning | undefined => MODEL_REASONING[`${provider}:${model}`];\nexport const supportsReasoningSelection = (\n provider: string,\n model: string,\n selection: ReasoningSelection,\n): boolean =>\n selection === \"auto\" ||\n Boolean(getModelReasoning(provider, model)?.efforts.includes(selection));\nexport const reasoningSelectionLabel = (\n selection: ReasoningSelection,\n provider?: string,\n): string => {\n if (selection === \"auto\") return \"Auto\";\n if (selection === \"none\") return provider === \"mistral\" ? \"Minimal\" : \"Off\";\n if (selection === \"xhigh\") return \"Extra high\";\n return selection.charAt(0).toUpperCase() + selection.slice(1);\n};\n",
|
|
7
|
-
"
|
|
5
|
+
"import type { ModelMetadata } from \"./index\";\n\n/** Reviewed provider support, independent of application feature availability.\n * Anthropic entries come from the Models API (`max_input_tokens`, `capabilities`). */\nexport const MODEL_METADATA: Readonly<Record<string, ModelMetadata>> = {\n \"anthropic:claude-opus-5-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-fable-5-1\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-opus-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-sonnet-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-fable-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-opus-4-8\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-opus-4-7\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-sonnet-4-6\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-opus-4-6\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-opus-4-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 200000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-haiku-4-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 200000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"anthropic:claude-sonnet-4-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\n \"https://platform.claude.com/docs/en/api/models/retrieve\",\n \"https://platform.claude.com/docs/en/build-with-claude/prompt-caching\",\n ],\n reviewedAt: \"2026-09-25\",\n },\n \"openai:gpt-6-astra\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-6-astra\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-5.6-sol\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-5.6-sol\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-5.6-terra\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-5.6-terra\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"openai:gpt-5.6-luna\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1050000,\n sources: [\n \"https://developers.openai.com/api/docs/models/gpt-5.6-luna\",\n \"https://developers.openai.com/api/docs/guides/pdf-files\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"google:gemini-3.8-flash\": {\n input: [\"text\", \"image\", \"pdf\", \"audio\", \"video\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1048576,\n sources: [\"https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash\"],\n reviewedAt: \"2026-09-20\",\n },\n \"google:gemini-3.1-pro-preview\": {\n input: [\"text\", \"image\", \"pdf\", \"audio\", \"video\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1048576,\n sources: [\n \"https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"google:gemini-2.5-flash\": {\n input: [\"text\", \"image\", \"pdf\", \"audio\", \"video\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 1048576,\n sources: [\"https://ai.google.dev/gemini-api/docs/models/gemini-2.5-flash\"],\n reviewedAt: \"2026-09-20\",\n },\n \"xai:grok-4.6\": {\n input: [\"text\", \"image\"],\n output: [\"text\"],\n features: [\n \"reasoning\",\n \"tools\",\n \"structured-output\",\n \"prompt-cache\",\n \"web-search\",\n ],\n contextWindow: 500000,\n sources: [\n \"https://docs.x.ai/developers/grok-4-6\",\n \"https://docs.x.ai/developers/model-capabilities/text/structured-outputs\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"deepseek:deepseek-flash\": {\n input: [\"text\", \"image\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://api-docs.deepseek.com/quick_start/pricing/\"],\n reviewedAt: \"2026-09-20\",\n },\n \"deepseek:deepseek-v4-pro\": {\n input: [\"text\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://api-docs.deepseek.com/quick_start/pricing/\"],\n reviewedAt: \"2026-09-20\",\n },\n \"mistral:mistral-medium-3-5\": {\n input: [\"text\", \"image\", \"pdf\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"structured-output\"],\n contextWindow: 256000,\n sources: [\"https://docs.mistral.ai/models/mistral-medium-3-5-26-04\"],\n reviewedAt: \"2026-09-20\",\n },\n \"moonshot:kimi-k3\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://platform.kimi.ai/docs/guide/kimi-k3-quickstart\"],\n reviewedAt: \"2026-09-20\",\n },\n \"moonshot:kimi-k2.7-code\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 262144,\n sources: [\"https://www.kimi.ai/resources/kimi-k2-7-code\"],\n reviewedAt: \"2026-09-20\",\n },\n \"meta:Llama-4-Maverick-17B-128E-Instruct-FP8\": {\n input: [\"text\", \"image\"],\n output: [\"text\"],\n features: [\"tools\"],\n contextWindow: 1000000,\n sources: [\n \"https://github.com/meta-llama/llama-models/blob/main/models/llama4/MODEL_CARD.md\",\n ],\n reviewedAt: \"2026-09-20\",\n },\n \"alibaba:qwen3.8-max\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://help.aliyun.com/en/model-studio/qwen3-8-max\"],\n reviewedAt: \"2026-09-20\",\n },\n \"alibaba:qwen3.7-plus\": {\n input: [\"text\", \"image\", \"video\"],\n output: [\"text\"],\n features: [\"reasoning\", \"tools\", \"prompt-cache\"],\n contextWindow: 1000000,\n sources: [\"https://help.aliyun.com/en/model-studio/qwen3-7-plus\"],\n reviewedAt: \"2026-09-20\",\n },\n};\n\nexport const getModelMetadata = (\n provider: string,\n id: string,\n): ModelMetadata | undefined => MODEL_METADATA[`${provider}:${id}`];\n",
|
|
6
|
+
"import type { ReasoningEffort } from \"../../../types/ai\";\n\nexport const REASONING_EFFORTS = [\n \"none\",\n \"minimal\",\n \"low\",\n \"medium\",\n \"high\",\n \"xhigh\",\n \"max\",\n] as const;\nexport type ReasoningSelection = \"auto\" | ReasoningEffort;\nexport type ModelReasoning = {\n kind: \"effort\" | \"budget\" | \"fixed\";\n efforts: readonly ReasoningEffort[];\n description: string;\n source: string;\n};\nexport const isReasoningSelection = (\n value: unknown,\n): value is ReasoningSelection =>\n value === \"auto\" || REASONING_EFFORTS.some((effort) => effort === value);\nconst profile = (\n kind: ModelReasoning[\"kind\"],\n efforts: readonly ReasoningEffort[],\n description: string,\n source: string,\n): ModelReasoning => ({ kind, efforts, description, source });\nconst claude = profile(\n \"effort\",\n [\"low\", \"medium\", \"high\", \"xhigh\", \"max\"],\n \"More thinking for harder problems; higher settings can take longer and use more credits.\",\n \"https://platform.claude.com/docs/en/build-with-claude/effort\",\n);\nconst claude46 = {\n ...claude,\n efforts: [\"low\", \"medium\", \"high\", \"max\"] as const,\n};\nconst opus45 = { ...claude, efforts: [\"low\", \"medium\", \"high\"] as const };\nconst haiku = profile(\n \"budget\",\n [\"none\", \"low\", \"medium\", \"high\"],\n \"Thinking-token budget: Low 2,048; Medium 8,192; High 16,384. Actual usage can be lower.\",\n \"https://platform.claude.com/docs/en/build-with-claude/extended-thinking\",\n);\nconst gpt = profile(\n \"effort\",\n [\"none\", \"low\", \"medium\", \"high\", \"xhigh\", \"max\"],\n claude.description,\n \"https://developers.openai.com/api/docs/models/gpt-5.6-sol\",\n);\nconst gemini = profile(\n \"effort\",\n [\"low\", \"medium\", \"high\"],\n claude.description,\n \"https://ai.google.dev/gemini-api/docs/openai\",\n);\nconst deepseek = profile(\n \"effort\",\n [\"none\", \"low\", \"high\", \"max\"],\n claude.description,\n \"https://api-docs.deepseek.com/guides/thinking_mode/\",\n);\nconst mistral = profile(\n \"effort\",\n [\"none\", \"high\"],\n \"Minimal thinking or full reasoning. This model does not offer intermediate effort levels.\",\n \"https://docs.mistral.ai/studio/conversations/reasoning\",\n);\nconst qwen = profile(\n \"budget\",\n [\"none\", \"low\", \"medium\", \"high\"],\n haiku.description,\n \"https://help.aliyun.com/en/model-studio/deep-thinking\",\n);\n/** Exact reviewed IDs; unknown models expose only the provider default. Reviewed 2026-09-20;\n * Anthropic effort levels re-checked against the Models API 2026-09-25. */\nexport const MODEL_REASONING: Readonly<Record<string, ModelReasoning>> = {\n \"anthropic:claude-opus-5-5\": claude,\n \"anthropic:claude-fable-5-1\": claude,\n \"anthropic:claude-opus-5\": claude,\n \"anthropic:claude-sonnet-5\": claude,\n \"anthropic:claude-fable-5\": claude,\n \"anthropic:claude-opus-4-8\": claude,\n \"anthropic:claude-opus-4-7\": claude,\n \"anthropic:claude-sonnet-4-6\": claude46,\n \"anthropic:claude-opus-4-6\": claude46,\n \"anthropic:claude-opus-4-5\": opus45,\n \"anthropic:claude-haiku-4-5\": haiku,\n \"anthropic:claude-sonnet-4-5\": haiku,\n \"openai:gpt-6-astra\": {\n ...gpt,\n efforts: [\"low\", \"medium\", \"high\", \"xhigh\", \"max\"],\n source: \"https://developers.openai.com/api/docs/models/gpt-6-astra\",\n },\n \"openai:gpt-5.6-sol\": gpt,\n \"openai:gpt-5.6-terra\": gpt,\n \"openai:gpt-5.6-luna\": gpt,\n \"google:gemini-3.8-flash\": gemini,\n \"google:gemini-3.1-pro-preview\": gemini,\n \"google:gemini-2.5-flash\": profile(\n \"budget\",\n [\"none\", \"low\", \"medium\", \"high\"],\n \"Thinking-token budget: Low 1,024; Medium 8,192; High 24,576.\",\n gemini.source,\n ),\n \"xai:grok-4.6\": profile(\n \"effort\",\n [\"low\", \"medium\", \"high\", \"xhigh\"],\n \"Always reasons. Choose how much thinking it should do.\",\n \"https://docs.x.ai/developers/model-capabilities/text/reasoning\",\n ),\n \"deepseek:deepseek-flash\": deepseek,\n \"deepseek:deepseek-v4-pro\": deepseek,\n \"mistral:mistral-medium-3-5\": mistral,\n \"mistral:mistral-small-latest\": mistral,\n \"alibaba:qwen3.8-max\": qwen,\n \"alibaba:qwen3.7-plus\": qwen,\n \"moonshot:kimi-k3\": profile(\n \"effort\",\n [\"low\", \"high\", \"max\"],\n \"Always reasons. Choose how much thinking it should do.\",\n \"https://platform.kimi.ai/docs/guide/kimi-k3-quickstart\",\n ),\n \"moonshot:kimi-k2.7-code\": profile(\n \"fixed\",\n [],\n \"Thinking is always enabled; this model has no documented adjustable effort control.\",\n \"https://www.kimi.ai/resources/kimi-k2-7-code\",\n ),\n};\nexport const getModelReasoning = (\n provider: string,\n model: string,\n): ModelReasoning | undefined => MODEL_REASONING[`${provider}:${model}`];\nexport const supportsReasoningSelection = (\n provider: string,\n model: string,\n selection: ReasoningSelection,\n): boolean =>\n selection === \"auto\" ||\n Boolean(getModelReasoning(provider, model)?.efforts.includes(selection));\nexport const reasoningSelectionLabel = (\n selection: ReasoningSelection,\n provider?: string,\n): string => {\n if (selection === \"auto\") return \"Auto\";\n if (selection === \"none\") return provider === \"mistral\" ? \"Minimal\" : \"Off\";\n if (selection === \"xhigh\") return \"Extra high\";\n return selection.charAt(0).toUpperCase() + selection.slice(1);\n};\n",
|
|
7
|
+
"import { getModelMetadata } from \"./catalog\";\nimport { getModelReasoning } from \"./reasoning\";\nimport { modelCapabilities } from \"./index\";\n\n/** Display names for the providers the directory covers. */\nexport const MODEL_PROVIDERS: Readonly<Record<string, string>> = {\n anthropic: \"Anthropic\",\n openai: \"OpenAI\",\n google: \"Google\",\n xai: \"xAI\",\n deepseek: \"DeepSeek\",\n mistral: \"Mistral\",\n alibaba: \"Alibaba\",\n moonshot: \"Moonshot AI\",\n meta: \"Meta\",\n};\n\nexport type ModelDirectoryEntry = {\n provider: string;\n /** The exact model ID sent to the provider. */\n id: string;\n name: string;\n /** One short, plain sentence for pickers. */\n description: string;\n /** A current flagship worth showing first. */\n featured?: boolean;\n /** Superseded by a newer model in the same line; hide by default. */\n legacy?: boolean;\n};\n\n/**\n * Human-facing model directory for pickers, newest first within each provider.\n * Capabilities and context windows come from MODEL_METADATA, not from here.\n * Anthropic entries were checked against the Models API on 2026-09-25.\n */\nexport const MODEL_DIRECTORY: readonly ModelDirectoryEntry[] = [\n {\n provider: \"anthropic\",\n id: \"claude-opus-5-5\",\n name: \"Claude Opus 5.5\",\n description: \"Anthropic’s newest Opus, for the most demanding work.\",\n featured: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-fable-5-1\",\n name: \"Claude Fable 5.1\",\n description: \"Deep reasoning and long-running agentic work.\",\n featured: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-opus-5\",\n name: \"Claude Opus 5\",\n description: \"Complex coding and ambitious projects.\",\n },\n {\n provider: \"anthropic\",\n id: \"claude-sonnet-5\",\n name: \"Claude Sonnet 5\",\n description: \"Balanced speed and intelligence.\",\n featured: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-fable-5\",\n name: \"Claude Fable 5\",\n description: \"The earlier Fable release.\",\n legacy: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-opus-4-8\",\n name: \"Claude Opus 4.8\",\n description: \"The last Opus 4 release.\",\n legacy: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-opus-4-7\",\n name: \"Claude Opus 4.7\",\n description: \"An earlier Opus 4 release.\",\n legacy: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-sonnet-4-6\",\n name: \"Claude Sonnet 4.6\",\n description: \"Dependable everyday work.\",\n },\n {\n provider: \"anthropic\",\n id: \"claude-opus-4-6\",\n name: \"Claude Opus 4.6\",\n description: \"Detailed coding and architecture.\",\n legacy: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-haiku-4-5\",\n name: \"Claude Haiku 4.5\",\n description: \"Quick, focused tasks.\",\n },\n {\n provider: \"anthropic\",\n id: \"claude-opus-4-5\",\n name: \"Claude Opus 4.5\",\n description: \"Older generation, kept for compatibility.\",\n legacy: true,\n },\n {\n provider: \"anthropic\",\n id: \"claude-sonnet-4-5\",\n name: \"Claude Sonnet 4.5\",\n description: \"Older generation, kept for compatibility.\",\n legacy: true,\n },\n {\n provider: \"openai\",\n id: \"gpt-6-astra\",\n name: \"GPT-6 Astra\",\n description: \"Frontier reasoning for demanding work.\",\n featured: true,\n },\n {\n provider: \"openai\",\n id: \"gpt-5.6-sol\",\n name: \"GPT-5.6 Sol\",\n description: \"Complex professional and coding work.\",\n },\n {\n provider: \"openai\",\n id: \"gpt-5.6-terra\",\n name: \"GPT-5.6 Terra\",\n description: \"Balances capability and efficiency.\",\n },\n {\n provider: \"openai\",\n id: \"gpt-5.6-luna\",\n name: \"GPT-5.6 Luna\",\n description: \"Fast, economical everyday work.\",\n },\n {\n provider: \"google\",\n id: \"gemini-3.8-flash\",\n name: \"Gemini 3.8 Flash\",\n description: \"Fast reasoning and long-horizon software work.\",\n featured: true,\n },\n {\n provider: \"google\",\n id: \"gemini-3.1-pro-preview\",\n name: \"Gemini 3.1 Pro\",\n description: \"Complex reasoning with multimodal context.\",\n },\n {\n provider: \"google\",\n id: \"gemini-2.5-flash\",\n name: \"Gemini 2.5 Flash\",\n description: \"Efficient, low-latency assistance.\",\n legacy: true,\n },\n {\n provider: \"xai\",\n id: \"grok-4.6\",\n name: \"Grok 4.6\",\n description: \"Reasoning, code, and agentic tool use.\",\n featured: true,\n },\n {\n provider: \"deepseek\",\n id: \"deepseek-flash\",\n name: \"DeepSeek V4.1 Flash\",\n description: \"Efficient reasoning with a large context window.\",\n featured: true,\n },\n {\n provider: \"deepseek\",\n id: \"deepseek-v4-pro\",\n name: \"DeepSeek V4 Pro\",\n description: \"Detailed reasoning and code generation.\",\n },\n {\n provider: \"mistral\",\n id: \"mistral-medium-3-5\",\n name: \"Mistral Medium 3.5\",\n description: \"Agentic coding and multimodal work.\",\n featured: true,\n },\n {\n provider: \"mistral\",\n id: \"mistral-small-latest\",\n name: \"Mistral Small\",\n description: \"Compact, efficient assistance.\",\n },\n {\n provider: \"alibaba\",\n id: \"qwen3.8-max\",\n name: \"Qwen3.8 Max\",\n description: \"Advanced reasoning from the Qwen family.\",\n featured: true,\n },\n {\n provider: \"alibaba\",\n id: \"qwen3.7-plus\",\n name: \"Qwen3.7 Plus\",\n description: \"Balanced reasoning and everyday work.\",\n },\n {\n provider: \"moonshot\",\n id: \"kimi-k3\",\n name: \"Kimi K3\",\n description: \"Long-horizon coding and agentic tasks.\",\n featured: true,\n },\n {\n provider: \"moonshot\",\n id: \"kimi-k2.7-code\",\n name: \"Kimi K2.7 Code\",\n description: \"Focused coding assistance.\",\n },\n {\n provider: \"meta\",\n id: \"Llama-4-Maverick-17B-128E-Instruct-FP8\",\n name: \"Llama 4 Maverick\",\n description: \"Hosted multimodal reasoning from Meta.\",\n featured: true,\n },\n];\n\nexport const modelKey = (model: { provider: string; id: string }) =>\n `${model.provider}:${model.id}`;\n\nexport type ListedModel = ModelDirectoryEntry & {\n key: string;\n providerName: string;\n capabilities: ReturnType<typeof modelCapabilities>;\n contextWindow: number | null;\n reasoningEfforts: readonly string[];\n};\n\n/** Directory entries joined with reviewed metadata, ready for a picker. */\nexport const listModels = (\n options: { providers?: readonly string[]; includeLegacy?: boolean } = {},\n): ListedModel[] =>\n MODEL_DIRECTORY.filter(\n (entry) =>\n (!options.providers || options.providers.includes(entry.provider)) &&\n (options.includeLegacy || !entry.legacy),\n ).map((entry) => {\n const metadata = getModelMetadata(entry.provider, entry.id);\n return {\n ...entry,\n key: modelKey(entry),\n providerName: MODEL_PROVIDERS[entry.provider] ?? entry.provider,\n capabilities: modelCapabilities(metadata),\n contextWindow: metadata?.contextWindow ?? null,\n reasoningEfforts:\n getModelReasoning(entry.provider, entry.id)?.efforts ?? [],\n };\n });\n\nexport const findModel = (provider: string, id: string) =>\n MODEL_DIRECTORY.find(\n (entry) => entry.provider === provider && entry.id === id,\n );\n",
|
|
8
|
+
"/** Client-safe model discovery. Missing metadata means unknown, never unsupported. */\nexport type ModelModality = \"text\" | \"image\" | \"pdf\" | \"audio\" | \"video\";\nexport type ModelFeature =\n | \"reasoning\"\n | \"tools\"\n | \"structured-output\"\n | \"prompt-cache\"\n | \"web-search\";\nexport type ModelMetadata = {\n input: readonly ModelModality[];\n output: readonly ModelModality[];\n features: readonly ModelFeature[];\n contextWindow?: number;\n sources: readonly string[];\n reviewedAt: string;\n};\nexport const MODEL_CAPABILITY_DESCRIPTIONS = {\n Fast: \"Suited to quick edits and lightweight tasks; actual speed varies with the request.\",\n Reasoning: \"Can spend extra thinking time on complex problems.\",\n Tools:\n \"Supports function calls for actions such as inspecting and editing code.\",\n Vision: \"Understands images. This does not mean it generates images.\",\n PDF: \"Accepts PDF documents, including their text and visual content.\",\n Audio: \"Understands audio input. This does not mean it generates speech.\",\n Video: \"Understands video input. This does not mean it generates videos.\",\n \"Image generation\": \"Produces images as model output.\",\n \"Speech generation\": \"Produces audio as model output.\",\n \"Video generation\": \"Produces video as model output.\",\n Structured:\n \"Supports schema-constrained output for reliable structured data.\",\n Caching:\n \"The provider can reuse matching prompt content to reduce repeated processing. Cache hits are not guaranteed.\",\n Search:\n \"Supports a provider-hosted web-search tool when enabled by the application.\",\n \"Long context\":\n \"A documented context window of at least 200,000 tokens. Application and request limits may be lower.\",\n} as const;\nexport type ModelCapability = keyof typeof MODEL_CAPABILITY_DESCRIPTIONS;\nconst INPUT_BADGES: Partial<Record<ModelModality, ModelCapability>> = {\n image: \"Vision\",\n pdf: \"PDF\",\n audio: \"Audio\",\n video: \"Video\",\n};\nconst OUTPUT_BADGES: Partial<Record<ModelModality, ModelCapability>> = {\n image: \"Image generation\",\n audio: \"Speech generation\",\n video: \"Video generation\",\n};\nconst FEATURE_BADGES: Record<ModelFeature, ModelCapability> = {\n reasoning: \"Reasoning\",\n tools: \"Tools\",\n \"structured-output\": \"Structured\",\n \"prompt-cache\": \"Caching\",\n \"web-search\": \"Search\",\n};\n/** Derive badges from explicit evidence; do not infer support from model names. */\nexport const modelCapabilities = (\n metadata?: ModelMetadata,\n): ModelCapability[] => {\n if (!metadata) return [];\n const badges = new Set<ModelCapability>();\n for (const feature of metadata.features) badges.add(FEATURE_BADGES[feature]);\n for (const input of metadata.input) {\n const badge = INPUT_BADGES[input];\n if (badge) badges.add(badge);\n }\n for (const output of metadata.output) {\n const badge = OUTPUT_BADGES[output];\n if (badge) badges.add(badge);\n }\n if (metadata.contextWindow && metadata.contextWindow >= 200_000)\n badges.add(\"Long context\");\n return [...badges];\n};\nexport { MODEL_METADATA, getModelMetadata } from \"./catalog\";\n\nexport {\n MODEL_REASONING,\n REASONING_EFFORTS,\n getModelReasoning,\n isReasoningSelection,\n supportsReasoningSelection,\n reasoningSelectionLabel,\n type ModelReasoning,\n type ReasoningSelection,\n} from \"./reasoning\";\n\nexport {\n MODEL_DIRECTORY,\n MODEL_PROVIDERS,\n findModel,\n listModels,\n modelKey,\n type ListedModel,\n type ModelDirectoryEntry,\n} from \"./directory\";\n"
|
|
8
9
|
],
|
|
9
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAM,iBAA0D;AAAA,EACrE,8BAA8B;AAAA,IAC5B,OAAO,CAAC,QAAQ,SAAS,KAAK;AAAA,IAC9B,QAAQ,CAAC,MAAM;AAAA,IACf,UAAU,CAAC,aAAa,SAAS,qBAAqB,cAAc;AAAA,IACpE,eAAe;AAAA,I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ACsB;AAAA,EACtB,IAAI,CAAC;AAAA,IAAU,OAAO,CAAC;AAAA,EACvB,MAAM,SAAS,IAAI;AAAA,EACnB,WAAW,WAAW,SAAS;AAAA,IAAU,OAAO,IAAI,eAAe,QAAQ;AAAA,EAC3E,WAAW,SAAS,SAAS,OAAO;AAAA,IAClC,MAAM,QAAQ,aAAa;AAAA,IAC3B,IAAI;AAAA,MAAO,OAAO,IAAI,KAAK;AAAA,EAC7B;AAAA,EACA,WAAW,UAAU,SAAS,QAAQ;AAAA,IACpC,MAAM,QAAQ,cAAc;AAAA,IAC5B,IAAI;AAAA,MAAO,OAAO,IAAI,KAAK;AAAA,EAC7B;AAAA,EACA,IAAI,SAAS,iBAAiB,SAAS,iBAAiB;AAAA,IACtD,OAAO,IAAI,cAAc;AAAA,EAC3B,OAAO,CAAC,GAAG,MAAM;AAAA;",
|
|
11
|
+
"debugId": "7D412EFA56C805B564756E2164756E21",
|
|
11
12
|
"names": []
|
|
12
13
|
}
|
|
@@ -296,7 +296,7 @@ var withResilience = (provider, providerName = "unknown") => {
|
|
|
296
296
|
noteSuccess(providerName);
|
|
297
297
|
} catch (err) {
|
|
298
298
|
const providerError = ProviderError.from(err, providerName);
|
|
299
|
-
const canRetry = !yielded && providerError.retryable && attemptNo < config.maxRetries && !params.signal?.aborted;
|
|
299
|
+
const canRetry = !yielded && providerError.retryable && attemptNo < (params.maxRetries === undefined ? config.maxRetries : Math.max(0, Math.min(config.maxRetries, params.maxRetries))) && !params.signal?.aborted;
|
|
300
300
|
if (canRetry) {
|
|
301
301
|
await sleep(backoffDelay(attemptNo), params.signal);
|
|
302
302
|
yield* attempt(params, attemptNo + 1);
|
|
@@ -374,6 +374,7 @@ var claude46 = {
|
|
|
374
374
|
...claude,
|
|
375
375
|
efforts: ["low", "medium", "high", "max"]
|
|
376
376
|
};
|
|
377
|
+
var opus45 = { ...claude, efforts: ["low", "medium", "high"] };
|
|
377
378
|
var haiku = profile("budget", ["none", "low", "medium", "high"], "Thinking-token budget: Low 2,048; Medium 8,192; High 16,384. Actual usage can be lower.", "https://platform.claude.com/docs/en/build-with-claude/extended-thinking");
|
|
378
379
|
var gpt = profile("effort", ["none", "low", "medium", "high", "xhigh", "max"], claude.description, "https://developers.openai.com/api/docs/models/gpt-5.6-sol");
|
|
379
380
|
var gemini = profile("effort", ["low", "medium", "high"], claude.description, "https://ai.google.dev/gemini-api/docs/openai");
|
|
@@ -381,12 +382,18 @@ var deepseek = profile("effort", ["none", "low", "high", "max"], claude.descript
|
|
|
381
382
|
var mistral = profile("effort", ["none", "high"], "Minimal thinking or full reasoning. This model does not offer intermediate effort levels.", "https://docs.mistral.ai/studio/conversations/reasoning");
|
|
382
383
|
var qwen = profile("budget", ["none", "low", "medium", "high"], haiku.description, "https://help.aliyun.com/en/model-studio/deep-thinking");
|
|
383
384
|
var MODEL_REASONING = {
|
|
385
|
+
"anthropic:claude-opus-5-5": claude,
|
|
384
386
|
"anthropic:claude-fable-5-1": claude,
|
|
385
387
|
"anthropic:claude-opus-5": claude,
|
|
386
388
|
"anthropic:claude-sonnet-5": claude,
|
|
389
|
+
"anthropic:claude-fable-5": claude,
|
|
390
|
+
"anthropic:claude-opus-4-8": claude,
|
|
391
|
+
"anthropic:claude-opus-4-7": claude,
|
|
387
392
|
"anthropic:claude-sonnet-4-6": claude46,
|
|
388
393
|
"anthropic:claude-opus-4-6": claude46,
|
|
394
|
+
"anthropic:claude-opus-4-5": opus45,
|
|
389
395
|
"anthropic:claude-haiku-4-5": haiku,
|
|
396
|
+
"anthropic:claude-sonnet-4-5": haiku,
|
|
390
397
|
"openai:gpt-6-astra": {
|
|
391
398
|
...gpt,
|
|
392
399
|
efforts: ["low", "medium", "high", "xhigh", "max"],
|
|
@@ -1253,5 +1260,5 @@ export {
|
|
|
1253
1260
|
anthropic
|
|
1254
1261
|
};
|
|
1255
1262
|
|
|
1256
|
-
//# debugId=
|
|
1263
|
+
//# debugId=70DF4BD70082C2BA64756E2164756E21
|
|
1257
1264
|
//# sourceMappingURL=anthropic.js.map
|