fix(core): disable chunk timeout by default (#18264)
parent
a6f23cb08e
commit
d69962b0f7
|
|
@ -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…
Reference in New Issue