We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f5667 commit 0a1a5a2Copy full SHA for 0a1a5a2
server/utils/AiProviders/ollama/index.js
@@ -79,7 +79,9 @@ class OllamaAILLM {
79
headers: authToken ? { Authorization: `Bearer ${authToken}` } : {},
80
});
81
82
- const { models } = await client.list();
+ const { models } = await client.list().catch(() => ({ models: [] }));
83
+ if (!models.length) return;
84
+
85
const infoPromises = models.map((model) =>
86
client
87
.show({ model: model.name })
0 commit comments