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

BUG: Fix tool calls return invalid usage #1420

Merged

Conversation

codingl2k1
Copy link
Contributor

The qwen model use ReAct to call tools, the token usage may larger than the expected.

@XprobeBot XprobeBot added the bug Something isn't working label May 1, 2024
@XprobeBot XprobeBot added this to the v0.11.0 milestone May 1, 2024
@codingl2k1 codingl2k1 marked this pull request as ready for review May 1, 2024 18:27
Copy link
Contributor

@qinxuye qinxuye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qinxuye qinxuye merged commit 330c12f into xorbitsai:main May 6, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qwen1.5-chat模型工具调用返回的token消耗为-1
3 participants