Skip to content

[Bug] Call the session API, streaming can count the consumption of tokens, but non-streaming cannot #3635

@linfengjjj

Description

@linfengjjj

Contact Information

No response

MaxKB Version

v1.10.8-lts

Problem Description

调用会话API,流式能统计到token消耗,非流式不行

Steps to Reproduce

1、Python调用API会话接口,分别使用流式和非流式

Image 2、流式的结果 Image 3、非流式的结果 Image

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions