-
Notifications
You must be signed in to change notification settings - Fork 46
Function calling #53
Comments
+1 |
And regarding Azure Mistral Large, they say this:
|
Anyone using La Plateforme with javascript successfully tried function calling ? According to the typescript definitions of this package at the moment, the function calling would be only available with streaming (client.chatStream), but I cannot get it to work either way (streaming or async). Using mistral-large-latest, it seems that the model is aware fo which function it should call, but tool_calls is always empty and the model output "[Function Call: 'get-cart']" straight into the content. Request call :
Answer :
|
+1 Same issue, no tools on the javascript client. |
Any update on this ? |
+1 |
Maybe could try setting the |
Hi everyone! Thanks all for your contribution and apologize for the delay of answer. Function calling is properly working on the JS client, in normal and streaming mode. The latest release (0.2.0) should fix the typescript definitions. We are aware of model issues (not related to this client) when having function calls after some text for example. We would appreciate a lot reproductible example of those issues. @thibautvdu @lucas-vitrus @briannezhad @johannbuscail do you have examples of prompt + tools that you give to the model where it answers badly? |
Thanks for reporting this issue. We have deprecated this package in favor of mistralai/client-ts, which is the new official Mistral client, compatible with both TypeScript and JavaScript. You can find all installation information here. This change is effective starting with version 1.0.0 of the npm package. Let us know if your issue persists with the new package by opening an issue there. |
Hi!
What is the way to call (Mistral Large) functions with this client?
I did not find even any mentions about functions on API documentation (https://docs.mistral.ai/api/#operation/createChatCompletion)
The text was updated successfully, but these errors were encountered: