Spaces:
Sleeping
Sleeping
Commit
·
7e78bd0
1
Parent(s):
134d4df
modified API endpoint -- points at groq
Browse files
main.py
CHANGED
@@ -44,7 +44,7 @@ async def llm_output(question: str) -> tuple[str, str]:
|
|
44 |
}
|
45 |
|
46 |
async with aiohttp.ClientSession() as session:
|
47 |
-
async with session.post(URL_LLM + "/api/generate", json=obj) as response:
|
48 |
if response.status == 500:
|
49 |
return "Error 500"
|
50 |
response_json = await response.json(content_type=None)
|
|
|
44 |
}
|
45 |
|
46 |
async with aiohttp.ClientSession() as session:
|
47 |
+
async with session.post(URL_LLM + "/api/groq/generate", json=obj) as response:
|
48 |
if response.status == 500:
|
49 |
return "Error 500"
|
50 |
response_json = await response.json(content_type=None)
|