-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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]: langchain qwen2.5 function calling error #9454
Comments
me too |
@Valdanitooooo |
@2500035435 我就是按官方教程填的 --enable-auto-tool-choice --tool-call-parser hermes |
我用了hermes,看您上面还能出来response,我这边直接报错了: (
[-2:checkpoint] State at the end of step -2:
InternalServerError: Error code: 500 |
@2500035435 你用的 glm4-9b,咱们不是一个模型 |
是的,我以为vllm只要别的模型能通过langchain框架调用工具,我这也行😨 |
@2500035435 我使用 vllm qwen2 & langchain 是没问题的,我一直在用,就是现在没法升级 qwen2.5 |
0.6.2 是不是不会出现问题, 函数是空参数 |
@Valdanitooooo 感谢分享 |
Your current environment
The output of `python collect_env.py`
Model Input Dumps
Test code:
Output:
{'agent': {'messages': [AIMessage(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'chatcmpl-tool-62111907b5634a5ca584761b1528a2be', 'function': {'arguments': None, 'name': 'get_current_month'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'Qwen2.5-7B-Instruct'}, id='run-e81f28b5-51f6-4114-8fa6-90b4e9fee7c6-0', invalid_tool_calls=[{'name': 'get_current_month', 'args': None, 'id': 'chatcmpl-tool-62111907b5634a5ca584761b1528a2be', 'error': None, 'type': 'invalid_tool_call'}])]}}
🐛 Describe the bug
Error:
logs:
Before submitting a new issue...
The text was updated successfully, but these errors were encountered: