mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
fix(core): disable chunk timeout by default (#18264)
This commit is contained in:
parent
a6f23cb08e
commit
d69962b0f7
1 changed files with 1 additions and 3 deletions
|
|
@ -47,8 +47,6 @@ import { ProviderTransform } from "./transform"
|
|||
import { Installation } from "../installation"
|
||||
import { ModelID, ProviderID } from "./schema"
|
||||
|
||||
const DEFAULT_CHUNK_TIMEOUT = 300_000
|
||||
|
||||
export namespace Provider {
|
||||
const log = Log.create({ service: "provider" })
|
||||
|
||||
|
|
@ -1130,7 +1128,7 @@ export namespace Provider {
|
|||
if (existing) return existing
|
||||
|
||||
const customFetch = options["fetch"]
|
||||
const chunkTimeout = options["chunkTimeout"] || DEFAULT_CHUNK_TIMEOUT
|
||||
const chunkTimeout = options["chunkTimeout"]
|
||||
delete options["chunkTimeout"]
|
||||
|
||||
options["fetch"] = async (input: any, init?: BunFetchRequestInit) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue