|
|
@@ -112,6 +112,7 @@ export namespace CopilotModels {
|
|
|
): Promise<Record<string, Model>> {
|
|
|
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}`)
|