try few things
This commit is contained in:
parent
6a513f25ee
commit
fa5028a072
1 changed files with 3 additions and 1 deletions
|
|
@ -12,10 +12,12 @@ class LLMProvider(Enum):
|
||||||
ANTHROPIC = "anthropic"
|
ANTHROPIC = "anthropic"
|
||||||
CUSTOM = "custom"
|
CUSTOM = "custom"
|
||||||
|
|
||||||
|
config = Config()
|
||||||
|
config.load()
|
||||||
def get_llm_client():
|
def get_llm_client():
|
||||||
"""Get the LLM client based on the configuration using Enums."""
|
"""Get the LLM client based on the configuration using Enums."""
|
||||||
# logging.error(json.dumps(llm_config.to_dict()))
|
# logging.error(json.dumps(llm_config.to_dict()))
|
||||||
provider = LLMProvider(Config.llm_provider)
|
provider = LLMProvider(config.llm_provider)
|
||||||
|
|
||||||
if provider == LLMProvider.OPENAI:
|
if provider == LLMProvider.OPENAI:
|
||||||
from .openai.adapter import OpenAIAdapter
|
from .openai.adapter import OpenAIAdapter
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue