Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import requests
|
|
| 4 |
from cachetools import TTLCache
|
| 5 |
|
| 6 |
# Configuration
|
| 7 |
-
API_URL = "https://api
|
| 8 |
API_TOKEN = os.environ.get("HF_TOKEN") # Get from environment # Replace with your token
|
| 9 |
MAX_TOKENS = 150
|
| 10 |
CACHE_TTL = 3600 # 1 hour cache
|
|
|
|
| 4 |
from cachetools import TTLCache
|
| 5 |
|
| 6 |
# Configuration
|
| 7 |
+
API_URL = "https://api.mistral.ai/v1/chat/completions"
|
| 8 |
API_TOKEN = os.environ.get("HF_TOKEN") # Get from environment # Replace with your token
|
| 9 |
MAX_TOKENS = 150
|
| 10 |
CACHE_TTL = 3600 # 1 hour cache
|