Download agent/api/api.py from AlexTrinityBlock/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/AlexTrinityBlock/Final_Assignment_Template/resolve/bcdc55dc3a0b2e8c73c5263fe0d2e7b8061fb21b/agent/api/api.py
- Command line
-
hf download hf://spaces/AlexTrinityBlock/Final_Assignment_Template@bcdc55dc3a0b2e8c73c5263fe0d2e7b8061fb21b/agent/api/api.py
-
curl -L -o api.py https://huggingface.co/spaces/AlexTrinityBlock/Final_Assignment_Template/resolve/bcdc55dc3a0b2e8c73c5263fe0d2e7b8061fb21b/agent/api/api.py
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 | |