chore: add config.baseURL fallback for Ollama host

This commit is contained in:
kartik-mem0
2026-03-14 23:49:00 +05:30
parent e830351691
commit 189aea04c9
+1 -1
View File
@@ -12,7 +12,7 @@ export class OllamaEmbedder implements Embedder {
constructor(config: EmbeddingConfig) {
this.ollama = new Ollama({
host: config.url || "http://localhost:11434",
host: config.url || config.baseURL || "http://localhost:11434",
});
this.model = config.model || "nomic-embed-text:latest";
this.embeddingDims = config.embeddingDims || 768;