cognee/cognitive_architecture/infrastructure/llm/get_llm_client.py

10 lines
No EOL
260 B
Python

"""Get the LLM client."""
from cognitive_architecture.config import Config
from .openai.adapter import OpenAIAdapter
config = Config()
config.load()
def get_llm_client():
"""Get the LLM client."""
return OpenAIAdapter(config.openai_key, config.model)