AlexTrinityBlock's picture
refactor(api): add LLM abstraction layer to replace hardcoded model strings
bcdc55d
raw
history blame
363 Bytes
# from langchain_google_genai import ChatGoogleGenerativeAI
from langchain_community.chat_models import MiniMaxChat
_llm = None
def get_llm():
"""Return a shared LLM instance."""
global _llm
if _llm is None:
# _llm = ChatGoogleGenerativeAI(model="gemini-3-flash-preview")
_llm = MiniMaxChat(model="m2.5-highspeed")
return _llm