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
Parallel function calling多个tool返回,token计算有误 #8
Comments
forestwanglin
added a commit
that referenced
this issue
Feb 3, 2024
Merge branch 'main' of https://github.com/forestwanglin/openai-java
When tool message's size equal 1, it use |
这个用例还是差了一些和官方返回差了点
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用Parallel function calling,会返回多个role为tool的message。
调用模型为gpt-4-1106-preview
第一次tool calling 先不讨论,因为一般人不会用流式调用第一次tool calls,
第二次tool calls调用prompt比官方多了1。
例子:
OpenAI返回
本库返回
prompt_tokens 122
The text was updated successfully, but these errors were encountered: