接入deepseek-coder

This commit is contained in:
qingxu fu
2023-11-24 02:35:44 +08:00
parent e533ed6d12
commit 9916f59753
5 changed files with 129 additions and 8 deletions

View File

@@ -198,7 +198,7 @@ class LocalLLMHandle(Process):
if res.startswith(self.std_tag):
new_output = res[len(self.std_tag):]
std_out = std_out[:std_out_clip_len]
# print(new_output, end='')
print(new_output, end='')
std_out = new_output + std_out
yield self.std_tag + '\n```\n' + std_out + '\n```\n'
elif res == '[Finish]':