Skip to content

Commit 36cf9b9

Browse files
authored
fix: add timeout to fetch models.dev refresh request (anomalyco#3059)
1 parent 0d21164 commit 36cf9b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/opencode/src/provider/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export namespace ModelsDev {
7676
headers: {
7777
"User-Agent": Installation.USER_AGENT,
7878
},
79+
signal: AbortSignal.timeout(10 * 1000),
7980
}).catch((e) => {
8081
log.error("Failed to fetch models.dev", {
8182
error: e,

0 commit comments

Comments
 (0)