From fa5028a07268642b969a7cf5d40eb6dc1f41f1c0 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sat, 25 May 2024 14:38:16 +0200 Subject: [PATCH] try few things --- cognee/infrastructure/llm/get_llm_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cognee/infrastructure/llm/get_llm_client.py b/cognee/infrastructure/llm/get_llm_client.py index 1aadd12bb..4b74a5fe7 100644 --- a/cognee/infrastructure/llm/get_llm_client.py +++ b/cognee/infrastructure/llm/get_llm_client.py @@ -12,10 +12,12 @@ class LLMProvider(Enum): ANTHROPIC = "anthropic" CUSTOM = "custom" +config = Config() +config.load() def get_llm_client(): """Get the LLM client based on the configuration using Enums.""" # logging.error(json.dumps(llm_config.to_dict())) - provider = LLMProvider(Config.llm_provider) + provider = LLMProvider(config.llm_provider) if provider == LLMProvider.OPENAI: from .openai.adapter import OpenAIAdapter