mirror of
https://github.com/Xueheng-Li/SynologyChatbotGPT.git
synced 2025-07-23 04:47:47 +00:00
update
This commit is contained in:
@ -677,6 +677,7 @@ class ChatBot:
|
|||||||
# print(r.choices[0]["delta"])
|
# print(r.choices[0]["delta"])
|
||||||
if "content" in r.choices[0]["delta"]:
|
if "content" in r.choices[0]["delta"]:
|
||||||
word = r.choices[0]["delta"]["content"]
|
word = r.choices[0]["delta"]["content"]
|
||||||
|
if word is not None:
|
||||||
text.append(word)
|
text.append(word)
|
||||||
whole_text.append(word)
|
whole_text.append(word)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user