Closed gplanchat closed 8 months ago
@gplanchat hey - cool that you found my library :) i have refactored lots of things in the last days 😂 but yes you can create a PR for that! seems legit
Can i ask for what you are using the library?
ah sorry i see now :) the mistral lib does not know the enum ToolChoiceEnum
as it is independent of all the other packages. Just convert the toolchoice to a string in the adapter $parameters['tool_choice'] = $toolChoice->value;
the rest should then work without a change
@gplanchat thanks for the report :) i have fixed it in a bigger way! have found some issues more with openai.
Now also a test is there so should not happen anymore
Thank you @wachterjohannes for the fix
Can i ask for what you are using the library?
I am experimenting AI features for an iPaaS solution I am building at https://github.com/php-etl
@gplanchat nice - give me a hint when you want to contact about your usecase (you can contact me on twitter)
@gplanchat nice - give me a hint when you want to contact about your usecase (you can contact me on twitter)
I cannot reach you through twitter. You seem to have restricted the people that can send you a DM. The other way around should work: https://twitter.com/gplanchat
Hello,
Thanks for those tools.
I tried the
tools.php
andtools-stream.php
with Mistral.Unfortunately, I got the following error:
I was surprised this sort of error could happen, but I presumed you are at an early stage of development and refactor a lot. I tried the following quick fix in the vendor to get further :
and then got the following error:
As it is the same type of issue, I applied the same type of changes as seen in the following patch:
With this patch, everything worked with Mistral.
Am I on the same page as you, and my changes are what you are currently refactoring? Should I make a PR?