Compare commits

..
15 changed files with 17 additions and 34 deletions

No files matched your search

-5
View File
@@ -1,8 +1,3 @@
# Prompt caching (chat): explicit `cache_control` breakpoints on Claude/Anthropic-style models; automatic server-side prefix match on OpenAI/GPT-family models
# Use headers: none.
# Use body: `cache_control` — `{"type": "ephemeral"}` marker on the last stable content block (content-block array, not plain string); up to 4 markers; GPT-family ignores markers
# To get a hit: send the stable prefix as content blocks with the marker and repeat the exact prefix; verify via `usage.prompt_tokens_details.cached_tokens` (chat) or `cache_read_input_tokens` (messages)
# Docs: https://docs.pioneer.ai/api-reference/prompt-caching
name = "Pioneer"
env = ["PIONEER_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://creator.poe.com/docs/external-applications/openai-compatible-api
name = "Poe"
env = ["POE_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://docs.poolside.ai/api/overview
name = "Poolside"
env = ["POOLSIDE_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-5
View File
@@ -1,8 +1,3 @@
# Prompt caching (chat): per-request `cache_salt` scoping; inactive by default, enable per proxy or per request
# Use headers: none.
# Use body: `cache_salt` — string with >=256-bit entropy (via `extra_body`); same salt shares a cache; request value overrides proxy
# To get a hit: reuse the same salt with an identical prefix; keep salts private (`openssl rand -base64 32`)
# Docs: https://docs.privatemode.ai/api/prompt-caching/
name = "Privatemode AI"
env = ["PRIVATEMODE_API_KEY", "PRIVATEMODE_ENDPOINT"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://www.qhaigc.net/docs/api-reference/chat/openai-style.md
name = "QiHang"
npm = "@ai-sdk/openai-compatible"
api = "https://api.qhaigc.net/v1"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://developer.qiniu.com/aitokenapi/13390/chat-completions
name = "Qiniu"
env = ["QINIU_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://docs.qvac.tether.io/cli/http-server/
name = "QVAC"
env = ["QVAC_API_KEY"]
npm = "@qvac/ai-sdk-provider"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://docs.regolo.ai/models/families/completions/
name = "Regolo AI"
env = ["REGOLO_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-5
View File
@@ -1,8 +1,3 @@
# Prompt caching (chat): router `requesty.auto_cache` plus pass-through `cache_control` breakpoints; provider caches server-side
# Use headers: none.
# Use body: `requesty.auto_cache` — boolean (`true` attempts caching, `false` skips costly writes); `cache_control` — `{"type": "ephemeral"}` breakpoints on Messages API content blocks
# To get a hit: send the full history with `auto_cache: true` (chat) or place `cache_control` on stable blocks (messages); verify via cache analytics and cached-token counters in usage
# Docs: https://docs.requesty.ai/features/auto-caching
name = "Requesty"
env = ["REQUESTY_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-2
View File
@@ -1,5 +1,3 @@
# Prompt caching (chat): unknown.
# Docs: https://app.routing.run/docs/api/chat-completions
name = "routing.run"
env = ["ROUTING_RUN_API_KEY"]
npm = "@ai-sdk/openai-compatible"
-5
View File
@@ -1,8 +1,3 @@
# Prompt caching (chat): automatic prefix cache with session-affinity routing; no parameter required for basic reuse
# Use headers: `x-session-id` for session affinity (plus `x-parent-session-id` fan-out, `x-session-affinity`/`x-runinfra-session` aliases)
# Use body: `prompt_cache_key` — string routing identity when no session header (consumed at gateway); `runinfra.sessionId` — session identity taking precedence over headers
# To get a hit: keep a byte-identical prefix with the same model and pin multi-turn sessions with `x-session-id`; verify via `usage.prompt_tokens_details.cached_tokens`
# Docs: https://runinfra.ai/docs/cookbook/prompt-caching.md
# Docs: https://runinfra.ai/docs
# Per-model pages: https://runinfra.ai/inference-api/<slug>
# API: OpenAI-compatible chat completions at https://api.runinfra.ai/v1 (/chat/completions, /models)
+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)