Guys I have 2 questions:
In a simple way how do I trigger a Python function via Openai, example:
I write to openai "Turn off the lights", and it triggers a python function and chatgpt returns a response, like: "Ok I turned off the lights"
The second question is how do I make it so that it triggers a function that returns a value and chatgpt processes it, example: I write to chatgpt what the weather was like, call the function that returns the value "20 degrees" and chat gpt responds with today it's 20 degrees .
I hope I was clear, thanks!