Merge cluster to master #3
|
@ -151,7 +151,9 @@ def openai_chat_completions(model_name=None):
|
|||
handler.backend_url,
|
||||
)
|
||||
return
|
||||
except (Exception, GeneratorExit):
|
||||
except GeneratorExit:
|
||||
return
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
yield 'data: [DONE]\n\n'
|
||||
finally:
|
||||
|
|
|
@ -197,7 +197,10 @@ def openai_completions(model_name=None):
|
|||
handler.backend_url,
|
||||
)
|
||||
return
|
||||
except (Exception, GeneratorExit):
|
||||
except GeneratorExit:
|
||||
# This should be triggered if a client disconnects early.
|
||||
return
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
yield 'data: [DONE]\n\n'
|
||||
finally:
|
||||
|
|
Reference in New Issue