diff --git a/packages/opencode/src/plugin/github-copilot/models.ts b/packages/opencode/src/plugin/github-copilot/models.ts index 6cbb17fe9a..b6b27d0340 100644 --- a/packages/opencode/src/plugin/github-copilot/models.ts +++ b/packages/opencode/src/plugin/github-copilot/models.ts @@ -112,6 +112,7 @@ export namespace CopilotModels { ): Promise> { const data = await fetch(`${baseURL}/models`, { headers, + signal: AbortSignal.timeout(5_000), }).then(async (res) => { if (!res.ok) { throw new Error(`Failed to fetch models: ${res.status}`)