fix: add timeout to fetch models.dev refresh request (#3059)
This commit is contained in:
parent
0d21164255
commit
36cf9b9922
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue