Merge cluster to master #3

Merged
cyberes merged 163 commits from cluster into master 2023-10-27 19:19:22 -06:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 1e68e10b62 - Show all commits

View File

@ -151,7 +151,9 @@ def openai_chat_completions(model_name=None):
handler.backend_url, handler.backend_url,
) )
return return
except (Exception, GeneratorExit): except GeneratorExit:
return
except Exception:
traceback.print_exc() traceback.print_exc()
yield 'data: [DONE]\n\n' yield 'data: [DONE]\n\n'
finally: finally:

View File

@ -197,7 +197,10 @@ def openai_completions(model_name=None):
handler.backend_url, handler.backend_url,
) )
return return
except (Exception, GeneratorExit): except GeneratorExit:
# This should be triggered if a client disconnects early.
return
except Exception:
traceback.print_exc() traceback.print_exc()
yield 'data: [DONE]\n\n' yield 'data: [DONE]\n\n'
finally: finally: