diff --git a/server/graph_service/zep_graphiti.py b/server/graph_service/zep_graphiti.py index 2c85fbd..f42a667 100644 --- a/server/graph_service/zep_graphiti.py +++ b/server/graph_service/zep_graphiti.py @@ -83,8 +83,9 @@ async def get_graphiti(settings: ZepEnvDep): client.llm_client.config.api_key = settings.openai_api_key if settings.model_name is not None: client.llm_client.model = settings.model_name - if settings.embedding_model_name is not None: - if hasattr(client.embedder, 'config') and hasattr(client.embedder.config, 'embedding_model'): + if settings.embedding_model_name is not None and \ + hasattr(client.embedder, 'config') and \ + hasattr(client.embedder.config, 'embedding_model'): client.embedder.config.embedding_model = settings.embedding_model_name try: