fix(llm): always fetch the embedding model

pull/2110/head
perf3ct 2025-06-03 05:13:32 +07:00
parent 336cd1fbda
commit b76166b0d5
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
1 changed files with 1 additions and 1 deletions

@ -300,7 +300,7 @@ export async function initializeDefaultProviders() {
const ollamaBaseUrl = await options.getOption('ollamaBaseUrl');
if (ollamaBaseUrl) {
// Use specific embedding models if available
const embeddingModel = await options.getOption('ollamaEmbeddingModel') || 'nomic-embed-text';
const embeddingModel = await options.getOption('ollamaEmbeddingModel');
try {
// Create provider with initial dimension to be updated during initialization