Add warming doc
Browse files- docs/warming.md +15 -0
docs/warming.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Warming (OpenCode V2)
|
| 2 |
+
|
| 3 |
+
Session warming sends periodic model requests to preserve provider-side prompt caches or short-lived state while you pause between prompts. Disabled by default.
|
| 4 |
+
|
| 5 |
+
Enable in config:
|
| 6 |
+
{
|
| 7 |
+
"$schema": "https://opencode.ai/config.json",
|
| 8 |
+
"warming": true
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
Options: prompt, interval, duration. interval can be "auto" using 90% of model cache.ttl.
|
| 12 |
+
|
| 13 |
+
Timing: starts after non-warming request; warming requests at interval; stops after duration. New activity resets timers.
|
| 14 |
+
|
| 15 |
+
Failures logged without failing session. Costs are real provider requests.
|