Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

流式Handler token计量 #13

Open
whybeyoung opened this issue Apr 19, 2024 · 1 comment
Open

流式Handler token计量 #13

whybeyoung opened this issue Apr 19, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@whybeyoung
Copy link
Contributor

缺失2个信息:

  1. 流式处理最后一帧没有在 handler中 放入 token计量信息
  2. 流式每一帧,理论也要按token计量,这里需要对齐 星火计量方法
@whybeyoung whybeyoung self-assigned this Apr 19, 2024
@whybeyoung whybeyoung added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Apr 19, 2024
@whybeyoung
Copy link
Contributor Author

当前星火api 不支持每帧返回token计量,需等其正式支持后可支持。

当前已实现流式 最后一帧回调usage信息,用法请参考: https://github.com/iflytek/spark-ai-python?tab=readme-ov-file#%E6%96%B9%E5%BC%8F1-%E5%9B%9E%E8%B0%83%E5%87%BD%E6%95%B0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant