KingNish commited on
Commit
26cac3e
1 Parent(s): 8842532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 or SAMBA_NOVA_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: