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
{{ message }}
Repository navigation
Commit b046973
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/config.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -374,7 +374,7 @@ You can configure the providers and models you want to use in your OpenCode conf
374
374
375
375
The `small_model` option configures a separate model for lightweight tasks like title generation. By default, OpenCode tries to use a cheaper model if one is available from your provider, otherwise it falls back to your main model.
376
376
377
-
Provider options can include `timeout`, `chunkTimeout`, and `setCacheKey`:
377
+
Provider options can include `timeout`, `headerTimeout`, `chunkTimeout`, and `setCacheKey`:
378
378
379
379
```json title="opencode.json"
380
380
{
@@ -392,6 +392,7 @@ Provider options can include `timeout`, `chunkTimeout`, and `setCacheKey`:
392
392
```
393
393
394
394
-`timeout` - Request timeout in milliseconds (default: 300000). Set to `false` to disable.
395
+
-`headerTimeout` - Timeout in milliseconds to wait for response headers (default: 300000, or 5 minutes). This timer stops once headers arrive and does not limit the streamed response body. Set to `false` to disable.
395
396
-`chunkTimeout` - Timeout in milliseconds between streamed response chunks (default: 300000, or 5 minutes). If no chunk arrives in time, the request is aborted. Set to `false` to disable.
396
397
-`setCacheKey` - Ensure a cache key is always set for designated provider.
0 commit comments