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 2 additions and 0 deletions
Showing only changes of commit 4c2c164ce1 - Show all commits

View File

@ -120,6 +120,7 @@ def openai_chat_completions(model_name=None):
timestamp = int(stream_index.decode('utf-8').split('-')[0])
data = ujson.loads(item[b'data'])
if data['error']:
print(data['error'])
yield 'data: [DONE]\n\n'
return
elif data['new']:

View File

@ -164,6 +164,7 @@ def openai_completions(model_name=None):
timestamp = int(stream_index.decode('utf-8').split('-')[0])
data = ujson.loads(item[b'data'])
if data['error']:
print(data['error'])
yield 'data: [DONE]\n\n'
return
elif data['new']: