You can see here the openai-cookbook for using functions with openai-python.
The biggest problem for adding support for it in OpenAIClient through chat_completion is that openai functions return an object containing the name of the function and the arguments and not just a string like in regular chat.
You can see here the openai-cookbook for using functions with openai-python. The biggest problem for adding support for it in OpenAIClient through chat_completion is that openai functions return an object containing the name of the function and the arguments and not just a string like in regular chat.