Replies: 5 comments 30 replies
|
So what you want is; You don't need to modify the source. You can use postProcessing: (helper, responseObj) => {
helper.sendNotification('SHOW_ALERT', {
title: 'Response from OpenAI',
message: responseObj.response.choices[0].text
})
} |
6 replies
|
400 error usually happens on throwing wrong request data |
2 replies
|
I was using telegram bot chatai, any idea or workaround for this? |
2 replies
|
I found what was wrong from your log. Too long token (conversation) |
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I know it already does show the output on the screen but I am trying to implement it to show a notification or alert using the default alert module by sending a SHOW_ALERT notification, I believe this can be achieved by sending a SHOW_ALERT notification from the nodehelper or the mainjs, I tried few different ways but I can’t seem to get it to work so I thought it’s best to reach out to you.
My objective is: To show Alert or notification of the response from the module, I tried updating the code in the following ways
And for the nodehelper I have added some console log and I could get it to print it on the console but the mainjs is not receiving the notification for some reason. Here is my nodehelper
I know it’s a little clumsy, not really sure what iam doing wrong here. Please help me out
All reactions