mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix(llm): always fetch the embedding model
This commit is contained in:
		
							parent
							
								
									336cd1fbda
								
							
						
					
					
						commit
						b76166b0d5
					
				| @ -300,7 +300,7 @@ export async function initializeDefaultProviders() { | |||||||
|         const ollamaBaseUrl = await options.getOption('ollamaBaseUrl'); |         const ollamaBaseUrl = await options.getOption('ollamaBaseUrl'); | ||||||
|         if (ollamaBaseUrl) { |         if (ollamaBaseUrl) { | ||||||
|             // Use specific embedding models if available
 |             // Use specific embedding models if available
 | ||||||
|             const embeddingModel = await options.getOption('ollamaEmbeddingModel') || 'nomic-embed-text'; |             const embeddingModel = await options.getOption('ollamaEmbeddingModel'); | ||||||
| 
 | 
 | ||||||
|             try { |             try { | ||||||
|                 // Create provider with initial dimension to be updated during initialization
 |                 // Create provider with initial dimension to be updated during initialization
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 perf3ct
						perf3ct