Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,10 @@ async def respond(
|
|
| 26 |
async with aiohttp.ClientSession() as session:
|
| 27 |
async with session.post(
|
| 28 |
"https://api.openai.com/v1/chat/completions",
|
| 29 |
-
headers={
|
|
|
|
|
|
|
|
|
|
| 30 |
json={
|
| 31 |
"model": "NousResearch/Hermes-3-Llama-3.1-8B",
|
| 32 |
"max_tokens": max_tokens,
|
|
|
|
| 26 |
async with aiohttp.ClientSession() as session:
|
| 27 |
async with session.post(
|
| 28 |
"https://api.openai.com/v1/chat/completions",
|
| 29 |
+
headers={
|
| 30 |
+
"Authorization": f"Bearer {ACCESS_TOKEN}",
|
| 31 |
+
"Content-Type": "application/json",
|
| 32 |
+
},
|
| 33 |
json={
|
| 34 |
"model": "NousResearch/Hermes-3-Llama-3.1-8B",
|
| 35 |
"max_tokens": max_tokens,
|