iamkdp commited on
Commit
2e20702
·
verified ·
1 Parent(s): b98b781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  from cachetools import TTLCache
5
 
6
  # Configuration
7
- API_URL = "https://api-inference.huggingface.co/models/mistralai/Ministral-8B-Instruct-2410"
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