Closed innocenzi closed 1 year ago
It looks like it does not take into account the existence of the function_call
parameter here;
https://github.com/openai-php/client/blob/main/src/Responses/Chat/CreateResponseMessage.php#L21
It also breaks on $attributes['content']
being null
in this case since there's no content there when a function_call
is needed.
Currently working on this one.
https://github.com/openai-php/client/pull/144
Reviews welcome 🙏
Awesome @gehrisandro. Thank you for your time. ❤️
v0.6.0 has been released: https://twitter.com/gehrisandro/status/1669076719200874496?s=20
Tweet: https://twitter.com/OpenAI/status/1668668732347129856 Blog post: https://openai.com/blog/function-calling-and-other-api-updates Documentation: https://platform.openai.com/docs/guides/gpt/function-calling
Open AI now supports "function calling". The feature consists of passing function details to an OpenAI request, and the response will tell you if the model wants to run a function.