Read the statement by Michael Teeuw here.
ChatGpt intergration
-
@SILLEN-0 the node_helper cannot send that big structure to the module.
sendSocketNotification uses socketio, which uses json stringify on send and parse on the receive.
both are shallow copy functions anyhow
-
@SILLEN-0 u might want to see this
https://forum.magicmirror.builders/topic/17637/mmm-openai -
@sdetweil yes i just saw that i will try too use that module and from there send a notifications with the payload of the googleassistant recipie
-
@sdetweil ok i tried with that module and all i changed was in the googleassistant module it should have sent the payload of everything after “chatgpt” but when i say somthing like chatgpt say banana it does send the notification and the notification gets recieved and the module displays an answer but this is what it looks like:
as you see it says undefined and just answer a random question. this is my recipe:var recipe = { transcriptionHooks: { "ASK_QUESTION": { pattern: "chatgpt (.*)", command: "ASK_QUESTION" } }, commands: { "ASK_QUESTION": { notificationExec: { notification: "OPENAI_REQUEST", payload: (params) => { console.log("Debug: params received", params); return { question: params[1] } } } }
the weird thing is is that if im not mistaken in the logs of magicmirror it should say params recieved and then params after but it doesnt. why do you think the module says undefined now but in my module the notification gets recieved and the params after “chatgpt” get sent over with it? but in this module it shows up as undefined?
-
@SILLEN-0
The payload should have the strict structure; https://github.com/MMRIZE/MMM-OpenAI#4-request-format -
@SILLEN-0 This is amazing! Any luck with getting it to work with Google Assistant recipe?