akiko19191 commited on
Commit
9af33ad
·
verified ·
1 Parent(s): 2c68e2e

Update utils/llms.py

Browse files
Files changed (1) hide show
  1. utils/llms.py +2 -1
utils/llms.py CHANGED
@@ -181,7 +181,8 @@ def chatstream(messages,model,api_keys):
181
  yield(part.choices[0].delta.content or "")
182
 
183
  break
184
- except:
 
185
  pass
186
  print("STOPPING")
187
  yield("RESULT: "+cunk)
 
181
  yield(part.choices[0].delta.content or "")
182
 
183
  break
184
+ except Exception as e:
185
+ print(str(e))
186
  pass
187
  print("STOPPING")
188
  yield("RESULT: "+cunk)