Im trying to get functions working with the API. This is just a test and rough prototyping currently. It will do one function but not the other one, which is a simple requesting the current time. I get the below responses.
Generated response: As an AI, I’'‘m unable to provide real-time information such as the current time. Please check the device you’''re using for the most accurate time.
I know it dose not know the time but i thought the function would go above that. Any help would be good.
First Prompt
{
"model": "gpt-4",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "give me the current time"}
],
"temperature": 0.2,
"tools": [{
"type": "function",
"function": {
"name":"getCurrentTime",
"description": "this will get the time"
}
},{
"type": "function",
"function": {
"name":"getRandomWords",
"description": "this will get a list of predefined random words"
}
}
]
}