Chatbot assistant function required action handling
-
I would like to have the option to dynamically process the assistant function if it requires certain action.
Currently I have forked your package and added this code inside thechatbot-call-assistant.php
fileif ('requires_action' === $status) {
if (function_exists('chatgpt_assistant_function_handle')) {
call_user_func('chatgpt_assistant_function_handle',
[
'apiKey' => $api_key,
'threadId' => $thread_id,
'runId' => $runId,
],
$responseArray
);
}
}I have my custom plugin for parsing the calling the function itself. You are activly developing this plugin that is why I do not want to fork it any longer but propose my ideas and provide them to you
regards
- The topic ‘Chatbot assistant function required action handling’ is closed to new replies.