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

fix: Accommodate the incomplete function name in the initial event from Qwen #1045

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

CH3CHO
Copy link
Collaborator

@CH3CHO CH3CHO commented Jun 18, 2024

Ⅰ. Describe what this PR did

Sometimes in the initial push event from Qwen with a tool call, the function name isn't complete. If we push the event directly to the client, it may cause the tool call failed to be executed. So we wait until the arguments are coming, which means the function name is complete, and push the event then.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

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

LGTM

@johnlanni johnlanni merged commit ffee7dc into alibaba:main Jun 19, 2024
10 of 11 checks passed
@CH3CHO CH3CHO deleted the fix/qwen-tool-calls branch June 19, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants