Skip to content

Commit d69962b

Browse files
authored
fix(core): disable chunk timeout by default (#18264)
1 parent a6f23cb commit d69962b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/opencode/src/provider/provider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ import { ProviderTransform } from "./transform"
4747
import { Installation } from "../installation"
4848
import { ModelID, ProviderID } from "./schema"
4949

50-
const DEFAULT_CHUNK_TIMEOUT = 300_000
51-
5250
export namespace Provider {
5351
const log = Log.create({ service: "provider" })
5452

@@ -1130,7 +1128,7 @@ export namespace Provider {
11301128
if (existing) return existing
11311129

11321130
const customFetch = options["fetch"]
1133-
const chunkTimeout = options["chunkTimeout"] || DEFAULT_CHUNK_TIMEOUT
1131+
const chunkTimeout = options["chunkTimeout"]
11341132
delete options["chunkTimeout"]
11351133

11361134
options["fetch"] = async (input: any, init?: BunFetchRequestInit) => {

0 commit comments

Comments
 (0)