Genai bugfix (#14880)

* Fix genai init when disabled at global level

* use genai config for class init
This commit is contained in:
Josh Hawkins
2024-11-09 07:48:53 -06:00
committed by GitHub
parent 580f35112e
commit 143bab87f1
2 changed files with 14 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ class EmbeddingMaintainer(threading.Thread):
self.requestor = InterProcessRequestor()
self.stop_event = stop_event
self.tracked_events = {}
self.genai_client = get_genai_client(config.genai)
self.genai_client = get_genai_client(config)
def run(self) -> None:
"""Maintain a SQLite-vec database for semantic search."""