ismdrobiul489 commited on
Commit
662decd
·
1 Parent(s): 7219c67

fix: Use GROQ_API instead of GROQ_API_KEY

Browse files
Files changed (1) hide show
  1. modules/text_story/router.py +2 -2
modules/text_story/router.py CHANGED
@@ -248,9 +248,9 @@ async def ai_generate_conversation(request: AiGenerateRequest):
248
  import aiohttp
249
  import json
250
 
251
- groq_api_key = os.getenv("GROQ_API_KEY", "")
252
  if not groq_api_key:
253
- raise HTTPException(status_code=500, detail="GROQ_API_KEY not configured")
254
 
255
  # Tone descriptions
256
  tone_prompts = {
 
248
  import aiohttp
249
  import json
250
 
251
+ groq_api_key = os.getenv("GROQ_API", "")
252
  if not groq_api_key:
253
+ raise HTTPException(status_code=500, detail="GROQ_API not configured")
254
 
255
  # Tone descriptions
256
  tone_prompts = {