Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,8 @@ async def stream_text(request: StreamTextRequest):
|
|
65 |
|
66 |
data = {'messages': messages, 'stream': True, 'model': fmodel}
|
67 |
|
68 |
-
api_key = request.api_key
|
|
|
69 |
|
70 |
async def stream_response():
|
71 |
async with aiohttp.ClientSession() as session:
|
|
|
65 |
|
66 |
data = {'messages': messages, 'stream': True, 'model': fmodel}
|
67 |
|
68 |
+
api_key = request.api_key if request.api_key != 'none' else SAMBA_NOVA_API_KEY
|
69 |
+
|
70 |
|
71 |
async def stream_response():
|
72 |
async with aiohttp.ClientSession() as session:
|