Commit b91806de by 杨林龙

添加流式输出

1 parent df86e3d3
......@@ -349,7 +349,7 @@ class LLMHelper:
print(f"choice.finish reason: {choice.finish_reason}")
logger.info(f"choice.finish reason: {choice.finish_reason}")
yield "<rdfast stop>"
break
# break
else:
if choice.delta.content is None:
continue
......@@ -388,7 +388,7 @@ class LLMHelper:
print(f"choice.finish reason: {choice.finish_reason}")
logger.info(f"choice.finish reason: {choice.finish_reason}")
yield "<rdfast stop>"
break
# break
else:
if choice.delta.content is None:
continue
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!