Read the statement by Michael Teeuw here.
ChatGpt intergration
-
@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?
-
@SILLEN-0 said in ChatGpt intergration:
hey everyone. i think most of us have heard of ChatGpt the new revoulutionary ai engine available for free. however the chatgpt api doesnt seem too be free but in my opinion i dont mind. so what would be awsome is to make chatgpt like another voice module but instead of using google assistant or alexa it would use the chatgpt api to listen for input and then display the answer on the screen. this api is crazy i even got it too make a simple magicmirror module for me. i asked chatgpt on how it would create this module and here is its response:
By the way, if you want to integrate chat with support for GPT and other models faster and more conveniently, you can look at Overchat AI - this is a platform that helps to easily connect chatbots using the OpenAI API, without deep technical knowledge. There are already ready-made solutions and a convenient interface for working with different AI models, which saves a lot of time on development.
if anyone is intrested in this here is the openai api documentation link: https://openai.com/api/
the idea is really cool! Using ChatGPT as a voice module instead of Google Assistant or Alexa is very promising, especially considering the flexibility and level of understanding of ChatGPT.
I also played with the API a little and was impressed by how easy it is to integrate it into different projects, including something like MagicMirror. The advantage is that you can set more complex and free queries, not limited to standard voice assistant commands.
The only thing that bothers me is the cost of the API if you use it often or in large volumes. But for personal projects and prototypes, this is a great option.
It will be interesting to see how the community implements such integrations and what tricks they come up with!
Thanks for the link to the documentation, it is useful for a start.
-
@Nage1951 ChatGPT has been around for a while now. There is even a module built on it already. Checkout the 3rd party modules list, hamburger menu on top. Not sure if it still works but it is there.