mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-07 09:54:56 +01:00
fix: add timeout to fetch models.dev refresh request (#3059)
This commit is contained in:
@@ -76,6 +76,7 @@ export namespace ModelsDev {
|
||||
headers: {
|
||||
"User-Agent": Installation.USER_AGENT,
|
||||
},
|
||||
signal: AbortSignal.timeout(10 * 1000),
|
||||
}).catch((e) => {
|
||||
log.error("Failed to fetch models.dev", {
|
||||
error: e,
|
||||
|
||||
Reference in New Issue
Block a user