Fix ollama embeddings for remote machine (#1394)

This commit is contained in:
Dev Khant
2024-06-08 22:38:15 +05:30
committed by GitHub
parent 00c1fa1ec7
commit 4070fc1bf0
2 changed files with 6 additions and 5 deletions

View File

@@ -12,4 +12,4 @@ class OllamaEmbedderConfig(BaseEmbedderConfig):
base_url: Optional[str] = None,
):
super().__init__(model)
self.base_url = base_url or "http://127.0.0.1:11434"
self.base_url = base_url or "http://localhost:11434"