try few things

This commit is contained in:
Vasilije 2024-05-25 14:38:16 +02:00
parent 6a513f25ee
commit fa5028a072

View file

@ -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