Compare commits

..
Author SHA1 Message Date
opencode-agent 2520337df9 docs(cache): finalize batch 15 positive-only with explicit unknowns
Keep 7 positive cache headers; mark salad-cloud, sarvam,
scnet-token-plan, scx-ai explicitly unknown (2-liners).
2026-09-11 20:35:44 -05:00
opencode-agent 94abedaa3b docs(cache): rewrite batch 15 prompt-cache headers positive-only 2026-09-11 20:34:50 -05:00
22 changed files with 43 additions and 36 deletions

No files matched your search

-3
View File
@@ -1,6 +1,3 @@
# Prompt cache (chat): No documented cache — local server with no cached-token usage or cached-input billing.
# Cache policy: no chat cache; to reuse local KV keep same model with identical prefix order.
# Docs: https://lmstudio.ai/docs/developer/openai-compat/chat-completions
# Native POST /api/v1/chat: $.reasoning = "off"|"low"|"medium"|"high"|"on".
# OpenAI POST /v1/responses: $.reasoning.effort (the example uses "low").
# The published POST /v1/chat/completions payload list has no reasoning field.
-3
View File
@@ -1,6 +1,3 @@
# Prompt cache (chat): Automatic server-side prefix cache billed as Cached Input vs Uncached Input.
# Cache policy: automatic; to improve hits keep same model, stable prefix order, identical tools.
# Docs: https://longcat.chat/platform/docs/api/chat
name = "LongCat"
npm = "@ai-sdk/openai-compatible"
api = "https://api.longcat.chat/openai"
-2
View File
@@ -1,5 +1,3 @@
# Prompt cache (chat): unknown — no documented chat prefix cache on POST /v1/chat/completions.
# Docs: https://lucidquery.com/docs
# POST /v1/chat/completions enables a trace with $.thinking = true; aliases are
# $.include_reasoning and $.reasoning.enabled = true. The published request
# schema gives no false value, effort enum, or reasoning-token budget.
-3
View File
@@ -1,6 +1,3 @@
# Prompt cache (chat): No native chat prefix cache — gateway documents semantic cache only.
# Cache policy: no chat prefix cache; to improve reuse keep same model, stable prefix order, identical tools.
# Docs: https://github.com/Fast-Editor/Lynkr
name = "Lynkr"
# Lynkr is a self-hosted gateway: any non-empty API key is accepted locally;
# provider credentials live in Lynkr's own configuration.
-3
View File
@@ -1,6 +1,3 @@
# Prompt cache (chat): No documented chat prefix cache.
# Cache policy: no chat prefix cache; to improve reuse keep same model with stable prefix order.
# Docs: https://docs.meganova.ai/inference-models/text-generation.md
# POST /v1/chat/completions publishes messages, model, max_tokens, temperature,
# top_p, and stream; no toggle, effort, or reasoning-token budget is listed.
# https://docs.meganova.ai/inference-models/text-generation.md (accessed 2026-06-25)
-2
View File
@@ -1,5 +1,3 @@
# Prompt cache (chat): unknown — no gateway-level chat cache; prefix behavior follows the selected vendor route.
# Docs: https://docs.merge.dev/merge-gateway/get-started
# Reasoning request surfaces (sources accessed 2026-07-21):
# - Reasoning support and controls are vendor-route capabilities. Use the exact
# model response from GET /v1/models and inspect
-4
View File
@@ -1,7 +1,3 @@
# Prompt cache (chat): Supported — automatic prefix caching on Chat Completions and Responses.
# Cache key (chat): Use body `prompt_cache_key` to group shared prefixes at scale; hits via usage.prompt_tokens_details.cached_tokens (chat) and input_tokens_details.cached_tokens (responses).
# Cache policy: automatic; stable content first, stable key per shared prefix, never per-user or per-request.
# Docs: https://dev.meta.ai/docs/prompt-caching.md
name = "Meta"
npm = "@ai-sdk/openai"
env = ["META_MODEL_API_KEY"]
@@ -1,7 +1,3 @@
# Prompt cache (chat): Explicit — Anthropic-compatible breakpoint cache.
# Cache key (chat): Use body `cache_control` with type ephemeral; max 4 breakpoints; 5m TTL refreshed on hit; hits via usage.cache_read_input_tokens and cache_creation_input_tokens.
# Cache policy: explicit breakpoints; order tools, system, then messages; keep stable prefix per breakpoint.
# Docs: https://platform.minimax.io/docs/api-reference/anthropic-api-compatible-cache
name = "MiniMax Token Plan (minimaxi.com)"
env = ["MINIMAX_API_KEY"]
npm = "@ai-sdk/anthropic"
-4
View File
@@ -1,7 +1,3 @@
# Prompt cache (chat): Explicit — Anthropic-compatible breakpoint cache.
# Cache key (chat): Use body `cache_control` with type ephemeral; max 4 breakpoints; 5m TTL refreshed on hit; hits via usage.cache_read_input_tokens and cache_creation_input_tokens.
# Cache policy: explicit breakpoints; order tools, system, then messages; keep stable prefix per breakpoint.
# Docs: https://platform.minimax.io/docs/api-reference/anthropic-api-compatible-cache
name = "MiniMax (minimaxi.com)"
env = ["MINIMAX_API_KEY"]
npm = "@ai-sdk/anthropic"
@@ -1,7 +1,3 @@
# Prompt cache (chat): Explicit — Anthropic-compatible breakpoint cache.
# Cache key (chat): Use body `cache_control` with type ephemeral; max 4 breakpoints; 5m TTL refreshed on hit; hits via usage.cache_read_input_tokens and cache_creation_input_tokens.
# Cache policy: explicit breakpoints; order tools, system, then messages; keep stable prefix per breakpoint.
# Docs: https://platform.minimax.io/docs/api-reference/anthropic-api-compatible-cache
name = "MiniMax Token Plan (minimax.io)"
env = ["MINIMAX_API_KEY"]
npm = "@ai-sdk/anthropic"
-4
View File
@@ -1,7 +1,3 @@
# Prompt cache (chat): Explicit — Anthropic-compatible breakpoint cache.
# Cache key (chat): Use body `cache_control` with type ephemeral; max 4 breakpoints; 5m TTL refreshed on hit; hits via usage.cache_read_input_tokens and cache_creation_input_tokens.
# Cache policy: explicit breakpoints; order tools, system, then messages; keep stable prefix per breakpoint.
# Docs: https://platform.minimax.io/docs/api-reference/anthropic-api-compatible-cache
name = "MiniMax (minimax.io)"
env = ["MINIMAX_API_KEY"]
npm = "@ai-sdk/anthropic"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): Automatic server-side reuse of prompt prefixes shared between internal orchestration calls; no client cache control.
# Use headers: none.
# Use body: none. Chat and Responses field tables define no `prompt_cache_key` or `cache_control`.
# To get a hit: Resend stable context unchanged so internal calls share a prefix; confirm via usage.input_tokens_details.cached_tokens, billed at the discounted cached-input rate.
# Docs: https://console.sakana.ai/models
name = "Sakana AI"
env = ["SAKANA_API_KEY"]
npm = "@ai-sdk/openai-compatible"
+2
View File
@@ -1,3 +1,5 @@
# Prompt caching (chat): unknown — no cache mechanism documented.
# Docs: https://docs.salad.com/ai-gateway/explanation/overview
name = "SaladCloud AI Gateway"
env = ["SALAD_CLOUD_API_KEY"]
npm = "@saladtechnologies-oss/ai-sdk-provider"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): Explicit ephemeral `cache_control` breakpoints on prompt-templating content blocks (Orchestration V2; Claude/Nova families); OpenAI/Gemini-backed models cache implicitly with no configuration.
# Use headers: none.
# Use body: `cache_control` (`{"type": "ephemeral"}` default 5-minute TTL, `"ttl": "1h"` on select Claude models).
# To get a hit: Mark the breakpoint at the end of the stable prefix with enough cached tokens; keep shared content byte-identical and append-only.
# Docs: https://help.sap.com/docs/sap-ai-core/generative-ai/prompt-caching
name = "SAP AI Core"
env = ["AICORE_SERVICE_KEY"]
npm = "@jerome-benoit/sap-ai-provider-v2"
+2
View File
@@ -1,3 +1,5 @@
# Prompt caching (chat): unknown — no cache mechanism documented.
# Docs: https://docs.sarvam.ai/api-reference-docs/chat/chat-completions
name = "Sarvam AI"
env = ["SARVAM_API_KEY"]
npm = "@ai-sdk/openai-compatible"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): Automatic token caching with no client control; Serverless persists the prefix cache automatically (50-90% hits on recurring prefixes, discounted cached-input billing); Dedicated input cache included in price.
# Use headers: none.
# Use body: none. The chat schema exposes no `prompt_cache_key` or cache control field.
# To get a hit: Keep recurring prefixes (system prompt, conversation start) stable and append-only; monitor cached-token consumption in Cockpit.
# Docs: https://www.scaleway.com/en/docs/generative-apis/faq/
name = "Scaleway"
npm = "@ai-sdk/openai-compatible"
api = "https://api.scaleway.ai/v1"
+2
View File
@@ -1,3 +1,5 @@
# Prompt caching (chat): unknown — no cache mechanism documented.
# Docs: https://www.scnet.cn/ac/openapi/doc/2.0/moduleapi/tools/opencode.html
# SCNet documents its OpenAI-compatible endpoint and OpenCode integration here:
# https://www.scnet.cn/ac/openapi/doc/2.0/moduleapi/tools/opencode.html
# Token Plan model catalog (accessed 2026-08-16):
+2
View File
@@ -1,3 +1,5 @@
# Prompt caching (chat): unknown — no cache mechanism documented.
# Docs: https://platform.scx.ai/docs
name = "SCX.ai"
env = ["SCX_API_KEY"]
npm = "@ai-sdk/openai-compatible"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): Automatic server-side prefix reuse with no chat-level cache control; cache hits are reported per request.
# Use headers: none.
# Use body: none. Chat examples document model/messages/max_tokens only, with no cache params.
# To get a hit: Keep shared prefixes stable and append-only; confirm via usage.prompt_tokens_details.cached_tokens, billed at the cache-read rate.
# Docs: https://github.com/OpenSenseNova/SenseNova6.7/blob/main/API.md
name = "SenseNova (China)"
npm = "@ai-sdk/openai-compatible"
env = ["SENSENOVA_API_KEY"]
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): Automatic best-effort prefix cache with no client control; eligible repeated input is billed at the model Cache Read rate, but repeated text alone does not guarantee a hit.
# Use headers: none.
# Use body: none. The chat schema defines no `prompt_cache_key` or `cache_control` field.
# To get a hit: Keep system instructions and stable context byte-identical first and append new content last; measure effective cost per task.
# Docs: https://www.siliconflow.com/blog/siliconflow-prompt-caching-api-costs
name = "SiliconFlow (China)"
env = ["SILICONFLOW_CN_API_KEY"]
npm = "@ai-sdk/openai-compatible"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): Automatic best-effort prefix cache with no client control; eligible repeated input is billed at the model Cache Read rate, but repeated text alone does not guarantee a hit.
# Use headers: none.
# Use body: none. The chat schema defines no `prompt_cache_key` or `cache_control` field.
# To get a hit: Keep system instructions and stable context byte-identical first and append new content last; measure effective cost per task.
# Docs: https://www.siliconflow.com/blog/siliconflow-prompt-caching-api-costs
name = "SiliconFlow"
env = ["SILICONFLOW_API_KEY"]
npm = "@ai-sdk/openai-compatible"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): OpenAI models cache implicitly from 1024+ tokens with no request changes; Claude models cache explicitly with `cache_control` ephemeral breakpoints (max 4, 5-minute TTL).
# Use headers: none.
# Use body: `prompt_cache_key` routes OpenAI-model requests sharing a prefix (Supported for OpenAI, Ignored for Claude/Other); `cache_control` on Claude content blocks.
# To get a hit: Keep the first 1024+ tokens byte-identical and append-only on one model; reuse one `prompt_cache_key` per shared OpenAI prefix; confirm via usage.prompt_tokens_details.cached_tokens.
# Docs: https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-rest-api
name = "Snowflake Cortex"
npm = "@ai-sdk/openai-compatible"
api = "https://${SNOWFLAKE_ACCOUNT}.snowflakecomputing.com/api/v2/cortex/v1"