Skip to content

关于流式输出 #5384

@flyider

Description

@flyider

在开启流式输出的情况下,使用知识库对话的api接口返回的数据是逐个token返回的吗?
在web_ui中,我发现底层对话逻辑使用的是client.chat.completions.create(messages=messages, model=llm_model, stream=True, extra_body=extra_body)接口。
在反复测试中发现,kb_chat接口总是无法流式输出,现在也找不到原因

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions