Spaces:
Runtime error
Runtime error
| import os | |
| from dotenv import load_dotenv | |
| # Load environment variables | |
| load_dotenv() | |
| # Configuration | |
| MISTRAL_API_KEY = os.getenv("MISTRAL_API_KEY") | |
| DEFAULT_MODEL = "mistral-tiny" | |
| # Available models fallback | |
| FALLBACK_MODELS = ["mistral-tiny", "mistral-small", "mistral-medium"] | |
| # App configuration - Always allow user API keys for Hugging Face deployment | |
| REQUIRE_API_KEY = True # Always require API key for public deployment | |
| ALLOW_USER_API_KEY = True # Always allow users to provide their own key | |