abdullahalioo commited on
Commit
603790a
·
verified ·
1 Parent(s): 19fe1fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ async def generate_ai_response(prompt: str, model: str):
20
 
21
  client = AsyncOpenAI(base_url=endpoint, api_key=token)
22
 
23
- try
24
  stream = await client.chat.completions.create(
25
  messages=[
26
  {"role": "system", "content": "You are a helpful assistant named Orion, created by Abdullah Ali"},
 
20
 
21
  client = AsyncOpenAI(base_url=endpoint, api_key=token)
22
 
23
+ try:
24
  stream = await client.chat.completions.create(
25
  messages=[
26
  {"role": "system", "content": "You are a helpful assistant named Orion, created by Abdullah Ali"},