fix(opencode): increase OpenAI header timeout (#37770)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-07-19 10:41:48 -05:00
committed by GitHub
co-authored by Aiden Cline
parent 78587c141b
commit 67caf894e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ import { ModelStatus } from "./model-status"
import { RuntimeFlags } from "@/effect/runtime-flags"
import { ProviderError } from "./error"
const OPENAI_HEADER_TIMEOUT_DEFAULT = 10_000
const OPENAI_HEADER_TIMEOUT_DEFAULT = 300_000
function wrapSSE(res: Response, ms: number, ctl: AbortController) {
if (typeof ms !== "number" || ms <= 0) return res
@@ -162,7 +162,7 @@ it.live("OpenAI API auth gets default headerTimeout", () =>
Effect.gen(function* () {
const provider = yield* Provider.Service
const openai = yield* provider.getProvider(ProviderV2.ID.openai)
expect(openai.options.headerTimeout).toBe(10_000)
expect(openai.options.headerTimeout).toBe(300_000)
}),
)
}),