You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `gemini.cached_content`(or `google.cached_content`) maps to `cachedContent` for requests that reuse a previously created Gemini cache.
133
+
- You can safely include multiple provider blocks in the same prompt. Each adapter only reads its own block (`openai`, `anthropic`, or `gemini`/`google`) and ignores the others.
134
+
108
135
## Sections
109
136
110
137
The Markdown body is split on **H1 headings** into named sections. Three section names are recognized (case-insensitive):
Copy file name to clipboardExpand all lines: docs/providers.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ const { request } = result;
36
36
```
37
37
38
38
The provider passed to `renderPrompt` determines which adapter shapes the body. The `provider` field in front matter is informational — the render-time provider controls output.
39
+
When a prompt includes multiple cache blocks (for example `cache.openai` + `cache.anthropic`), adapters ignore non-matching blocks so cross-provider settings never leak into the wrong payload.
| `anthropic.cache_prompt_template` | `boolean` | In explicit mode, cache prompt-template user block |
146
+
| `gemini.cached_content` / `google.cached_content` | `string` | Previously created Gemini cache resource name used as `cachedContent` |
147
+
148
+
You can define multiple provider cache blocks in one prompt; each adapter reads only its own cache settings.
149
+
117
150
## `mcp`
118
151
119
152
```yaml
@@ -190,7 +223,7 @@ tiers:
190
223
model: gpt-5.4
191
224
```
192
225
193
-
Each environment/tier key maps to an overrides object. Overridable fields: `model`, `fallback_models`, `reasoning`, `sampling`, `response`, `tools`. See [Overrides](./overrides.md).
226
+
Each environment/tier key maps to an overrides object. Overridable fields: `model`, `fallback_models`, `reasoning`, `sampling`, `response`, `cache`, `tools`. See [Overrides](./overrides.md).
0 commit comments