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