Pro-Coder commited on
Commit
d4d1af7
·
verified ·
1 Parent(s): ffd2f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ ROUTER_URL = "https://router.huggingface.co/v1/chat/completions"
67
  # Groq (OpenAI-compatible, free tier with rate limits): add GROQ_API_KEY as a Space SECRET.
68
  # Groq models are tried first when the key is set; any failure (429 rate limit, bad key,
69
  # timeout, unknown model) moves on to the Hugging Face path below.
70
- GROQ_API_KEY = (os.environ.get("GROQ_API_KEY") or "").strip()
71
  GROQ_URL = "https://api.groq.com/openai/v1/chat/completions"
72
  GROQ_MODELS = [m.strip() for m in os.environ.get(
73
  "GROQ_MODELS", "openai/gpt-oss-120b,openai/gpt-oss-20b,llama-3.3-70b-versatile,llama-3.1-8b-instant"
 
67
  # Groq (OpenAI-compatible, free tier with rate limits): add GROQ_API_KEY as a Space SECRET.
68
  # Groq models are tried first when the key is set; any failure (429 rate limit, bad key,
69
  # timeout, unknown model) moves on to the Hugging Face path below.
70
+ GROQ_API_KEY = (os.environ.get("groq_api_key") or "").strip()
71
  GROQ_URL = "https://api.groq.com/openai/v1/chat/completions"
72
  GROQ_MODELS = [m.strip() for m in os.environ.get(
73
  "GROQ_MODELS", "openai/gpt-oss-120b,openai/gpt-oss-20b,llama-3.3-70b-versatile,llama-3.1-8b-instant"