Update max_token and formatting (#2273)
This commit is contained in:
@@ -39,7 +39,7 @@ class OllamaEmbedding(EmbeddingBase):
|
||||
if not any(model.get("name") == self.config.model for model in local_models):
|
||||
self.client.pull(self.config.model)
|
||||
|
||||
def embed(self, text, memory_action:Optional[Literal["add", "search", "update"]] = None):
|
||||
def embed(self, text, memory_action: Optional[Literal["add", "search", "update"]] = None):
|
||||
"""
|
||||
Get the embedding for the given text using Ollama.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user