Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"},
|