alibaba / higress

Cloud Native API Gateway | 云原生API网关
https://higress.io
Apache License 2.0
2.5k stars 407 forks source link

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

Closed CH3CHO closed 1 week ago

CH3CHO commented 1 week ago

Ⅰ. 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