Commit 7ea046c4 authored by 于飞's avatar 于飞

应为增量显示换行有问题,先统一改为全量

parent 8cf84ed4
......@@ -359,6 +359,9 @@ async def chat_completions(
flow_service: FlowService = Depends(get_chat_flow),
auth: Auth = Depends(OpenAuth()),
):
# 应为增量显示换行有问题,先统一改为全量
if dialogue.incremental:
dialogue.incremental = False
#dialogue.select_param 这个参数为 : 知识库名称
logger.info(
f"chat_completions:{dialogue.chat_mode},{dialogue.model_name},==>dialogue:{dialogue}"
......
......@@ -88,6 +88,10 @@ async def chat_completions(
Raises:
HTTPException: If the request is invalid.
"""
#应为增量显示换行有问题,先统一改为全量
if request.incremental:
request.incremental = False
logger.info(
f"chat_completions:{request.chat_mode},{request.chat_param},{request.model}"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment