Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,8 @@ async def process_chat(chat_request: ChatMessage):
|
|
| 91 |
async with httpx.AsyncClient(timeout=60.0) as client:
|
| 92 |
response = await client.post(
|
| 93 |
"https://parthsadaria-lokiai.hf.space/chat/completions",
|
| 94 |
-
json=api_request
|
|
|
|
| 95 |
)
|
| 96 |
response_data = response.json()
|
| 97 |
|
|
|
|
| 91 |
async with httpx.AsyncClient(timeout=60.0) as client:
|
| 92 |
response = await client.post(
|
| 93 |
"https://parthsadaria-lokiai.hf.space/chat/completions",
|
| 94 |
+
json=api_request,
|
| 95 |
+
headers={"Authorization": "sigma"}
|
| 96 |
)
|
| 97 |
response_data = response.json()
|
| 98 |
|