OvidijusParsiunas / deep-chat

Fully customizable AI chatbot component for your website
https://deepchat.dev
MIT License
1.54k stars 245 forks source link

Error: Please define the function_handler property inside the openAI object. #294

Open bruffridge opened 4 days ago

bruffridge commented 4 days ago

Package: deep-chat-dev Version: 9.0.199 Location: directionConnection.openAI.assistant.function_handler

What happened: Sending a message to invoke function calling results in the error message, "Please define the function_handler property inside the openAI object."

I tracked down the source of the issue, PR on its way to fix this.

OvidijusParsiunas commented 4 days ago

Hey @bruffridge.

I realised this issue is also in other OpenAI related function_handler code. I have instead updated all of the related classes based on the previous way they were implemented in the following commit, hence I will close your PR.

Thankyou for bringing this to my attention and I have released the latest updates in deep-chat-dev and deep-chat-react-dev packages version 9.0.200. Please let me know if they work for you. Thankyou!