Compare commits

..
15 changed files with 17 additions and 43 deletions

No files matched your search

-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): automatic prefix cache with `prompt_cache_key` for separate cache accounting
# Use headers: repeat the stable prefix with identical model and params
# Use body: `prompt_cache_key` plus `prompt_cache_options` and `prompt_cache_breakpoint` for explicit control
# Cache policy: stable prefix + same model; keep reusable content first byte-identical and append-only
# Docs: https://platform.openai.com/docs/guides/prompt-caching
name = "OpenAI"
env = ["OPENAI_API_KEY"]
npm = "@ai-sdk/openai"
-2
View File
@@ -1,5 +1,3 @@
# Cache key (chat): unknown — no documented cache behavior
# Docs: https://opencode.ai/docs/zen#endpoints
name = "OpenCode Go"
env = ["OPENCODE_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): automatic prefix cache with per-model cached-read billing
# Use headers: repeat the stable prefix with identical model and params
# Use body: repeat the stable prefix with identical model and params
# Cache policy: stable prefix + same model; keep reusable context at the start byte-identical and append-only
# Docs: https://opencode.ai/docs/zen
name = "OpenCode Zen"
env = ["OPENCODE_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Cache key (chat): unknown — no documented cache behavior
# Docs: https://openreason.app/docs
name = "OpenReason"
# Sovereignty-aware OpenAI-compatible router across US and EU inference.
# Endpoints are pinned via the `@<endpoint-id>` suffix on the model slug
-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): automatic prefix cache with sticky routing keyed on session
# Use headers: `x-session-id` with a stable session identifier routes repeats toward the warm provider
# Use body: `session_id` with the same stable value; `prompt_cache_key` also pins routing
# Cache policy: stable prefix + same model; reuse one session value per conversation sharing a prefix
# Docs: https://openrouter.ai/docs/features/prompt-caching
name = "OpenRouter"
env = ["OPENROUTER_API_KEY"]
npm = "@openrouter/ai-sdk-provider"
-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): explicit Anthropic prefix cache with moving or per-block breakpoints
# Use headers: repeat the stable prefix with identical model and params
# Use body: `cache_control` top-level for automatic placement or per-block for up to 4 explicit breakpoints
# Cache policy: stable prefix + same Anthropic model; reuse the large stable prefix across back-to-back calls
# Docs: https://docs.opper.ai/build/gateway/prompt-caching
name = "Opper"
env = ["OPPER_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): session affinity toward the warm upstream deployment with automatic prefix reuse
# Use headers: `X-OrcaRouter-Session-Id` with a stable conversation value pins model and deployment
# Use body: `prompt_cache_key` sharing a cacheable prefix resolves the session fallback
# Cache policy: stable prefix + same model; reuse one session value per conversation
# Docs: https://docs.orcarouter.ai/routing/session-affinity
name = "OrcaRouter"
env = ["ORCAROUTER_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Cache key (chat): unknown — no documented cache behavior
# Docs: https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/gpt-oss-120b/
name = "OVHcloud AI Endpoints"
npm = "@ai-sdk/openai-compatible"
# Raw HTTP reasoning controls (sources accessed 2026-06-25): OVH exposes both
-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): automatic engine prefix reuse with `cached_tokens` usage reporting
# Use headers: repeat the stable prefix with identical model and params
# Use body: repeat the stable prefix with identical model and params
# Cache policy: stable prefix + same model; send follow-up turns with the full conversation for prefix reuse
# Docs: https://pendra.ai/docs/api/chat-completions
# Reasoning HTTP format (accessed 2026-08-24):
# Pendra exposes an OpenAI-compatible surface and forwards chat-completions
# request fields to the in-process engine, so `reasoning_effort` on
-5
View File
@@ -1,8 +1,3 @@
# Cache key (chat): automatic prefix cache with per-model cache-read billing
# Use headers: repeat the stable prefix with identical model and params
# Use body: repeat the stable prefix with identical model and params
# Cache policy: stable prefix + same model; keep reusable context at the start byte-identical and append-only
# Docs: https://docs.perplexity.ai/docs/agent-api/models
name = "Perplexity Agent"
env = ["PERPLEXITY_API_KEY"]
npm = "@ai-sdk/openai"
-2
View File
@@ -1,5 +1,3 @@
# Cache key (chat): unknown — no documented cache behavior
# Docs: https://docs.perplexity.ai/api-reference/sonar-post
name = "Perplexity"
env = ["PERPLEXITY_API_KEY"]
npm = "@ai-sdk/perplexity"
+2
View File
@@ -1,3 +1,5 @@
# Prompt caching (chat): unknown — no documented cache mechanism.
# Docs: https://docs.zenifra.com/en/docs/ai
name = "Zenifra"
env = ["ZENIFRA_AI_KEY"]
npm = "@ai-sdk/openai-compatible"
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): explicit breakpoint cache via body `cache_control` markers plus automatic prefix cache across routed models.
# Use headers: cache activity surfaces in ZenMux Logs token details as `input_cache_read` and `input_cache_write`.
# Use body: `cache_control` with `type: ephemeral` on stable blocks; tools, system, then messages order; up to 4 breakpoints.
# To get a hit: place stable content first with `cache_control` on each reusable segment; minima 1024 Claude Sonnet/Opus, 2048 Haiku 3.5, 256 Qwen; reuse within the 5m TTL.
# Docs: https://docs.zenmux.ai/guide/advanced/prompt-cache.html
# OpenAI POST /api/v1/chat/completions: `reasoning_effort`, or `reasoning`
# with `effort`, `max_tokens`, and `enabled`.
# Anthropic POST /api/anthropic/v1/messages: `thinking.type` enabled|disabled;
@@ -1,3 +1,8 @@
# Prompt caching (chat): automatic implicit prefix cache on the coding chat endpoint with Cached Input credit deduction.
# Use headers: standard Bearer auth on POST /api/coding/paas/v4/chat/completions; Cached Input deduction visible in billing detail.
# Use body: model with messages; stable system prompt first with chat history appended.
# To get a hit: replay identical system prompts and stable prefixes; Cached Input deduction confirms reuse.
# Docs: https://docs.bigmodel.cn/cn/coding-plan/overview
# OpenAI Chat endpoint: POST https://open.bigmodel.cn/api/coding/paas/v4/chat/completions.
# GLM-5.2 maps low|medium|high to high and xhigh|max|ultracode to max.
# https://docs.bigmodel.cn/cn/coding-plan/latest-model (accessed 2026-06-25)
+5
View File
@@ -1,3 +1,8 @@
# Prompt caching (chat): automatic implicit context cache; repeated system prompts and conversation history reuse prior compute at a discount.
# Use headers: standard Bearer auth on POST /api/paas/v4/chat/completions; cache outcomes surface in `usage.prompt_tokens_details.cached_tokens`.
# Use body: model with messages; stable system prompt first with history appended.
# To get a hit: replay identical system prompts and stable prefixes; confirm via `usage.prompt_tokens_details.cached_tokens`.
# Docs: https://docs.bigmodel.cn/cn/guide/capabilities/cache
# Chat reasoning: POST https://open.bigmodel.cn/api/paas/v4/chat/completions with
# `thinking.type = "enabled" | "disabled"` (default: enabled).
# https://docs.bigmodel.cn/cn/guide/capabilities/thinking (accessed 2026-06-25)