@bastani/pi-ai 0.9.41-alpha.1 → 0.9.41-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +16 -2
  3. package/dist/api/anthropic-messages.d.ts.map +1 -1
  4. package/dist/api/anthropic-messages.js +2 -0
  5. package/dist/api/anthropic-messages.js.map +1 -1
  6. package/dist/api/cloudflare-workers-ai-system-one.d.ts.map +1 -1
  7. package/dist/api/cloudflare-workers-ai-system-one.js +8 -0
  8. package/dist/api/cloudflare-workers-ai-system-one.js.map +1 -1
  9. package/dist/api/openai-responses-shared.d.ts.map +1 -1
  10. package/dist/api/openai-responses-shared.js +1 -0
  11. package/dist/api/openai-responses-shared.js.map +1 -1
  12. package/dist/api/openrouter-images.js +1 -0
  13. package/dist/api/openrouter-images.js.map +1 -1
  14. package/dist/api/system-one-shared.d.ts +20 -4
  15. package/dist/api/system-one-shared.d.ts.map +1 -1
  16. package/dist/api/system-one-shared.js +49 -19
  17. package/dist/api/system-one-shared.js.map +1 -1
  18. package/dist/api/typesafe-system-one.d.ts.map +1 -1
  19. package/dist/api/typesafe-system-one.js +10 -3
  20. package/dist/api/typesafe-system-one.js.map +1 -1
  21. package/dist/models.d.ts.map +1 -1
  22. package/dist/models.js +1 -0
  23. package/dist/models.js.map +1 -1
  24. package/dist/providers/compat-schema.d.ts +18 -0
  25. package/dist/providers/compat-schema.d.ts.map +1 -1
  26. package/dist/providers/compat-schema.js +10 -0
  27. package/dist/providers/compat-schema.js.map +1 -1
  28. package/dist/providers/data/.manifest.json +1 -1
  29. package/dist/providers/data/cloudflare-workers-ai.json +1 -1
  30. package/dist/providers/data/opencode-go.json +1 -1
  31. package/dist/providers/data/opencode.json +1 -1
  32. package/dist/providers/data/openrouter.json +1 -1
  33. package/dist/providers/data/typesafe.json +1 -1
  34. package/dist/providers/data/vercel-ai-gateway.json +1 -1
  35. package/dist/types.d.ts +6 -2
  36. package/dist/types.d.ts.map +1 -1
  37. package/dist/types.js.map +1 -1
  38. package/dist/utils/version.d.ts +1 -1
  39. package/dist/utils/version.js +1 -1
  40. package/dist/utils/version.js.map +1 -1
  41. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"compat-schema.js","sourceRoot":"","sources":["../../src/providers/compat-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,IAAI,EAAE,MAAM,SAAS,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,SAAS,qBAAqB,CAAC,OAAwB;IACtD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACpH,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAC;IAChE,WAAW,EAAE,6EAA6E;CAC1F,CAAC,CAAC;AAEH,SAAS,wBAAwB,CAAC,OAAwB;IACzD,OAAO,IAAI,CAAC,KAAK,CAChB,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,EAChH,OAAO,CACP,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,wBAAwB,CAAC;IACtE,WAAW,EACV,gOAAgO;CACjO,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC,KAAK,CAAC;IACtD,IAAI,CAAC,MAAM,EAAE;IACb,IAAI,CAAC,MAAM,EAAE;IACb,IAAI,CAAC,OAAO,EAAE;IACd,IAAI,CAAC,IAAI,EAAE;IACX,IAAI,CAAC,MAAM,CA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AK,CAAC,wEAAwE,IAAI,EAAE,CAAC,CAAC;QACjG,CAAC;IACF,CAAC;IAED,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,EAAuD,CAAC;AACzF,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,oBAAoB,EAAE,6BAA6B;IACnD,kBAAkB,EAAE,2BAA2B;IAC/C,wBAAwB,EAAE,2BAA2B;IACrD,wBAAwB,EAAE,2BAA2B;IACrD,oBAAoB,EAAE,6BAA6B;IACnD,yBAAyB,EAAE,mBAAmB;IAC9C,uBAAuB,EAAE,gCAAgC;CAChD,CAAC;AAEX,MAAM,wBAAwB,GAAG,qBAAqB,CACrD,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,EAClF,+BAA+B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE;IACzE,WAAW,EAAE,6CAA6C;IAC1D,oBAAoB,EAAE,IAAI;CAC1B,CAAC,CAAC","sourcesContent":["import { type Static, type TProperties, type TSchemaOptions, Type } from \"typebox\";\nimport { ModelCostSchema } from \"./model-schema.ts\";\n\nfunction sessionAffinityFormat(options?: TSchemaOptions) {\n\treturn Type.Union([Type.Literal(\"openai\"), Type.Literal(\"openai-nosession\"), Type.Literal(\"openrouter\")], options);\n}\n\nexport const SessionAffinityFormatSchema = sessionAffinityFormat({\n\tdescription: \"Session-affinity header format used to route related requests consistently.\",\n});\n\nfunction thinkingTokenBudgetField(options?: TSchemaOptions) {\n\treturn Type.Union(\n\t\t[Type.Literal(\"thinking_token_budget\"), Type.Literal(\"thinking_budget\"), Type.Literal(\"thinking_budget_tokens\")],\n\t\toptions,\n\t);\n}\n\nexport const ThinkingTokenBudgetFieldSchema = thinkingTokenBudgetField({\n\tdescription:\n\t\t'Top-level request field name used by OpenAI-compatible endpoints to cap reasoning tokens. \"thinking_token_budget\" is used by vLLM, \"thinking_budget\" by Qwen, DashScope, or SGLang, and \"thinking_budget_tokens\" by llama.cpp.',\n});\n\nexport const ChatTemplateKwargValueSchema = Type.Union([\n\tType.String(),\n\tType.Number(),\n\tType.Boolean(),\n\tType.Null(),\n\tType.Object({\n\t\t$var: Type.Union([\n\t\t\tType.Literal(\"thinking.enabled\"),\n\t\t\tType.Literal(\"thinking.effort\"),\n\t\t\tType.Literal(\"thinking.budget\"),\n\t\t]),\n\t\tomitWhenOff: Type.Optional(Type.Boolean()),\n\t}),\n]);\n\nfunction percentileCutoffs(metric: string) {\n\treturn Type.Object({\n\t\tp50: Type.Optional(Type.Number({ description: `${metric} at the 50th percentile.` })),\n\t\tp75: Type.Optional(Type.Number({ description: `${metric} at the 75th percentile.` })),\n\t\tp90: Type.Optional(Type.Number({ description: `${metric} at the 90th percentile.` })),\n\t\tp99: Type.Optional(Type.Number({ description: `${metric} at the 99th percentile.` })),\n\t});\n}\n\nexport const OpenRouterRoutingSchema = Type.Object(\n\t{\n\t\tallow_fallbacks: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether to allow backup providers to serve requests.\", default: true }),\n\t\t),\n\t\trequire_parameters: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether to filter providers to only those that support all parameters in the request.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tdata_collection: Type.Optional(\n\t\t\tType.Union([Type.Literal(\"deny\"), Type.Literal(\"allow\")], {\n\t\t\t\tdescription:\n\t\t\t\t\t'Data collection setting. \"allow\": allow providers that may store or train on data. \"deny\": only use providers that do not collect user data.',\n\t\t\t\tdefault: \"allow\",\n\t\t\t}),\n\t\t),\n\t\tzdr: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints.\" }),\n\t\t),\n\t\tenforce_distillable_text: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether to restrict routing to only models that allow text distillation.\" }),\n\t\t),\n\t\torder: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription:\n\t\t\t\t\t\"An ordered list of provider names or slugs to try in sequence, falling back to the next if unavailable.\",\n\t\t\t}),\n\t\t),\n\t\tonly: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription: \"List of provider names or slugs to exclusively allow for this request.\",\n\t\t\t}),\n\t\t),\n\t\tignore: Type.Optional(\n\t\t\tType.Array(Type.String(), { description: \"List of provider names or slugs to skip for this request.\" }),\n\t\t),\n\t\tquantizations: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription:\n\t\t\t\t\t'A list of quantization levels to filter providers by, for example [\"fp16\", \"bf16\", \"fp8\", \"fp6\", \"int8\", \"int4\", \"fp4\", \"fp32\"].',\n\t\t\t}),\n\t\t),\n\t\tsort: Type.Optional(\n\t\t\tType.Union(\n\t\t\t\t[\n\t\t\t\t\tType.String(),\n\t\t\t\t\tType.Object({\n\t\t\t\t\t\tby: Type.Optional(\n\t\t\t\t\t\t\tType.String({ description: 'The sorting metric, such as \"price\", \"throughput\", or \"latency\".' }),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpartition: Type.Optional(\n\t\t\t\t\t\t\tType.Union([Type.String(), Type.Null()], {\n\t\t\t\t\t\t\t\tdescription: 'Partitioning strategy: \"model\" or \"none\".',\n\t\t\t\t\t\t\t\tdefault: \"model\",\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t),\n\t\t\t\t\t}),\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'Sorting strategy. Can be a string such as \"price\", \"throughput\", or \"latency\", or an object.',\n\t\t\t\t},\n\t\t\t),\n\t\t),\n\t\tmax_price: Type.Optional(\n\t\t\tType.Object(\n\t\t\t\t{\n\t\t\t\t\tprompt: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per million prompt tokens.\" }),\n\t\t\t\t\t),\n\t\t\t\t\tcompletion: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per million completion tokens.\" }),\n\t\t\t\t\t),\n\t\t\t\t\timage: Type.Optional(Type.Union([Type.Number(), Type.String()], { description: \"Price per image.\" })),\n\t\t\t\t\taudio: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per audio unit.\" }),\n\t\t\t\t\t),\n\t\t\t\t\trequest: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per request.\" }),\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{ description: \"Maximum price per million tokens in USD.\" },\n\t\t\t),\n\t\t),\n\t\tpreferred_min_throughput: Type.Optional(\n\t\t\tType.Union([Type.Number(), percentileCutoffs(\"Minimum tokens per second\")], {\n\t\t\t\tdescription: \"Preferred minimum throughput in tokens per second. A number applies to p50.\",\n\t\t\t}),\n\t\t),\n\t\tpreferred_max_latency: Type.Optional(\n\t\t\tType.Union([Type.Number(), percentileCutoffs(\"Maximum latency in seconds\")], {\n\t\t\t\tdescription: \"Preferred maximum latency in seconds. A number applies to p50.\",\n\t\t\t}),\n\t\t),\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"OpenRouter provider routing preferences. Controls which upstream providers OpenRouter routes requests to. Sent as the provider field in the OpenRouter API request body. See https://openrouter.ai/docs/guides/routing/provider-selection.\",\n\t},\n);\n\nexport const VercelGatewayRoutingSchema = Type.Object(\n\t{\n\t\tonly: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription:\n\t\t\t\t\t'List of provider slugs to exclusively use for this request, for example [\"bedrock\", \"anthropic\"].',\n\t\t\t}),\n\t\t),\n\t\torder: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription: 'List of provider slugs to try in order, for example [\"anthropic\", \"openai\"].',\n\t\t\t}),\n\t\t),\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"Vercel AI Gateway routing preferences. Controls which upstream providers the gateway routes requests to. See https://vercel.com/docs/ai-gateway/models-and-providers/provider-options.\",\n\t},\n);\n\nexport const AnthropicAllowedFallbackModelSchema = Type.Object(\n\t{\n\t\tprovider: Type.String({ minLength: 1 }),\n\t\tmodel: Type.String({ minLength: 1 }),\n\t\tcost: ModelCostSchema,\n\t},\n\t{ description: \"An Anthropic server-side refusal fallback model with local pricing metadata.\" },\n);\n\nfunction optionalCompatBoolean(options?: TSchemaOptions) {\n\treturn Type.Optional(Type.Boolean(options));\n}\n\nfunction optionalSessionAffinityFormat(options?: TSchemaOptions) {\n\treturn Type.Optional(sessionAffinityFormat(options));\n}\n\nexport const OpenAICompletionsCompatSchema = Type.Object(\n\t{\n\t\tsupportsStore: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the provider supports the store field. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\tsupportsDeveloperRole: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports the developer role instead of system. Default: auto-detected from URL.\",\n\t\t}),\n\t\tsupportsReasoningEffort: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the provider supports reasoning_effort. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\tsupportsTemperature: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the model accepts the temperature request field. When false, the provider omits temperature and also strips temperature, top_p, and top_k from samplingParams.\",\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the model accepts forced tool use (tool_choice \"required\" or a specific function). When false, the provider rejects a forced choice with an error instead of sending a request the model cannot honor. \"auto\" and \"none\" are never altered.',\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsUsageInStreaming: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider supports stream_options.include_usage for token usage in streaming responses.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tsupportsFinishReason: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether streamed responses include finish_reason. When false, pi infers stop or toolUse when the stream ends.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tmaxTokensField: Type.Optional(\n\t\t\tType.Union([Type.Literal(\"max_completion_tokens\"), Type.Literal(\"max_tokens\")], {\n\t\t\t\tdescription: \"Which field to use for max tokens. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\trequiresToolResultName: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether tool results require the name field. Default: auto-detected from URL.\" }),\n\t\t),\n\t\trequiresAssistantAfterToolResult: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether a user message after tool results requires an assistant message in between. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\trequiresThinkingAsText: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether thinking blocks must be converted to text blocks with <thinking> delimiters. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\trequiresReasoningContentOnAssistantMessages: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\tthinkingFormat: Type.Optional(\n\t\t\tType.Union(\n\t\t\t\t[\n\t\t\t\t\tType.Literal(\"openai\"),\n\t\t\t\t\tType.Literal(\"openrouter\"),\n\t\t\t\t\tType.Literal(\"deepseek\"),\n\t\t\t\t\tType.Literal(\"together\"),\n\t\t\t\t\tType.Literal(\"baseten\"),\n\t\t\t\t\tType.Literal(\"zai\"),\n\t\t\t\t\tType.Literal(\"qwen\"),\n\t\t\t\t\tType.Literal(\"chat-template\"),\n\t\t\t\t\tType.Literal(\"qwen-chat-template\"),\n\t\t\t\t\tType.Literal(\"string-thinking\"),\n\t\t\t\t\tType.Literal(\"ant-ling\"),\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'Format for reasoning or thinking parameters. When omitted, Pi auto-detects the format from the provider URL. \"openai\" uses reasoning_effort, \"openrouter\" uses reasoning.effort, \"deepseek\" uses thinking.type plus reasoning_effort when supported, \"together\" uses reasoning.enabled plus reasoning_effort when supported, \"baseten\" uses configurable chat_template_args plus reasoning_effort when supported, \"zai\" uses thinking.type, \"qwen\" uses top-level enable_thinking, \"qwen-chat-template\" uses chat_template_kwargs.enable_thinking and preserve_thinking, \"chat-template\" uses configurable chat_template_kwargs, \"string-thinking\" uses top-level thinking, and \"ant-ling\" uses reasoning.effort only when the mapped effort is non-null.',\n\t\t\t\t},\n\t\t\t),\n\t\t),\n\t\tchatTemplateKwargs: Type.Optional(\n\t\t\tType.Record(Type.String(), ChatTemplateKwargValueSchema, {\n\t\t\t\tdescription:\n\t\t\t\t\t'Kwargs sent as chat_template_kwargs when thinkingFormat is \"chat-template\". Use $var with \"thinking.enabled\", \"thinking.effort\", or \"thinking.budget\" for pi-controlled values.',\n\t\t\t}),\n\t\t),\n\t\tchatTemplateArgs: Type.Optional(\n\t\t\tType.Record(Type.String(), ChatTemplateKwargValueSchema, {\n\t\t\t\tdescription:\n\t\t\t\t\t'Arguments sent as chat_template_args when thinkingFormat is \"baseten\". Use $var with \"thinking.enabled\", \"thinking.effort\", or \"thinking.budget\" for pi-controlled values.',\n\t\t\t}),\n\t\t),\n\t\topenRouterRouting: Type.Optional(OpenRouterRoutingSchema),\n\t\tvercelGatewayRouting: Type.Optional(VercelGatewayRoutingSchema),\n\t\tzaiToolStream: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether z.ai supports top-level tool_stream for streaming tool call deltas.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tthinkingTokenBudgetField: Type.Optional(\n\t\t\tthinkingTokenBudgetField({\n\t\t\t\tdescription:\n\t\t\t\t\t'Top-level request field used to cap reasoning tokens from thinkingBudgets. Reasoning and the answer share max_tokens on these endpoints. \"thinking_token_budget\" is vLLM, \"thinking_budget\" is Qwen, DashScope, or SGLang, and \"thinking_budget_tokens\" is llama.cpp. Off by default and not set on the generated catalog.',\n\t\t\t}),\n\t\t),\n\t\tsupportsThinkingTokenBudget: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t'Alias for thinkingTokenBudgetField: \"thinking_token_budget\" (vLLM). Prefer thinkingTokenBudgetField.',\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsOpenAIGrammarTools: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts system or developer messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsMidConvoToolAdditions: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether system messages can introduce additional tools mid-conversation. Requires supportsMidConvoSystemMessages. The generated catalog enables this for capable models.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsStrictMode: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports the strict field in tool definitions. Generated capable models enable it explicitly.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tcacheControlFormat: Type.Optional(\n\t\t\tType.Literal(\"anthropic\", {\n\t\t\t\tdescription:\n\t\t\t\t\t\"Cache control convention for prompt caching. Anthropic applies cache_control markers to the system prompt, last tool definition, and last user, assistant, or tool-result text content.\",\n\t\t\t}),\n\t\t),\n\t\tsendSessionAffinityHeaders: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether to send session-affinity data from options.sessionId. Default: true for OpenRouter endpoints, false otherwise.\",\n\t\t}),\n\t\tsessionAffinityFormat: optionalSessionAffinityFormat({\n\t\t\tdescription:\n\t\t\t\t\"Session-affinity header format. openai sends session_id, x-client-request-id, and x-session-affinity; openai-nosession sends x-client-request-id and x-session-affinity; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected.\",\n\t\t}),\n\t\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the provider supports long prompt cache retention (prompt_cache_retention: \"24h\" or Anthropic-style cache_control.ttl: \"1h\", depending on format). Default: auto-detected from provider and URL.',\n\t\t}),\n\t\tvllmPriority: Type.Optional(\n\t\t\tType.Number({\n\t\t\t\tdescription:\n\t\t\t\t\t\"vLLM scheduler priority sent as the top-level priority request field. Lower values are handled earlier and the server default is 0. Only meaningful with --scheduling-policy priority. Off by default and not set on the generated catalog.\",\n\t\t\t}),\n\t\t),\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"Compatibility settings for OpenAI-compatible completions APIs. Use this to override URL-based auto-detection for custom providers.\",\n\t\tadditionalProperties: true,\n\t},\n);\n\nexport const OpenAIResponsesCompatSchema = Type.Object(\n\t{\n\t\tsupportsDeveloperRole: optionalCompatBoolean({\n\t\t\tdescription: \"Whether the provider supports the developer role instead of system.\",\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts developer or system messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsessionAffinityFormat: optionalSessionAffinityFormat({\n\t\t\tdescription:\n\t\t\t\t\"Session-affinity header format. openai sends session_id and x-client-request-id; openai-nosession sends x-client-request-id; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected.\",\n\t\t}),\n\t\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the provider supports long prompt cache retention. This uses prompt_cache_options.ttl: \"30m\" on GPT-5.6+ and prompt_cache_retention: \"24h\" on earlier models.',\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsStrictMode: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports strict JSON-schema function tools. Defaults are API-specific; generated OpenAI models enable it explicitly.\",\n\t\t}),\n\t\tsupportsOpenAIGrammarTools: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether to emit OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsAdditionalTools: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the model supports message-anchored additional_tools input items.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsToolSearch: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the model supports client-executed tool search for transcript-anchored additions.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsExplicitPromptCacheMode: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMidConvoEffort: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Only used by the openai-responses API, and ignored with Sign in with ChatGPT on the openai provider.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMaxOutputTokens: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t},\n\t{ description: \"Compatibility settings for OpenAI Responses APIs.\", additionalProperties: true },\n);\n\nexport const AnthropicMessagesCompatSchema = Type.Object(\n\t{\n\t\tsupportsEagerToolInputStreaming: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider accepts per-tool eager_input_streaming. When false, the Anthropic provider omits tools[].eager_input_streaming and sends the legacy fine-grained-tool-streaming-2025-05-14 beta header for tool-enabled requests.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\t\tdescription: \"Whether the provider supports Anthropic long cache retention through cache_control.ttl.\",\n\t\t\tdefault: true,\n\t\t}),\n\t\tsendSessionAffinityHeaders: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether to send x-session-affinity from options.sessionId when caching is enabled. Required for providers like Fireworks that use session affinity for prompt cache routing; requests to the same replica maximize cache hits. Default: true for OpenRouter endpoints, false otherwise.\",\n\t\t}),\n\t\tsessionAffinityFormat: Type.Optional(\n\t\t\tType.Literal(\"openrouter\", {\n\t\t\t\tdescription:\n\t\t\t\t\t\"Session-affinity format. openrouter sends x-session-id; when unset, sends x-session-affinity.\",\n\t\t\t}),\n\t\t),\n\t\tsupportsCacheControlOnTools: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider supports Anthropic-style cache_control markers on tool definitions. When false, cache_control is omitted from tool parameters. Some Anthropic-compatible providers, such as Fireworks, do not support this field on tools and may reject or ignore it.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tsupportsTemperature: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the model accepts the Anthropic temperature request field. Claude Opus 4.7+ rejects non-default values.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tforceAdaptiveThinking: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether to force adaptive thinking (thinking.type: adaptive plus output_config.effort) regardless of model ID. Built-in models that require adaptive thinking set this in generated metadata. Custom Anthropic-compatible providers can set this to true for any model whose upstream requires the adaptive format. Set false to opt out on overridden built-in models.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tallowEmptySignature: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether to replay empty thinking signatures instead of converting thinking to text.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsStrictTools: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider supports Anthropic strict tool schemas. Generated Anthropic models enable it explicitly.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMidConvoEffort: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the exact model transport supports effort-only system messages and thinking binding controls.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts system-role messages inside the conversation. When false, later system messages are folded into the top-level system prompt.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsMidConvoToolChanges: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the exact model accepts mid-conversation tool_addition and tool_removal blocks. Requires supportsMidConvoSystemMessages.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tallowedFallbackModels: Type.Optional(\n\t\t\tType.Array(AnthropicAllowedFallbackModelSchema, {\n\t\t\t\tmaxItems: 3,\n\t\t\t\tdescription:\n\t\t\t\t\t\"Models Anthropic accepts for server-side refusal fallback, with local pricing metadata for returned fallback responses. When absent or empty, callers must omit fallbacks; Anthropic rejects the field for models with no permitted fallback targets.\",\n\t\t\t}),\n\t\t),\n\t\tenforcesPreservedThinkingBinding: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t'Whether the model runs the Anthropic preserved-thinking conversation check, which rejects a request whose system prompt, tools, or earlier messages changed since a replayed thinking block was produced. When true, the provider sends the thinking-binding-controls-2026-08-01 beta header and thinking.block_binding.prefix_mismatch_behavior: \"drop_block\", so a changed prefix drops the affected thinking blocks instead of failing the request.',\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tdelegatesThinkingModelBinding: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the API adjudicates thinking-block model binding itself, always dropping a block the target model cannot read. When true, an assistant turn produced by a different model on the same provider and API replays its signed thinking and redacted_thinking blocks unchanged instead of being rewritten into plain text.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the model accepts forced tool use (tool_choice \"any\" or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request the model is guaranteed to refuse. \"auto\" and \"none\" are never altered.',\n\t\t\tdefault: true,\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for Anthropic Messages-compatible APIs.\", additionalProperties: true },\n);\n\nexport const BedrockCompatSchema = Type.Object(\n\t{\n\t\tsupportsStrictMode: optionalCompatBoolean({\n\t\t\tdescription: \"Whether the model supports Bedrock strict tool schemas.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the model accepts forced tool use (toolChoice \"any\" or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request that is guaranteed to fail. \"auto\" and \"none\" are never altered.',\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsTemperature: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the model accepts inferenceConfig.temperature. When false, the provider omits the field.\",\n\t\t\tdefault: true,\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for Amazon Bedrock models.\", additionalProperties: true },\n);\n\nexport const MistralConversationsCompatSchema = Type.Object(\n\t{\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message.\",\n\t\t\tdefault: false,\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for the Mistral chat API.\", additionalProperties: true },\n);\n\nconst ProviderCompatPropertyOverrides = {\n\tsupportsDeveloperRole: optionalCompatBoolean({\n\t\tdescription: \"Whether the provider supports the developer role instead of system. Defaults are API-specific.\",\n\t}),\n\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether the exact model accepts system or developer messages after the conversation has started. When false, later system messages are folded into the leading system message.\",\n\t\tdefault: false,\n\t}),\n\tsessionAffinityFormat: optionalSessionAffinityFormat({\n\t\tdescription: \"Session-affinity header format. Defaults are API-specific or auto-detected.\",\n\t}),\n\tsupportsMidConvoEffort: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether thinking level changes are sent inside the conversation instead of changing the request's effort, so a change keeps the prompt cache. Used by the anthropic-messages and openai-responses APIs.\",\n\t\tdefault: false,\n\t}),\n\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether the provider supports long prompt cache retention. Defaults are API-specific or auto-detected.\",\n\t}),\n\tsupportsStrictMode: optionalCompatBoolean({\n\t\tdescription: \"Whether the provider supports strict tool schemas. Defaults are API-specific.\",\n\t}),\n\tsupportsOpenAIGrammarTools: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether the provider supports OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools.\",\n\t\tdefault: false,\n\t}),\n\tsendSessionAffinityHeaders: optionalCompatBoolean({\n\t\tdescription: \"Whether to send session-affinity data from options.sessionId. Defaults are API-specific.\",\n\t}),\n\tsupportsTemperature: optionalCompatBoolean({\n\t\tdescription: \"Whether the model accepts the temperature request field. Defaults to true.\",\n\t\tdefault: true,\n\t}),\n\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t'Whether the model accepts forced tool use. When false, the provider rejects a forced choice with an error. \"auto\" and \"none\" are never altered. Defaults to true.',\n\t\tdefault: true,\n\t}),\n} satisfies TProperties;\n\ntype UnionToIntersection<Union> = (Union extends unknown ? (value: Union) => void : never) extends (\n\tvalue: infer Intersection,\n) => void\n\t? Intersection\n\t: never;\n\ntype MergedCompatProperties<PropertyGroups extends readonly TProperties[], Overrides extends TProperties> = Omit<\n\tUnionToIntersection<PropertyGroups[number]>,\n\tkeyof Overrides\n> &\n\tOverrides;\n\n/**\n * Provider-level models.json compatibility is API-agnostic, so it needs one superset. Every\n * duplicate property requires explicit generic metadata, while API-specific schemas retain their\n * own defaults and descriptions.\n */\nfunction mergeCompatProperties<\n\tconst PropertyGroups extends readonly TProperties[],\n\tconst Overrides extends TProperties,\n>(propertyGroups: PropertyGroups, overrides: Overrides): MergedCompatProperties<PropertyGroups, Overrides> {\n\tconst merged: TProperties = {};\n\tconst duplicateNames = new Set<string>();\n\n\tfor (const properties of propertyGroups) {\n\t\tfor (const [name, schema] of Object.entries(properties)) {\n\t\t\tif (merged[name] !== undefined) {\n\t\t\t\tduplicateNames.add(name);\n\t\t\t\tif (!(name in overrides)) {\n\t\t\t\t\tthrow new Error(`Duplicate compatibility schema property requires an override: ${name}`);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmerged[name] = schema;\n\t\t}\n\t}\n\n\tfor (const name of Object.keys(overrides)) {\n\t\tif (!duplicateNames.has(name)) {\n\t\t\tthrow new Error(`Compatibility schema override does not resolve a duplicate property: ${name}`);\n\t\t}\n\t}\n\n\treturn { ...merged, ...overrides } as MergedCompatProperties<PropertyGroups, Overrides>;\n}\n\nexport const CompatSchemasByApi = {\n\t\"openai-completions\": OpenAICompletionsCompatSchema,\n\t\"openai-responses\": OpenAIResponsesCompatSchema,\n\t\"azure-openai-responses\": OpenAIResponsesCompatSchema,\n\t\"openai-codex-responses\": OpenAIResponsesCompatSchema,\n\t\"anthropic-messages\": AnthropicMessagesCompatSchema,\n\t\"bedrock-converse-stream\": BedrockCompatSchema,\n\t\"mistral-conversations\": MistralConversationsCompatSchema,\n} as const;\n\nconst ProviderCompatProperties = mergeCompatProperties(\n\t[...new Set(Object.values(CompatSchemasByApi))].map((schema) => schema.properties),\n\tProviderCompatPropertyOverrides,\n);\n\nexport const ProviderCompatSchema = Type.Object(ProviderCompatProperties, {\n\tdescription: \"Provider and model compatibility overrides.\",\n\tadditionalProperties: true,\n});\n\nexport type ChatTemplateKwargValue = Static<typeof ChatTemplateKwargValueSchema>;\n/** Top-level request field used to cap reasoning tokens on OpenAI-compatible servers. */\nexport type ThinkingTokenBudgetField = Static<typeof ThinkingTokenBudgetFieldSchema>;\nexport type SessionAffinityFormat = Static<typeof SessionAffinityFormatSchema>;\n/** OpenRouter provider routing preferences. */\nexport interface OpenRouterRouting extends Static<typeof OpenRouterRoutingSchema> {}\n/** Vercel AI Gateway routing preferences. */\nexport interface VercelGatewayRouting extends Static<typeof VercelGatewayRoutingSchema> {}\n/** An Anthropic server-side refusal fallback model with local pricing metadata. */\nexport interface AnthropicAllowedFallbackModel extends Static<typeof AnthropicAllowedFallbackModelSchema> {}\n\n/** Compatibility settings for OpenAI-compatible completions APIs. */\nexport interface OpenAICompletionsCompat extends Static<typeof OpenAICompletionsCompatSchema> {}\n/** Compatibility settings for OpenAI Responses APIs. */\nexport interface OpenAIResponsesCompat extends Static<typeof OpenAIResponsesCompatSchema> {}\n/** Compatibility settings for Anthropic Messages-compatible APIs. */\nexport interface AnthropicMessagesCompat extends Static<typeof AnthropicMessagesCompatSchema> {}\n/** Compatibility settings for Amazon Bedrock models. */\nexport interface BedrockCompat extends Static<typeof BedrockCompatSchema> {}\n/** Compatibility settings for the Mistral chat API. */\nexport interface MistralConversationsCompat extends Static<typeof MistralConversationsCompatSchema> {}\n"]}
1
+ {"version":3,"file":"compat-schema.js","sourceRoot":"","sources":["../../src/providers/compat-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,IAAI,EAAE,MAAM,SAAS,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,SAAS,qBAAqB,CAAC,OAAwB;IACtD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACpH,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAC;IAChE,WAAW,EAAE,6EAA6E;CAC1F,CAAC,CAAC;AAEH,SAAS,wBAAwB,CAAC,OAAwB;IACzD,OAAO,IAAI,CAAC,KAAK,CAChB,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,EAChH,OAAO,CACP,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,wBAAwB,CAAC;IACtE,WAAW,EACV,gOAAgO;CACjO,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC,KAAK,CAAC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C,MAAM,CAAC,UAAU,CAAC,EAClF,+BAA+B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE;IACzE,WAAW,EAAE,6CAA6C;IAC1D,oBAAoB,EAAE,IAAI;CAC1B,CAAC,CAAC","sourcesContent":["import { type Static, type TProperties, type TSchemaOptions, Type } from \"typebox\";\nimport { ModelCostSchema } from \"./model-schema.ts\";\n\nfunction sessionAffinityFormat(options?: TSchemaOptions) {\n\treturn Type.Union([Type.Literal(\"openai\"), Type.Literal(\"openai-nosession\"), Type.Literal(\"openrouter\")], options);\n}\n\nexport const SessionAffinityFormatSchema = sessionAffinityFormat({\n\tdescription: \"Session-affinity header format used to route related requests consistently.\",\n});\n\nfunction thinkingTokenBudgetField(options?: TSchemaOptions) {\n\treturn Type.Union(\n\t\t[Type.Literal(\"thinking_token_budget\"), Type.Literal(\"thinking_budget\"), Type.Literal(\"thinking_budget_tokens\")],\n\t\toptions,\n\t);\n}\n\nexport const ThinkingTokenBudgetFieldSchema = thinkingTokenBudgetField({\n\tdescription:\n\t\t'Top-level request field name used by OpenAI-compatible endpoints to cap reasoning tokens. \"thinking_token_budget\" is used by vLLM, \"thinking_budget\" by Qwen, DashScope, or SGLang, and \"thinking_budget_tokens\" by llama.cpp.',\n});\n\nexport const ChatTemplateKwargValueSchema = Type.Union([\n\tType.String(),\n\tType.Number(),\n\tType.Boolean(),\n\tType.Null(),\n\tType.Object({\n\t\t$var: Type.Union([\n\t\t\tType.Literal(\"thinking.enabled\"),\n\t\t\tType.Literal(\"thinking.effort\"),\n\t\t\tType.Literal(\"thinking.budget\"),\n\t\t]),\n\t\tomitWhenOff: Type.Optional(Type.Boolean()),\n\t}),\n]);\n\nfunction percentileCutoffs(metric: string) {\n\treturn Type.Object({\n\t\tp50: Type.Optional(Type.Number({ description: `${metric} at the 50th percentile.` })),\n\t\tp75: Type.Optional(Type.Number({ description: `${metric} at the 75th percentile.` })),\n\t\tp90: Type.Optional(Type.Number({ description: `${metric} at the 90th percentile.` })),\n\t\tp99: Type.Optional(Type.Number({ description: `${metric} at the 99th percentile.` })),\n\t});\n}\n\nexport const OpenRouterRoutingSchema = Type.Object(\n\t{\n\t\tallow_fallbacks: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether to allow backup providers to serve requests.\", default: true }),\n\t\t),\n\t\trequire_parameters: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether to filter providers to only those that support all parameters in the request.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tdata_collection: Type.Optional(\n\t\t\tType.Union([Type.Literal(\"deny\"), Type.Literal(\"allow\")], {\n\t\t\t\tdescription:\n\t\t\t\t\t'Data collection setting. \"allow\": allow providers that may store or train on data. \"deny\": only use providers that do not collect user data.',\n\t\t\t\tdefault: \"allow\",\n\t\t\t}),\n\t\t),\n\t\tzdr: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints.\" }),\n\t\t),\n\t\tenforce_distillable_text: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether to restrict routing to only models that allow text distillation.\" }),\n\t\t),\n\t\torder: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription:\n\t\t\t\t\t\"An ordered list of provider names or slugs to try in sequence, falling back to the next if unavailable.\",\n\t\t\t}),\n\t\t),\n\t\tonly: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription: \"List of provider names or slugs to exclusively allow for this request.\",\n\t\t\t}),\n\t\t),\n\t\tignore: Type.Optional(\n\t\t\tType.Array(Type.String(), { description: \"List of provider names or slugs to skip for this request.\" }),\n\t\t),\n\t\tquantizations: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription:\n\t\t\t\t\t'A list of quantization levels to filter providers by, for example [\"fp16\", \"bf16\", \"fp8\", \"fp6\", \"int8\", \"int4\", \"fp4\", \"fp32\"].',\n\t\t\t}),\n\t\t),\n\t\tsort: Type.Optional(\n\t\t\tType.Union(\n\t\t\t\t[\n\t\t\t\t\tType.String(),\n\t\t\t\t\tType.Object({\n\t\t\t\t\t\tby: Type.Optional(\n\t\t\t\t\t\t\tType.String({ description: 'The sorting metric, such as \"price\", \"throughput\", or \"latency\".' }),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpartition: Type.Optional(\n\t\t\t\t\t\t\tType.Union([Type.String(), Type.Null()], {\n\t\t\t\t\t\t\t\tdescription: 'Partitioning strategy: \"model\" or \"none\".',\n\t\t\t\t\t\t\t\tdefault: \"model\",\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t),\n\t\t\t\t\t}),\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'Sorting strategy. Can be a string such as \"price\", \"throughput\", or \"latency\", or an object.',\n\t\t\t\t},\n\t\t\t),\n\t\t),\n\t\tmax_price: Type.Optional(\n\t\t\tType.Object(\n\t\t\t\t{\n\t\t\t\t\tprompt: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per million prompt tokens.\" }),\n\t\t\t\t\t),\n\t\t\t\t\tcompletion: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per million completion tokens.\" }),\n\t\t\t\t\t),\n\t\t\t\t\timage: Type.Optional(Type.Union([Type.Number(), Type.String()], { description: \"Price per image.\" })),\n\t\t\t\t\taudio: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per audio unit.\" }),\n\t\t\t\t\t),\n\t\t\t\t\trequest: Type.Optional(\n\t\t\t\t\t\tType.Union([Type.Number(), Type.String()], { description: \"Price per request.\" }),\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\t{ description: \"Maximum price per million tokens in USD.\" },\n\t\t\t),\n\t\t),\n\t\tpreferred_min_throughput: Type.Optional(\n\t\t\tType.Union([Type.Number(), percentileCutoffs(\"Minimum tokens per second\")], {\n\t\t\t\tdescription: \"Preferred minimum throughput in tokens per second. A number applies to p50.\",\n\t\t\t}),\n\t\t),\n\t\tpreferred_max_latency: Type.Optional(\n\t\t\tType.Union([Type.Number(), percentileCutoffs(\"Maximum latency in seconds\")], {\n\t\t\t\tdescription: \"Preferred maximum latency in seconds. A number applies to p50.\",\n\t\t\t}),\n\t\t),\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"OpenRouter provider routing preferences. Controls which upstream providers OpenRouter routes requests to. Sent as the provider field in the OpenRouter API request body. See https://openrouter.ai/docs/guides/routing/provider-selection.\",\n\t},\n);\n\nexport const VercelGatewayRoutingSchema = Type.Object(\n\t{\n\t\tonly: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription:\n\t\t\t\t\t'List of provider slugs to exclusively use for this request, for example [\"bedrock\", \"anthropic\"].',\n\t\t\t}),\n\t\t),\n\t\torder: Type.Optional(\n\t\t\tType.Array(Type.String(), {\n\t\t\t\tdescription: 'List of provider slugs to try in order, for example [\"anthropic\", \"openai\"].',\n\t\t\t}),\n\t\t),\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"Vercel AI Gateway routing preferences. Controls which upstream providers the gateway routes requests to. See https://vercel.com/docs/ai-gateway/models-and-providers/provider-options.\",\n\t},\n);\n\nexport const AnthropicAllowedFallbackModelSchema = Type.Object(\n\t{\n\t\tprovider: Type.String({ minLength: 1 }),\n\t\tmodel: Type.String({ minLength: 1 }),\n\t\tcost: ModelCostSchema,\n\t},\n\t{ description: \"An Anthropic server-side refusal fallback model with local pricing metadata.\" },\n);\n\nfunction optionalCompatBoolean(options?: TSchemaOptions) {\n\treturn Type.Optional(Type.Boolean(options));\n}\n\nfunction optionalSessionAffinityFormat(options?: TSchemaOptions) {\n\treturn Type.Optional(sessionAffinityFormat(options));\n}\n\nexport const OpenAICompletionsCompatSchema = Type.Object(\n\t{\n\t\tsupportsStore: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the provider supports the store field. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\tsupportsDeveloperRole: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports the developer role instead of system. Default: auto-detected from URL.\",\n\t\t}),\n\t\tsupportsReasoningEffort: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the provider supports reasoning_effort. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\tsupportsTemperature: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the model accepts the temperature request field. When false, the provider omits temperature and also strips temperature, top_p, and top_k from samplingParams.\",\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the model accepts forced tool use (tool_choice \"required\" or a specific function). When false, the provider rejects a forced choice with an error instead of sending a request the model cannot honor. \"auto\" and \"none\" are never altered.',\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsUsageInStreaming: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider supports stream_options.include_usage for token usage in streaming responses.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tsupportsFinishReason: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether streamed responses include finish_reason. When false, pi infers stop or toolUse when the stream ends.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tmaxTokensField: Type.Optional(\n\t\t\tType.Union([Type.Literal(\"max_completion_tokens\"), Type.Literal(\"max_tokens\")], {\n\t\t\t\tdescription: \"Which field to use for max tokens. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\trequiresToolResultName: Type.Optional(\n\t\t\tType.Boolean({ description: \"Whether tool results require the name field. Default: auto-detected from URL.\" }),\n\t\t),\n\t\trequiresAssistantAfterToolResult: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether a user message after tool results requires an assistant message in between. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\trequiresThinkingAsText: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether thinking blocks must be converted to text blocks with <thinking> delimiters. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\trequiresReasoningContentOnAssistantMessages: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. Default: auto-detected from URL.\",\n\t\t\t}),\n\t\t),\n\t\tthinkingFormat: Type.Optional(\n\t\t\tType.Union(\n\t\t\t\t[\n\t\t\t\t\tType.Literal(\"openai\"),\n\t\t\t\t\tType.Literal(\"openrouter\"),\n\t\t\t\t\tType.Literal(\"deepseek\"),\n\t\t\t\t\tType.Literal(\"together\"),\n\t\t\t\t\tType.Literal(\"baseten\"),\n\t\t\t\t\tType.Literal(\"zai\"),\n\t\t\t\t\tType.Literal(\"qwen\"),\n\t\t\t\t\tType.Literal(\"chat-template\"),\n\t\t\t\t\tType.Literal(\"qwen-chat-template\"),\n\t\t\t\t\tType.Literal(\"string-thinking\"),\n\t\t\t\t\tType.Literal(\"ant-ling\"),\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'Format for reasoning or thinking parameters. When omitted, Pi auto-detects the format from the provider URL. \"openai\" uses reasoning_effort, \"openrouter\" uses reasoning.effort, \"deepseek\" uses thinking.type plus reasoning_effort when supported, \"together\" uses reasoning.enabled plus reasoning_effort when supported, \"baseten\" uses configurable chat_template_args plus reasoning_effort when supported, \"zai\" uses thinking.type, \"qwen\" uses top-level enable_thinking, \"qwen-chat-template\" uses chat_template_kwargs.enable_thinking and preserve_thinking, \"chat-template\" uses configurable chat_template_kwargs, \"string-thinking\" uses top-level thinking, and \"ant-ling\" uses reasoning.effort only when the mapped effort is non-null.',\n\t\t\t\t},\n\t\t\t),\n\t\t),\n\t\tchatTemplateKwargs: Type.Optional(\n\t\t\tType.Record(Type.String(), ChatTemplateKwargValueSchema, {\n\t\t\t\tdescription:\n\t\t\t\t\t'Kwargs sent as chat_template_kwargs when thinkingFormat is \"chat-template\". Use $var with \"thinking.enabled\", \"thinking.effort\", or \"thinking.budget\" for pi-controlled values.',\n\t\t\t}),\n\t\t),\n\t\tchatTemplateArgs: Type.Optional(\n\t\t\tType.Record(Type.String(), ChatTemplateKwargValueSchema, {\n\t\t\t\tdescription:\n\t\t\t\t\t'Arguments sent as chat_template_args when thinkingFormat is \"baseten\". Use $var with \"thinking.enabled\", \"thinking.effort\", or \"thinking.budget\" for pi-controlled values.',\n\t\t\t}),\n\t\t),\n\t\topenRouterRouting: Type.Optional(OpenRouterRoutingSchema),\n\t\tvercelGatewayRouting: Type.Optional(VercelGatewayRoutingSchema),\n\t\tzaiToolStream: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether z.ai supports top-level tool_stream for streaming tool call deltas.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tthinkingTokenBudgetField: Type.Optional(\n\t\t\tthinkingTokenBudgetField({\n\t\t\t\tdescription:\n\t\t\t\t\t'Top-level request field used to cap reasoning tokens from thinkingBudgets. Reasoning and the answer share max_tokens on these endpoints. \"thinking_token_budget\" is vLLM, \"thinking_budget\" is Qwen, DashScope, or SGLang, and \"thinking_budget_tokens\" is llama.cpp. Off by default and not set on the generated catalog.',\n\t\t\t}),\n\t\t),\n\t\tsupportsThinkingTokenBudget: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t'Alias for thinkingTokenBudgetField: \"thinking_token_budget\" (vLLM). Prefer thinkingTokenBudgetField.',\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsOpenAIGrammarTools: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts system or developer messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsMidConvoToolAdditions: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether system messages can introduce additional tools mid-conversation. Requires supportsMidConvoSystemMessages. The generated catalog enables this for capable models.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsStrictMode: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports the strict field in tool definitions. Generated capable models enable it explicitly.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tcacheControlFormat: Type.Optional(\n\t\t\tType.Literal(\"anthropic\", {\n\t\t\t\tdescription:\n\t\t\t\t\t\"Cache control convention for prompt caching. Anthropic applies cache_control markers to the system prompt, last tool definition, and last user, assistant, or tool-result text content.\",\n\t\t\t}),\n\t\t),\n\t\tsendSessionAffinityHeaders: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether to send session-affinity data from options.sessionId. Default: true for OpenRouter endpoints, false otherwise.\",\n\t\t}),\n\t\tsessionAffinityFormat: optionalSessionAffinityFormat({\n\t\t\tdescription:\n\t\t\t\t\"Session-affinity header format. openai sends session_id, x-client-request-id, and x-session-affinity; openai-nosession sends x-client-request-id and x-session-affinity; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected.\",\n\t\t}),\n\t\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the provider supports long prompt cache retention (prompt_cache_retention: \"24h\" or Anthropic-style cache_control.ttl: \"1h\", depending on format). Default: auto-detected from provider and URL.',\n\t\t}),\n\t\tvllmPriority: Type.Optional(\n\t\t\tType.Number({\n\t\t\t\tdescription:\n\t\t\t\t\t\"vLLM scheduler priority sent as the top-level priority request field. Lower values are handled earlier and the server default is 0. Only meaningful with --scheduling-policy priority. Off by default and not set on the generated catalog.\",\n\t\t\t}),\n\t\t),\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"Compatibility settings for OpenAI-compatible completions APIs. Use this to override URL-based auto-detection for custom providers.\",\n\t\tadditionalProperties: true,\n\t},\n);\n\nexport const OpenAIResponsesCompatSchema = Type.Object(\n\t{\n\t\tsupportsDeveloperRole: optionalCompatBoolean({\n\t\t\tdescription: \"Whether the provider supports the developer role instead of system.\",\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts developer or system messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsessionAffinityFormat: optionalSessionAffinityFormat({\n\t\t\tdescription:\n\t\t\t\t\"Session-affinity header format. openai sends session_id and x-client-request-id; openai-nosession sends x-client-request-id; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected.\",\n\t\t}),\n\t\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the provider supports long prompt cache retention. This uses prompt_cache_options.ttl: \"30m\" on GPT-5.6+ and prompt_cache_retention: \"24h\" on earlier models.',\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsStrictMode: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the provider supports strict JSON-schema function tools. Defaults are API-specific; generated OpenAI models enable it explicitly.\",\n\t\t}),\n\t\tsupportsOpenAIGrammarTools: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether to emit OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsAdditionalTools: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the model supports message-anchored additional_tools input items.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsToolSearch: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the model supports client-executed tool search for transcript-anchored additions.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsExplicitPromptCacheMode: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMidConvoEffort: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Only used by the openai-responses API, and ignored with Sign in with ChatGPT on the openai provider.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMaxOutputTokens: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t},\n\t{ description: \"Compatibility settings for OpenAI Responses APIs.\", additionalProperties: true },\n);\n\nexport const AnthropicMessagesCompatSchema = Type.Object(\n\t{\n\t\tsupportsEagerToolInputStreaming: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider accepts per-tool eager_input_streaming. When false, the Anthropic provider omits tools[].eager_input_streaming and sends the legacy fine-grained-tool-streaming-2025-05-14 beta header for tool-enabled requests.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\t\tdescription: \"Whether the provider supports Anthropic long cache retention through cache_control.ttl.\",\n\t\t\tdefault: true,\n\t\t}),\n\t\tsendSessionAffinityHeaders: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether to send x-session-affinity from options.sessionId when caching is enabled. Required for providers like Fireworks that use session affinity for prompt cache routing; requests to the same replica maximize cache hits. Default: true for OpenRouter endpoints, false otherwise.\",\n\t\t}),\n\t\tsessionAffinityFormat: Type.Optional(\n\t\t\tType.Literal(\"openrouter\", {\n\t\t\t\tdescription:\n\t\t\t\t\t\"Session-affinity format. openrouter sends x-session-id; when unset, sends x-session-affinity.\",\n\t\t\t}),\n\t\t),\n\t\tsupportsCacheControlOnTools: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider supports Anthropic-style cache_control markers on tool definitions. When false, cache_control is omitted from tool parameters. Some Anthropic-compatible providers, such as Fireworks, do not support this field on tools and may reject or ignore it.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tsupportsTemperature: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the model accepts the Anthropic temperature request field. Claude Opus 4.7+ rejects non-default values.\",\n\t\t\t\tdefault: true,\n\t\t\t}),\n\t\t),\n\t\tforceAdaptiveThinking: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether to force adaptive thinking (thinking.type: adaptive plus output_config.effort) regardless of model ID. Built-in models that require adaptive thinking set this in generated metadata. Custom Anthropic-compatible providers can set this to true for any model whose upstream requires the adaptive format. Set false to opt out on overridden built-in models.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tallowEmptySignature: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription: \"Whether to replay empty thinking signatures instead of converting thinking to text.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsStrictTools: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the provider supports Anthropic strict tool schemas. Generated Anthropic models enable it explicitly.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMidConvoEffort: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the exact model transport supports effort-only system messages and thinking binding controls.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts system-role messages inside the conversation. When false, later system messages are folded into the top-level system prompt.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsMidConvoToolChanges: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the exact model accepts mid-conversation tool_addition and tool_removal blocks. Requires supportsMidConvoSystemMessages.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tallowedFallbackModels: Type.Optional(\n\t\t\tType.Array(AnthropicAllowedFallbackModelSchema, {\n\t\t\t\tmaxItems: 3,\n\t\t\t\tdescription:\n\t\t\t\t\t\"Models Anthropic accepts for server-side refusal fallback, with local pricing metadata for returned fallback responses. When absent or empty, callers must omit fallbacks; Anthropic rejects the field for models with no permitted fallback targets.\",\n\t\t\t}),\n\t\t),\n\t\tenforcesPreservedThinkingBinding: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t'Whether the model runs the Anthropic preserved-thinking conversation check, which rejects a request whose system prompt, tools, or earlier messages changed since a replayed thinking block was produced. When true, the provider sends the thinking-binding-controls-2026-08-01 beta header and thinking.block_binding.prefix_mismatch_behavior: \"drop_block\", so a changed prefix drops the affected thinking blocks instead of failing the request.',\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tdelegatesThinkingModelBinding: Type.Optional(\n\t\t\tType.Boolean({\n\t\t\t\tdescription:\n\t\t\t\t\t\"Whether the API adjudicates thinking-block model binding itself, always dropping a block the target model cannot read. When true, an assistant turn produced by a different model on the same provider and API replays its signed thinking and redacted_thinking blocks unchanged instead of being rewritten into plain text.\",\n\t\t\t\tdefault: false,\n\t\t\t}),\n\t\t),\n\t\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the model accepts forced tool use (tool_choice \"any\" or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request the model is guaranteed to refuse. \"auto\" and \"none\" are never altered.',\n\t\t\tdefault: true,\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for Anthropic Messages-compatible APIs.\", additionalProperties: true },\n);\n\nexport const BedrockCompatSchema = Type.Object(\n\t{\n\t\tsupportsStrictMode: optionalCompatBoolean({\n\t\t\tdescription: \"Whether the model supports Bedrock strict tool schemas.\",\n\t\t\tdefault: false,\n\t\t}),\n\t\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t'Whether the model accepts forced tool use (toolChoice \"any\" or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request that is guaranteed to fail. \"auto\" and \"none\" are never altered.',\n\t\t\tdefault: true,\n\t\t}),\n\t\tsupportsTemperature: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the model accepts inferenceConfig.temperature. When false, the provider omits the field.\",\n\t\t\tdefault: true,\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for Amazon Bedrock models.\", additionalProperties: true },\n);\n\nexport const MistralConversationsCompatSchema = Type.Object(\n\t{\n\t\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message.\",\n\t\t\tdefault: false,\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for the Mistral chat API.\", additionalProperties: true },\n);\n\nexport const SystemOneCompatSchema = Type.Object(\n\t{\n\t\timageInput: Type.Optional(\n\t\t\tType.Union([Type.Literal(\"assets\"), Type.Literal(\"images\"), Type.Literal(\"state-image-urls\")], {\n\t\t\t\tdescription:\n\t\t\t\t\t'How the service takes classifier images. \"assets\" sends TypeSafe\\'s assets map (PNG and JPEG) and references the images from the state, as TypeSafe and Jev on Workers AI expect. \"images\" sends Clef\\'s images list of data URLs (PNG, JPEG, and WebP, at most four), as Clef on Workers AI expects. \"state-image-urls\" places image_url parts before the state, as OpenRouter expects; OpenRouter drops assets without an error. Auto-detected from the provider, baseUrl, and model ID. Classifier models read it from the provider-level compat; models and modelOverrides entries apply to chat models only.',\n\t\t\t}),\n\t\t),\n\t\tsendImageOptInHeader: optionalCompatBoolean({\n\t\t\tdescription:\n\t\t\t\t\"Whether requests with images send the TypeSafe-Danger-Zone-Images: true header, which TypeSafe's own API requires for its experimental image input. Defaults to true for the typesafe-system-one API unless the model is detected as OpenRouter.\",\n\t\t}),\n\t},\n\t{ description: \"Compatibility settings for System One classifier APIs.\", additionalProperties: true },\n);\n\nconst ProviderCompatPropertyOverrides = {\n\tsupportsDeveloperRole: optionalCompatBoolean({\n\t\tdescription: \"Whether the provider supports the developer role instead of system. Defaults are API-specific.\",\n\t}),\n\tsupportsMidConvoSystemMessages: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether the exact model accepts system or developer messages after the conversation has started. When false, later system messages are folded into the leading system message.\",\n\t\tdefault: false,\n\t}),\n\tsessionAffinityFormat: optionalSessionAffinityFormat({\n\t\tdescription: \"Session-affinity header format. Defaults are API-specific or auto-detected.\",\n\t}),\n\tsupportsMidConvoEffort: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether thinking level changes are sent inside the conversation instead of changing the request's effort, so a change keeps the prompt cache. Used by the anthropic-messages and openai-responses APIs.\",\n\t\tdefault: false,\n\t}),\n\tsupportsLongCacheRetention: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether the provider supports long prompt cache retention. Defaults are API-specific or auto-detected.\",\n\t}),\n\tsupportsStrictMode: optionalCompatBoolean({\n\t\tdescription: \"Whether the provider supports strict tool schemas. Defaults are API-specific.\",\n\t}),\n\tsupportsOpenAIGrammarTools: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t\"Whether the provider supports OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools.\",\n\t\tdefault: false,\n\t}),\n\tsendSessionAffinityHeaders: optionalCompatBoolean({\n\t\tdescription: \"Whether to send session-affinity data from options.sessionId. Defaults are API-specific.\",\n\t}),\n\tsupportsTemperature: optionalCompatBoolean({\n\t\tdescription: \"Whether the model accepts the temperature request field. Defaults to true.\",\n\t\tdefault: true,\n\t}),\n\tsupportsForcedToolChoice: optionalCompatBoolean({\n\t\tdescription:\n\t\t\t'Whether the model accepts forced tool use. When false, the provider rejects a forced choice with an error. \"auto\" and \"none\" are never altered. Defaults to true.',\n\t\tdefault: true,\n\t}),\n} satisfies TProperties;\n\ntype UnionToIntersection<Union> = (Union extends unknown ? (value: Union) => void : never) extends (\n\tvalue: infer Intersection,\n) => void\n\t? Intersection\n\t: never;\n\ntype MergedCompatProperties<PropertyGroups extends readonly TProperties[], Overrides extends TProperties> = Omit<\n\tUnionToIntersection<PropertyGroups[number]>,\n\tkeyof Overrides\n> &\n\tOverrides;\n\n/**\n * Provider-level models.json compatibility is API-agnostic, so it needs one superset. Every\n * duplicate property requires explicit generic metadata, while API-specific schemas retain their\n * own defaults and descriptions.\n */\nfunction mergeCompatProperties<\n\tconst PropertyGroups extends readonly TProperties[],\n\tconst Overrides extends TProperties,\n>(propertyGroups: PropertyGroups, overrides: Overrides): MergedCompatProperties<PropertyGroups, Overrides> {\n\tconst merged: TProperties = {};\n\tconst duplicateNames = new Set<string>();\n\n\tfor (const properties of propertyGroups) {\n\t\tfor (const [name, schema] of Object.entries(properties)) {\n\t\t\tif (merged[name] !== undefined) {\n\t\t\t\tduplicateNames.add(name);\n\t\t\t\tif (!(name in overrides)) {\n\t\t\t\t\tthrow new Error(`Duplicate compatibility schema property requires an override: ${name}`);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmerged[name] = schema;\n\t\t}\n\t}\n\n\tfor (const name of Object.keys(overrides)) {\n\t\tif (!duplicateNames.has(name)) {\n\t\t\tthrow new Error(`Compatibility schema override does not resolve a duplicate property: ${name}`);\n\t\t}\n\t}\n\n\treturn { ...merged, ...overrides } as MergedCompatProperties<PropertyGroups, Overrides>;\n}\n\nexport const CompatSchemasByApi = {\n\t\"openai-completions\": OpenAICompletionsCompatSchema,\n\t\"openai-responses\": OpenAIResponsesCompatSchema,\n\t\"azure-openai-responses\": OpenAIResponsesCompatSchema,\n\t\"openai-codex-responses\": OpenAIResponsesCompatSchema,\n\t\"anthropic-messages\": AnthropicMessagesCompatSchema,\n\t\"bedrock-converse-stream\": BedrockCompatSchema,\n\t\"mistral-conversations\": MistralConversationsCompatSchema,\n\t\"typesafe-system-one\": SystemOneCompatSchema,\n\t\"cloudflare-workers-ai-system-one\": SystemOneCompatSchema,\n} as const;\n\nconst ProviderCompatProperties = mergeCompatProperties(\n\t[...new Set(Object.values(CompatSchemasByApi))].map((schema) => schema.properties),\n\tProviderCompatPropertyOverrides,\n);\n\nexport const ProviderCompatSchema = Type.Object(ProviderCompatProperties, {\n\tdescription: \"Provider and model compatibility overrides.\",\n\tadditionalProperties: true,\n});\n\nexport type ChatTemplateKwargValue = Static<typeof ChatTemplateKwargValueSchema>;\n/** Top-level request field used to cap reasoning tokens on OpenAI-compatible servers. */\nexport type ThinkingTokenBudgetField = Static<typeof ThinkingTokenBudgetFieldSchema>;\nexport type SessionAffinityFormat = Static<typeof SessionAffinityFormatSchema>;\n/** OpenRouter provider routing preferences. */\nexport interface OpenRouterRouting extends Static<typeof OpenRouterRoutingSchema> {}\n/** Vercel AI Gateway routing preferences. */\nexport interface VercelGatewayRouting extends Static<typeof VercelGatewayRoutingSchema> {}\n/** An Anthropic server-side refusal fallback model with local pricing metadata. */\nexport interface AnthropicAllowedFallbackModel extends Static<typeof AnthropicAllowedFallbackModelSchema> {}\n\n/** Compatibility settings for OpenAI-compatible completions APIs. */\nexport interface OpenAICompletionsCompat extends Static<typeof OpenAICompletionsCompatSchema> {}\n/** Compatibility settings for OpenAI Responses APIs. */\nexport interface OpenAIResponsesCompat extends Static<typeof OpenAIResponsesCompatSchema> {}\n/** Compatibility settings for Anthropic Messages-compatible APIs. */\nexport interface AnthropicMessagesCompat extends Static<typeof AnthropicMessagesCompatSchema> {}\n/** Compatibility settings for Amazon Bedrock models. */\nexport interface BedrockCompat extends Static<typeof BedrockCompatSchema> {}\n/** Compatibility settings for the Mistral chat API. */\nexport interface MistralConversationsCompat extends Static<typeof MistralConversationsCompatSchema> {}\n/** Compatibility settings for System One classifier APIs. */\nexport interface SystemOneCompat extends Static<typeof SystemOneCompatSchema> {}\n"]}
@@ -1 +1 @@
1
- {"schemaVersion":6,"generatedAt":"2026-10-21T20:36:28.559Z","structureHash":"b0d75926ad52f40b478a1ae99e66a279532f1f62c0d8916cc0cee5cc8697b08e","files":{"amazon-bedrock.json":"6f3903019d55d747246493bb76b53ad9557ba694b8a53327460b654712baff3a","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"f797095e492df25157b14e399ff8030b4d0a75e698f415534cc79f606cf99ffb","azure.json":"b5cadb3c4b0a93c8558cf99927e0f00deee5ba0a1b4c8329dc12dc3be99b2b94","baseten.json":"5bd3c98c61769388b3724368ef964d16b7a58e41a6edcf4ebceb9d4ac0a21d3b","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"0e06e0b4ad5710a1f4ae3076bea136f0a3bd47e2be35ead8ae714b65d22a936a","cloudflare-workers-ai.json":"89e822178dee9fc8702c8d4ea0f30b85f7525ce4e38b5e26cc5d62cc2784a93a","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"8e862806b0a69cefc6585c38b103de1baae782c51409748c6d16199daedcf1ca","github-copilot.json":"0073eada8bccd1af1898af5d723de80c1aca056df2e79724bc74165de46ee737","google-vertex.json":"564d692a4292ef12e98c8ec056a39948ea64e10851f5ddaaebcc37b585545231","google.json":"b61fb0e27da5be60e1112e46955c5923656cb4d62bb221f834a9463d764ef5de","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"a76d8fa3043d72c80a11c7ff4bcbba07ecb0c87913d8d38dc3cd1001d44b0706","kimi-coding.json":"728d5ddb63ef52130552022d5ae2fd138fdc131ff854ac8c3b10ccaad355ab39","meta.json":"563f5ec07973f52ab8c3eb26ef91a36ad8a79e950b37174935666cdcb624bf35","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"066079b17e077eb793ffa9574acd5f2bbe4d4f9566b12b6207a7c9b19b2db413","moonshotai-cn.json":"0dbd6b063a0abdbe55d5dc59dd4dade566c2ea817ad6184bc8d20655ecba1daf","moonshotai.json":"1da2c4e34f22aef17a07c974d85bdee8e1b68b6dc712e3769c935b3f1e7dadca","nvidia.json":"4a80c26d6ad935eb5954b5be23239c899e231cdf7a49bbe2d2b4130ffc74b15d","openai-codex.json":"d20e2c769968eb4070df70a73cc093aebd741fb734532cbb5b0a8b61b36b61de","openai-decisions.json":"0c7d54fcbac5e7388872a85c0db7f336c5a57c82d403266e9ae04f87561daf4f","openai-images.json":"885b1c5ec4198ebe2b73518e61cbf989a7cad9229d01813635f361b29a909562","openai.json":"6b8461776f8367d160fff29253c0326f74af1fc41258c77e6bf7151a33d20e35","opencode-go.json":"a6c2dee4bbd147e56a46f7171445236263ba7da8f56bd88f081a273cb7870ec8","opencode.json":"62a09f4ee385fbfe972bc06850085ff4ab3cc4fba334285b0b492b2f2b89c51d","openrouter.json":"138a788385fc528a8668acd1438833d7d6e63316e310db9b2823f44fd1179dd6","qwen-token-plan-cn.json":"64427a6adeb3e7dd1857d68bef9bb12097632b646ed151b740e209143e31341e","qwen-token-plan-individual.json":"0fb7cf64faf39d1a3b0a884210a86c87084b805eda15644f5f39293287b959dd","qwen-token-plan.json":"37b9a76c54090228d1026a8f0fcb4d304b00d64b1a3a94cb2ae6e677d2c52b13","radius.json":"c1f94d967d3adf99aa3072b869c4c9b836886824f992efeca5889f99c06b0f5f","together.json":"2a28fa1978c996ac0a7f0fc07f0c98a37dbf282afe77c0f141dab0c36791ef83","typesafe.json":"547d8b7a85771ceb0cfdf684e427b285a0125fd67e779af51f05ae13080db046","vercel-ai-gateway.json":"ac5d717b0b61e95945b446cde9902dac75230ab310fa97a1f246a0ac9bf942ee","xai.json":"59f8a7bdf14e79ba1b0d0a37e56251bbf100420bdac7d6af5942508fdb990f11","xiaomi-token-plan-ams.json":"bfd33741da693bdb8e8ebd4e7b90c3e90820aa18432ad081a5a98db13c6bd296","xiaomi-token-plan-cn.json":"4b61d78feae3a926fda918c3fd3a9afaf2ca60c1bba0af8270a5398fb50a983e","xiaomi-token-plan-sgp.json":"b05a197ce24fd69fc9440f4ba929984ac7a0fefbe8083268734b422e721987ec","xiaomi.json":"495b5fddf3c3ec8904fecc15c4c19536f4961dce7b51512b6909d2df2e739824","zai-coding-cn.json":"cc9e0768e726ef55d2b7af853ac5f3585dc72575932cb38840a3877d18736b78","zai.json":"58e6642fdfb736f0b9a4a277c760c536a3cea66a030abbfb2615f7b2851d5c6f"}}
1
+ {"schemaVersion":6,"generatedAt":"2026-10-22T07:56:05.917Z","structureHash":"b17c508fd2681aa5de5b6adb387ab0247b25e931a797cb32b6634e1dc71a3456","files":{"amazon-bedrock.json":"6f3903019d55d747246493bb76b53ad9557ba694b8a53327460b654712baff3a","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"f797095e492df25157b14e399ff8030b4d0a75e698f415534cc79f606cf99ffb","azure.json":"b5cadb3c4b0a93c8558cf99927e0f00deee5ba0a1b4c8329dc12dc3be99b2b94","baseten.json":"5bd3c98c61769388b3724368ef964d16b7a58e41a6edcf4ebceb9d4ac0a21d3b","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"0e06e0b4ad5710a1f4ae3076bea136f0a3bd47e2be35ead8ae714b65d22a936a","cloudflare-workers-ai.json":"36c80c7d7606465001706d5b5d8612d825d8c501d20efb994599960693d37d43","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"8e862806b0a69cefc6585c38b103de1baae782c51409748c6d16199daedcf1ca","github-copilot.json":"0073eada8bccd1af1898af5d723de80c1aca056df2e79724bc74165de46ee737","google-vertex.json":"564d692a4292ef12e98c8ec056a39948ea64e10851f5ddaaebcc37b585545231","google.json":"b61fb0e27da5be60e1112e46955c5923656cb4d62bb221f834a9463d764ef5de","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"a76d8fa3043d72c80a11c7ff4bcbba07ecb0c87913d8d38dc3cd1001d44b0706","kimi-coding.json":"728d5ddb63ef52130552022d5ae2fd138fdc131ff854ac8c3b10ccaad355ab39","meta.json":"563f5ec07973f52ab8c3eb26ef91a36ad8a79e950b37174935666cdcb624bf35","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"066079b17e077eb793ffa9574acd5f2bbe4d4f9566b12b6207a7c9b19b2db413","moonshotai-cn.json":"0dbd6b063a0abdbe55d5dc59dd4dade566c2ea817ad6184bc8d20655ecba1daf","moonshotai.json":"1da2c4e34f22aef17a07c974d85bdee8e1b68b6dc712e3769c935b3f1e7dadca","nvidia.json":"4a80c26d6ad935eb5954b5be23239c899e231cdf7a49bbe2d2b4130ffc74b15d","openai-codex.json":"d20e2c769968eb4070df70a73cc093aebd741fb734532cbb5b0a8b61b36b61de","openai-decisions.json":"0c7d54fcbac5e7388872a85c0db7f336c5a57c82d403266e9ae04f87561daf4f","openai-images.json":"885b1c5ec4198ebe2b73518e61cbf989a7cad9229d01813635f361b29a909562","openai.json":"6b8461776f8367d160fff29253c0326f74af1fc41258c77e6bf7151a33d20e35","opencode-go.json":"6440508e9aaaf543181b3b8968d796ba851658f650eeb334c761f50291e3521b","opencode.json":"d21b313bbbf2f34007b69770c867d102ef3402fb7837beaa403276ba7e60290b","openrouter.json":"c8089ab0ff184adb8bf12cb89d51011eb9bee96df29fff45ceb9a896374fd1e2","qwen-token-plan-cn.json":"64427a6adeb3e7dd1857d68bef9bb12097632b646ed151b740e209143e31341e","qwen-token-plan-individual.json":"0fb7cf64faf39d1a3b0a884210a86c87084b805eda15644f5f39293287b959dd","qwen-token-plan.json":"37b9a76c54090228d1026a8f0fcb4d304b00d64b1a3a94cb2ae6e677d2c52b13","radius.json":"c1f94d967d3adf99aa3072b869c4c9b836886824f992efeca5889f99c06b0f5f","together.json":"2a28fa1978c996ac0a7f0fc07f0c98a37dbf282afe77c0f141dab0c36791ef83","typesafe.json":"938c89dfb6f636dce1483ec6acc739af4b881f61003d007807a74414eb2bf357","vercel-ai-gateway.json":"b33857545b54c6492675a3eb0656b6aa5d4234b8227c3b5bfd7d1a136156aa16","xai.json":"59f8a7bdf14e79ba1b0d0a37e56251bbf100420bdac7d6af5942508fdb990f11","xiaomi-token-plan-ams.json":"bfd33741da693bdb8e8ebd4e7b90c3e90820aa18432ad081a5a98db13c6bd296","xiaomi-token-plan-cn.json":"4b61d78feae3a926fda918c3fd3a9afaf2ca60c1bba0af8270a5398fb50a983e","xiaomi-token-plan-sgp.json":"b05a197ce24fd69fc9440f4ba929984ac7a0fefbe8083268734b422e721987ec","xiaomi.json":"495b5fddf3c3ec8904fecc15c4c19536f4961dce7b51512b6909d2df2e739824","zai-coding-cn.json":"cc9e0768e726ef55d2b7af853ac5f3585dc72575932cb38840a3877d18736b78","zai.json":"58e6642fdfb736f0b9a4a277c760c536a3cea66a030abbfb2615f7b2851d5c6f"}}
@@ -1 +1 @@
1
- {"cloudflare-workers-ai-system-one":{"classifier:@cf/cloudflare/clef":{"type":"classifier","id":"@cf/cloudflare/clef","name":"Clef","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text"],"cost":{"input":0.24,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":65536},"classifier:@cf/cloudflare/clef-flash":{"type":"classifier","id":"@cf/cloudflare/clef-flash","name":"Clef Flash","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text"],"cost":{"input":0.09,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":65536},"classifier:typesafe/jev":{"type":"classifier","id":"typesafe/jev","name":"Jev","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":32000}},"openai-completions":{"chat:@cf/deepseek-ai/deepseek-v4-flash-0731":{"id":"@cf/deepseek-ai/deepseek-v4-flash-0731","name":"DeepSeek V4 Flash 0731","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.44,"output":1.32,"cacheRead":0.014,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"},"chat:@cf/deepseek-ai/deepseek-v4-pro-0813":{"id":"@cf/deepseek-ai/deepseek-v4-pro-0813","name":"DeepSeek V4 Pro 0813","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":1.32,"output":3.96,"cacheRead":0.044,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"},"chat:@cf/deepseek-ai/deepseek-v4.1-flash-1017":{"id":"@cf/deepseek-ai/deepseek-v4.1-flash-1017","name":"Deepseek V4.1 Flash 1017","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.006,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/google/gemma-4-26b-a4b-it":{"id":"@cf/google/gemma-4-26b-a4b-it","name":"Gemma 4 26B A4B IT","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":256000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/ibm-granite/granite-4.0-h-micro":{"id":"@cf/ibm-granite/granite-4.0-h-micro","name":"Granite 4.0 H Micro","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text"],"cost":{"input":0.017,"output":0.112,"cacheRead":0,"cacheWrite":0},"contextWindow":131000,"maxTokens":131000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/meta/llama-3.3-70b-instruct-fp8-fast":{"id":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","name":"Llama 3.3 70B Instruct fp8 Fast","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text"],"cost":{"input":0.293,"output":2.253,"cacheRead":0,"cacheWrite":0},"contextWindow":24000,"maxTokens":24000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/meta/llama-4-scout-17b-16e-instruct":{"id":"@cf/meta/llama-4-scout-17b-16e-instruct","name":"Llama 4 Scout 17B 16E Instruct","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text","image"],"cost":{"input":0.27,"output":0.85,"cacheRead":0,"cacheWrite":0},"contextWindow":131000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/mistralai/mistral-small-3.1-24b-instruct":{"id":"@cf/mistralai/mistral-small-3.1-24b-instruct","name":"Mistral Small 3.1 24B Instruct","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text","image"],"cost":{"input":0.351,"output":0.555,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":128000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/moonshotai/kimi-k2.6":{"id":"@cf/moonshotai/kimi-k2.6","name":"Kimi K2.6","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.16,"cacheWrite":0},"contextWindow":262144,"maxTokens":256000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":"none","minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/moonshotai/kimi-k2.7-code":{"id":"@cf/moonshotai/kimi-k2.7-code","name":"Kimi K2.7 Code","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.19,"cacheWrite":0},"contextWindow":262144,"maxTokens":262144,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/nvidia/nemotron-3-120b-a12b":{"id":"@cf/nvidia/nemotron-3-120b-a12b","name":"Nemotron 3 Super 120B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.5,"output":1.5,"cacheRead":0,"cacheWrite":0},"contextWindow":256000,"maxTokens":256000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":null},"type":"chat"},"chat:@cf/openai/gpt-oss-120b":{"id":"@cf/openai/gpt-oss-120b","name":"GPT OSS 120B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.35,"output":0.75,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"type":"chat"},"chat:@cf/openai/gpt-oss-20b":{"id":"@cf/openai/gpt-oss-20b","name":"GPT OSS 20B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.2,"output":0.3,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"type":"chat"},"chat:@cf/qwen/qwen3-30b-a3b-fp8":{"id":"@cf/qwen/qwen3-30b-a3b-fp8","name":"Qwen3 30B A3b fp8","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.0509,"output":0.335,"cacheRead":0,"cacheWrite":0},"contextWindow":32768,"maxTokens":32768,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/qwen/qwen3.8-27b":{"id":"@cf/qwen/qwen3.8-27b","name":"Qwen3.8 27B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.45,"output":3.2,"cacheRead":0.05,"cacheWrite":0},"contextWindow":262144,"maxTokens":262144,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":null,"xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/zai-org/glm-4.7-flash":{"id":"@cf/zai-org/glm-4.7-flash","name":"GLM-4.7-Flash","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.0605,"output":0.4,"cacheRead":0,"cacheWrite":0},"contextWindow":131072,"maxTokens":131072,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/zai-org/glm-5.2":{"id":"@cf/zai-org/glm-5.2","name":"Glm 5.2","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"contextWindow":262144,"maxTokens":256000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":"none","minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:@cf/zai-org/glm-5.3":{"id":"@cf/zai-org/glm-5.3","name":"Glm 5.3","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:@cf/zai-org/glm-5.3-flash":{"id":"@cf/zai-org/glm-5.3-flash","name":"Glm 5.3 Flash","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}}}
1
+ {"cloudflare-workers-ai-system-one":{"classifier:@cf/cloudflare/clef":{"type":"classifier","id":"@cf/cloudflare/clef","name":"Clef","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text","image"],"cost":{"input":0.24,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"compat":{"imageInput":"images"}},"classifier:@cf/cloudflare/clef-flash":{"type":"classifier","id":"@cf/cloudflare/clef-flash","name":"Clef Flash","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text","image"],"cost":{"input":0.038,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":24576,"compat":{"imageInput":"images"}},"classifier:@cf/cloudflare/clef-omni":{"type":"classifier","id":"@cf/cloudflare/clef-omni","name":"Clef Omni","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text","image"],"cost":{"input":0.15,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":64000,"compat":{"imageInput":"images"}},"classifier:typesafe/jev":{"type":"classifier","id":"typesafe/jev","name":"Jev","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text","image"],"cost":{"input":0.042,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":32000,"compat":{"imageInput":"assets"}},"classifier:typesafe/jev-1.14.0":{"type":"classifier","id":"typesafe/jev-1.14.0","name":"Jev 1.14","api":"cloudflare-workers-ai-system-one","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai","input":["text","image"],"cost":{"input":0.042,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":32000,"compat":{"imageInput":"assets"}}},"openai-completions":{"chat:@cf/deepseek-ai/deepseek-v4-flash-0731":{"id":"@cf/deepseek-ai/deepseek-v4-flash-0731","name":"DeepSeek V4 Flash 0731","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.44,"output":1.32,"cacheRead":0.014,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"},"chat:@cf/deepseek-ai/deepseek-v4-pro-0813":{"id":"@cf/deepseek-ai/deepseek-v4-pro-0813","name":"DeepSeek V4 Pro 0813","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":1.32,"output":3.96,"cacheRead":0.044,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"},"chat:@cf/deepseek-ai/deepseek-v4.1-flash-1017":{"id":"@cf/deepseek-ai/deepseek-v4.1-flash-1017","name":"Deepseek V4.1 Flash 1017","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.006,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true,"requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/google/gemma-4-26b-a4b-it":{"id":"@cf/google/gemma-4-26b-a4b-it","name":"Gemma 4 26B A4B IT","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":256000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/ibm-granite/granite-4.0-h-micro":{"id":"@cf/ibm-granite/granite-4.0-h-micro","name":"Granite 4.0 H Micro","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text"],"cost":{"input":0.017,"output":0.112,"cacheRead":0,"cacheWrite":0},"contextWindow":131000,"maxTokens":131000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/meta/llama-3.3-70b-instruct-fp8-fast":{"id":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","name":"Llama 3.3 70B Instruct fp8 Fast","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text"],"cost":{"input":0.293,"output":2.253,"cacheRead":0,"cacheWrite":0},"contextWindow":24000,"maxTokens":24000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/meta/llama-4-scout-17b-16e-instruct":{"id":"@cf/meta/llama-4-scout-17b-16e-instruct","name":"Llama 4 Scout 17B 16E Instruct","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text","image"],"cost":{"input":0.27,"output":0.85,"cacheRead":0,"cacheWrite":0},"contextWindow":131000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/mistralai/mistral-small-3.1-24b-instruct":{"id":"@cf/mistralai/mistral-small-3.1-24b-instruct","name":"Mistral Small 3.1 24B Instruct","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":false,"input":["text","image"],"cost":{"input":0.351,"output":0.555,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":128000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/moonshotai/kimi-k2.6":{"id":"@cf/moonshotai/kimi-k2.6","name":"Kimi K2.6","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.16,"cacheWrite":0},"contextWindow":262144,"maxTokens":256000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":"none","minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/moonshotai/kimi-k2.7-code":{"id":"@cf/moonshotai/kimi-k2.7-code","name":"Kimi K2.7 Code","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.19,"cacheWrite":0},"contextWindow":262144,"maxTokens":262144,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/nvidia/nemotron-3-120b-a12b":{"id":"@cf/nvidia/nemotron-3-120b-a12b","name":"Nemotron 3 Super 120B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.5,"output":1.5,"cacheRead":0,"cacheWrite":0},"contextWindow":256000,"maxTokens":256000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":null},"type":"chat"},"chat:@cf/openai/gpt-oss-120b":{"id":"@cf/openai/gpt-oss-120b","name":"GPT OSS 120B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.35,"output":0.75,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"type":"chat"},"chat:@cf/openai/gpt-oss-20b":{"id":"@cf/openai/gpt-oss-20b","name":"GPT OSS 20B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.2,"output":0.3,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":16384,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"type":"chat"},"chat:@cf/qwen/qwen3-30b-a3b-fp8":{"id":"@cf/qwen/qwen3-30b-a3b-fp8","name":"Qwen3 30B A3b fp8","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.0509,"output":0.335,"cacheRead":0,"cacheWrite":0},"contextWindow":32768,"maxTokens":32768,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/qwen/qwen3.8-27b":{"id":"@cf/qwen/qwen3.8-27b","name":"Qwen3.8 27B","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.45,"output":3.2,"cacheRead":0.05,"cacheWrite":0},"contextWindow":262144,"maxTokens":262144,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":null,"xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:@cf/zai-org/glm-4.7-flash":{"id":"@cf/zai-org/glm-4.7-flash","name":"GLM-4.7-Flash","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":0.0605,"output":0.4,"cacheRead":0,"cacheWrite":0},"contextWindow":131072,"maxTokens":131072,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"type":"chat"},"chat:@cf/zai-org/glm-5.2":{"id":"@cf/zai-org/glm-5.2","name":"Glm 5.2","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"contextWindow":262144,"maxTokens":256000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":"none","minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:@cf/zai-org/glm-5.3":{"id":"@cf/zai-org/glm-5.3","name":"Glm 5.3","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:@cf/zai-org/glm-5.3-flash":{"id":"@cf/zai-org/glm-5.3-flash","name":"Glm 5.3 Flash","api":"openai-completions","provider":"cloudflare-workers-ai","baseUrl":"https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.5,"cacheRead":0.03,"cacheWrite":0},"contextWindow":1048576,"maxTokens":1048576,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"supportsLongCacheRetention":false,"sendSessionAffinityHeaders":true},"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}}}
@@ -1 +1 @@
1
- {"anthropic-messages":{"chat:claude-haiku-5-5":{"id":"claude-haiku-5-5","name":"Claude Haiku 5.5","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125,"tiers":[{"inputTokensAbove":100000,"input":0.5,"output":2.5,"cacheRead":0.05,"cacheWrite":0.625}]},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"xhigh":"xhigh","max":"max","minimal":null},"compat":{"forceAdaptiveThinking":true,"supportsTemperature":false},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:minimax-m3":{"id":"minimax-m3","name":"MiniMax-M3","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.06,"cacheWrite":0,"tiers":[{"inputTokensAbove":512000,"input":0.6,"output":2.4,"cacheRead":0.12,"cacheWrite":0}]},"contextWindow":1000000,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:qwen3.7-plus":{"id":"qwen3.7-plus","name":"Qwen3.7 Plus","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.4,"output":1.6,"cacheRead":0.04,"cacheWrite":0.5,"tiers":[{"inputTokensAbove":256000,"input":1.2,"output":4.8,"cacheRead":0.12,"cacheWrite":1.5}]},"contextWindow":1000000,"maxTokens":65536,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:qwen3.8-flash":{"id":"qwen3.8-flash","name":"Qwen3.8 Flash","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.47,"cacheRead":0.016,"cacheWrite":0.2},"contextWindow":1000000,"maxTokens":131072,"compat":{"allowEmptySignature":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:qwen3.8-max":{"id":"qwen3.8-max","name":"Qwen3.8 Max","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":6,"cacheRead":0.25,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}},"google-generative-ai":{"chat:gemini-4-argon-contributor":{"id":"gemini-4-argon-contributor","name":"Gemini 4 Argon Contributor","api":"google-generative-ai","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"input":["text","image"],"cost":{"input":4,"output":20,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}},"openai-completions":{"chat:beam-free":{"id":"beam-free","name":"Beam Free","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"type":"chat"},"chat:deepseek-v4-pro":{"id":"deepseek-v4-pro","name":"DeepSeek V4 Pro (New)","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.66,"output":1.98,"cacheRead":0.022,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"contextWindow":1000000,"maxTokens":384000,"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"},"chat:deepseek-v4.1-flash":{"id":"deepseek-v4.1-flash","name":"DeepSeek V4.1 Flash","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"input":["text","image"],"cost":{"input":0.15,"output":0.6,"cacheRead":0.003,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"contextWindow":1000000,"maxTokens":384000,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:glm-5.2":{"id":"glm-5.2","name":"GLM-5.2","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:glm-5.3":{"id":"glm-5.3","name":"GLM-5.3","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:glm-5.3-flash":{"id":"glm-5.3-flash","name":"GLM-5.3-Flash","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.5,"cacheRead":0.03,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:hy3":{"id":"hy3","name":"Hy3","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.14,"output":0.58,"cacheRead":0.035,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":256000,"maxTokens":128000,"thinkingLevelMap":{"off":"none","minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":null},"type":"chat"},"chat:hy4-preview":{"id":"hy4-preview","name":"Hy4 preview","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.834,"output":2.501,"cacheRead":0.042,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1024000,"maxTokens":64000,"thinkingLevelMap":{"off":"none","minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":null},"type":"chat"},"chat:kimi-k2.7-code":{"id":"kimi-k2.7-code","name":"Kimi K2.7 Code","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.19,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":262144,"maxTokens":262144,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:kimi-k3":{"id":"kimi-k3","name":"Kimi K3","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens","supportsMidConvoSystemMessages":true,"supportsMidConvoToolAdditions":true},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":null,"medium":null,"high":null,"xhigh":null,"max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:longcat-2.0":{"id":"longcat-2.0","name":"LongCat-2.0","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.006,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"type":"chat"},"chat:longcat-2.5-preview-free":{"id":"longcat-2.5-preview-free","name":"LongCat 2.5 Preview Free","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:mimo-v2.5":{"id":"mimo-v2.5","name":"MiMo V2.5","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.14,"output":0.28,"cacheRead":0.0028,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":128000,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:mimo-v2.5-pro":{"id":"mimo-v2.5-pro","name":"MiMo V2.5 Pro","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.435,"output":0.87,"cacheRead":0.003625,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":128000,"type":"chat"},"chat:mimo-v2.6-flash":{"id":"mimo-v2.6-flash","name":"MiMo-V2.6-Flash","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.14,"output":0.28,"cacheRead":0.0028,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:mimo-v2.6-pro":{"id":"mimo-v2.6-pro","name":"MiMo-V2.6-Pro","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.435,"output":0.87,"cacheRead":0.003625,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:minimax-m3.1-flash-free":{"id":"minimax-m3.1-flash-free","name":"MiniMax M3.1 Flash Free","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":512000,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:step-5-preview":{"id":"step-5-preview","name":"Step 5 Preview","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":1,"output":2.7,"cacheRead":0.1,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":65536,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}},"openai-responses":{"chat:gpt-5.6-luna":{"id":"gpt-5.6-luna","name":"GPT-5.6 Luna","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.2,"output":1.2,"cacheRead":0.02,"cacheWrite":0.25,"tiers":[{"inputTokensAbove":272000,"input":0.4,"output":1.8,"cacheRead":0.04,"cacheWrite":0.5}]},"compat":{"sessionAffinityFormat":"openai-nosession","supportsMidConvoSystemMessages":true,"supportsAdditionalTools":true},"contextWindow":1050000,"maxTokens":128000,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:gpt-6-luna":{"id":"gpt-6-luna","name":"GPT-6 Luna","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125,"tiers":[{"inputTokensAbove":272000,"input":0.2,"output":0.75,"cacheRead":0.02,"cacheWrite":0.25}]},"compat":{"sessionAffinityFormat":"openai-nosession","supportsMidConvoSystemMessages":true,"supportsAdditionalTools":true},"contextWindow":1050000,"maxTokens":128000,"thinkingLevelMap":{"off":"none","minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:grok-4.7":{"id":"grok-4.7","name":"Grok 4.7","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":6,"cacheRead":0.5,"cacheWrite":0,"tiers":[{"inputTokensAbove":200000,"input":4,"output":12,"cacheRead":1,"cacheWrite":0}]},"compat":{"sessionAffinityFormat":"openai-nosession"},"contextWindow":500000,"maxTokens":500000,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:muse-spark-1.2-contributor":{"id":"muse-spark-1.2-contributor","name":"Muse Spark 1.2 Contributor","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.2,"cacheRead":0.002,"cacheWrite":0},"compat":{"sessionAffinityFormat":"openai-nosession"},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":"minimal","low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:muse-spark-1.3-contributor":{"id":"muse-spark-1.3-contributor","name":"Muse Spark 1.3 Contributor","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.2,"cacheRead":0.002,"cacheWrite":0},"compat":{"sessionAffinityFormat":"openai-nosession"},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":"minimal","low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}}}
1
+ {"anthropic-messages":{"chat:claude-haiku-5-5":{"id":"claude-haiku-5-5","name":"Claude Haiku 5.5","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125,"tiers":[{"inputTokensAbove":100000,"input":0.5,"output":2.5,"cacheRead":0.05,"cacheWrite":0.625}]},"contextWindow":1000000,"maxTokens":128000,"thinkingLevelMap":{"xhigh":"xhigh","max":"max","minimal":null},"compat":{"forceAdaptiveThinking":true,"supportsTemperature":false},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:minimax-m3":{"id":"minimax-m3","name":"MiniMax-M3","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.06,"cacheWrite":0,"tiers":[{"inputTokensAbove":512000,"input":0.6,"output":2.4,"cacheRead":0.12,"cacheWrite":0}]},"contextWindow":1000000,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:qwen3.7-plus":{"id":"qwen3.7-plus","name":"Qwen3.7 Plus","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.4,"output":1.6,"cacheRead":0.04,"cacheWrite":0.5,"tiers":[{"inputTokensAbove":256000,"input":1.2,"output":4.8,"cacheRead":0.12,"cacheWrite":1.5}]},"contextWindow":1000000,"maxTokens":65536,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:qwen3.8-flash":{"id":"qwen3.8-flash","name":"Qwen3.8 Flash","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.47,"cacheRead":0.016,"cacheWrite":0.2},"contextWindow":1000000,"maxTokens":131072,"compat":{"allowEmptySignature":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:qwen3.8-max":{"id":"qwen3.8-max","name":"Qwen3.8 Max","api":"anthropic-messages","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":6,"cacheRead":0.25,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}},"google-generative-ai":{"chat:gemini-4-argon-contributor":{"id":"gemini-4-argon-contributor","name":"Gemini 4 Argon Contributor","api":"google-generative-ai","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"input":["text","image"],"cost":{"input":4,"output":20,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}},"openai-completions":{"chat:beam-free":{"id":"beam-free","name":"Beam Free","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"type":"chat"},"chat:deepseek-v4-pro":{"id":"deepseek-v4-pro","name":"DeepSeek V4 Pro (New)","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.66,"output":1.98,"cacheRead":0.022,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"contextWindow":1000000,"maxTokens":384000,"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"},"chat:deepseek-v4.1-flash":{"id":"deepseek-v4.1-flash","name":"DeepSeek V4.1 Flash","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"input":["text","image"],"cost":{"input":0.15,"output":0.6,"cacheRead":0.003,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek"},"contextWindow":1000000,"maxTokens":384000,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:glm-5.2":{"id":"glm-5.2","name":"GLM-5.2","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:glm-5.3":{"id":"glm-5.3","name":"GLM-5.3","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0.26,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"type":"chat"},"chat:glm-5.3-flash":{"id":"glm-5.3-flash","name":"GLM-5.3-Flash","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.5,"cacheRead":0.03,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:hy3":{"id":"hy3","name":"Hy3","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.14,"output":0.58,"cacheRead":0.035,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":256000,"maxTokens":128000,"thinkingLevelMap":{"off":"none","minimal":null,"low":"low","medium":null,"high":"high","xhigh":null,"max":null},"type":"chat"},"chat:hy4-preview":{"id":"hy4-preview","name":"Hy4 preview","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.834,"output":2.501,"cacheRead":0.042,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1024000,"maxTokens":64000,"thinkingLevelMap":{"off":"none","minimal":null,"low":null,"medium":null,"high":"high","xhigh":null,"max":null},"type":"chat"},"chat:kimi-k2.7-code":{"id":"kimi-k2.7-code","name":"Kimi K2.7 Code","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.19,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":262144,"maxTokens":262144,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:kimi-k3":{"id":"kimi-k3","name":"Kimi K3","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens","supportsMidConvoSystemMessages":true,"supportsMidConvoToolAdditions":true},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":null,"low":null,"medium":null,"high":null,"xhigh":null,"max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:longcat-2.0":{"id":"longcat-2.0","name":"LongCat-2.0","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.006,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":131072,"type":"chat"},"chat:mimo-v2.5":{"id":"mimo-v2.5","name":"MiMo V2.5","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.14,"output":0.28,"cacheRead":0.0028,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":128000,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:mimo-v2.5-pro":{"id":"mimo-v2.5-pro","name":"MiMo V2.5 Pro","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text"],"cost":{"input":0.435,"output":0.87,"cacheRead":0.003625,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":128000,"type":"chat"},"chat:mimo-v2.6-flash":{"id":"mimo-v2.6-flash","name":"MiMo-V2.6-Flash","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.14,"output":0.28,"cacheRead":0.0028,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:mimo-v2.6-pro":{"id":"mimo-v2.6-pro","name":"MiMo-V2.6-Pro","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.435,"output":0.87,"cacheRead":0.003625,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1048576,"maxTokens":131072,"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:minimax-m3.1-flash-free":{"id":"minimax-m3.1-flash-free","name":"MiniMax M3.1 Flash Free","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":512000,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:step-5-preview":{"id":"step-5-preview","name":"Step 5 Preview","api":"openai-completions","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":1,"output":2.7,"cacheRead":0.1,"cacheWrite":0},"compat":{"supportsStore":false,"supportsDeveloperRole":false,"supportsStrictMode":true,"maxTokensField":"max_tokens"},"contextWindow":1000000,"maxTokens":65536,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":null,"max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}},"openai-responses":{"chat:gpt-5.6-luna":{"id":"gpt-5.6-luna","name":"GPT-5.6 Luna","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.2,"output":1.2,"cacheRead":0.02,"cacheWrite":0.25,"tiers":[{"inputTokensAbove":272000,"input":0.4,"output":1.8,"cacheRead":0.04,"cacheWrite":0.5}]},"compat":{"sessionAffinityFormat":"openai-nosession","supportsMidConvoSystemMessages":true,"supportsAdditionalTools":true},"contextWindow":1050000,"maxTokens":128000,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:gpt-6-luna":{"id":"gpt-6-luna","name":"GPT-6 Luna","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125,"tiers":[{"inputTokensAbove":272000,"input":0.2,"output":0.75,"cacheRead":0.02,"cacheWrite":0.25}]},"compat":{"sessionAffinityFormat":"openai-nosession","supportsMidConvoSystemMessages":true,"supportsAdditionalTools":true},"contextWindow":1050000,"maxTokens":128000,"thinkingLevelMap":{"off":"none","minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":"max"},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:grok-4.7":{"id":"grok-4.7","name":"Grok 4.7","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":6,"cacheRead":0.5,"cacheWrite":0,"tiers":[{"inputTokensAbove":200000,"input":4,"output":12,"cacheRead":1,"cacheWrite":0}]},"compat":{"sessionAffinityFormat":"openai-nosession"},"contextWindow":500000,"maxTokens":500000,"thinkingLevelMap":{"off":null,"minimal":null,"low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:muse-spark-1.2-contributor":{"id":"muse-spark-1.2-contributor","name":"Muse Spark 1.2 Contributor","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.2,"cacheRead":0.002,"cacheWrite":0},"compat":{"sessionAffinityFormat":"openai-nosession"},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":"minimal","low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:muse-spark-1.3-contributor":{"id":"muse-spark-1.3-contributor","name":"Muse Spark 1.3 Contributor","api":"openai-responses","provider":"opencode-go","baseUrl":"https://opencode.ai/inference/go/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.2,"cacheRead":0.002,"cacheWrite":0},"compat":{"sessionAffinityFormat":"openai-nosession"},"contextWindow":1048576,"maxTokens":131072,"thinkingLevelMap":{"off":null,"minimal":"minimal","low":"low","medium":"medium","high":"high","xhigh":"xhigh","max":null},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"}}}