Spaces:
Runtime error
Runtime error
Download src/settings.py from Sborole/Sborole-Final-Assignment: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/spaces/Sborole/Sborole-Final-Assignment/resolve/12b457dcdc6927a2e920342df7d8f6d373b5cadd/src/settings.py
- Command line
-
hf download hf://spaces/Sborole/Sborole-Final-Assignment@12b457dcdc6927a2e920342df7d8f6d373b5cadd/src/settings.py
-
curl -L -o settings.py https://huggingface.co/spaces/Sborole/Sborole-Final-Assignment/resolve/12b457dcdc6927a2e920342df7d8f6d373b5cadd/src/settings.py
594 Bytes
| import os | |
| from pydantic import BaseModel, Field | |
| class Settings(BaseModel): | |
| llm_model_id: str = Field(default="mistral/mistral-7b-instruct-v0.2") | |
| llm_api_key: str = Field(default=os.getenv("MISTRAL_API_KEY", "")) | |
| system_prompt: str = Field(default="""You are a professional AI assistant. Your process MUST be Thought -> Action (JSON Tool Call) -> Observation. | |
| When you have the final result, you **MUST** call the `final_answer` tool. | |
| The argument passed to the `final_answer` tool must be the final, comma-separated, correctly formatted string (e.g., "A, B, C"). | |
| """) | |