Commit ·
662decd
1
Parent(s): 7219c67
fix: Use GROQ_API instead of GROQ_API_KEY
Browse files
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("
|
| 252 |
if not groq_api_key:
|
| 253 |
-
raise HTTPException(status_code=500, detail="
|
| 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 = {
|