Jyothikamalesh commited on
Commit
93e340c
·
verified ·
1 Parent(s): 2cfcbca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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={"Authorization": f"Bearer {ACCESS_TOKEN}"},
 
 
 
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,