Spaces:
Sleeping
Sleeping
Download agent/llm.py from neurostack-in/talk2map-prod: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/neurostack-in/talk2map-prod/resolve/main/agent/llm.py
- Command line
-
hf download hf://spaces/neurostack-in/talk2map-prod/agent/llm.py
-
curl -L -o llm.py https://huggingface.co/spaces/neurostack-in/talk2map-prod/resolve/main/agent/llm.py
347 Bytes
| # llm.py | |
| from dotenv import load_dotenv | |
| from langchain_groq import ChatGroq | |
| load_dotenv() | |
| def get_llm(temperature: float = 0.2, max_tokens: int = 8064) -> ChatGroq: | |
| return ChatGroq( | |
| model="meta-llama/llama-4-maverick-17b-128e-instruct", | |
| temperature=temperature, | |
| max_tokens=max_tokens, | |
| streaming=False, | |
| ) | |