Spaces:
Build error
Build error
Download utils.py from giqua/Giqua_Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/giqua/Giqua_Final_Assignment_Template/resolve/main/utils.py
- Command line
-
hf download hf://spaces/giqua/Giqua_Final_Assignment_Template/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/giqua/Giqua_Final_Assignment_Template/resolve/main/utils.py
368 Bytes
| from langchain_google_genai import ChatGoogleGenerativeAI | |
| def get_llm( | |
| llm_provider_api_key: str, | |
| # model_name: str = "gemini-2.0-flash", | |
| model_name: str = "ggemini-2.5-flash-preview-04-17", | |
| ): | |
| return ChatGoogleGenerativeAI( | |
| google_api_key=llm_provider_api_key, | |
| temperature=0.7, | |
| max_retries=5, | |
| model=model_name, | |
| ) | |