Add struct field ToolCalls to ChatCompletionMessage for support tool call.#43
Add struct field ToolCalls to ChatCompletionMessage for support tool call.#43Vein05 merged 2 commits intocohesion-org:mainfrom
Conversation
|
I can approve of this change. Thank you for finding out a hidden documentation feature. If possible would you be able to create an issue about this so it's good for our documentation, and I can mention your issue in our releases. Also, you don't need to follow the issue format for that one. Just go over how you found out things, and if possible write example test data for testing. Here's an example to one I did: #8 You can reject to do this, just let me know. I will pull your changes nonetheless. |
|
My personal guess is that the DeepSeek developers only tested it in Python, and the messages.append(message) in the demo code actually implicitly "inherits" tools, which caused them to omit the field when writing the document. Fortunately, when the field is omitted, the server error message will prompt you. And I can add a simple example tomorrow. |
|
Thank you! I honestly did not know about this. I've merged your changes. Once you can create that issue, I will release a new version. Best, |


No description provided.