Intelligent Device #1546
floitsch
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a package (device_bot) that uses OpenAI to make devices more intelligent.
As a user one simply provides a set of function that the device supports, together with a small description. When sending instructions to the device (typically with a chat app), the device then takes these instructions and asks OpenAI to compile it down to a simplified C-like language. It gives OpenAI the descriptions of the functions that are specific to the device.
It then takes the response and runs the program. For that it parses the output first, and then uses a simple interpreter to run it.
Here is a video of that in action:
The code for this application is here: https://github.com/floitsch/ai-projects/tree/main/device_bot
Beta Was this translation helpful? Give feedback.
All reactions