fix: add timeout to fetch models.dev refresh request (#3059)

This commit is contained in:
OpeOginni 2025-10-12 07:20:22 +02:00 committed by GitHub
commit 36cf9b9922
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,