Hey @ankur1,
I’ve followed your video tutorial step by step exactly as you did just to get it to work but I don’t get any response.
The prompt I’m giving is: list exercise for chest.
Here is my JSON:
{
“model”:“gpt-4”,
“messages”:[
{
“role”:“system”,
“content”:""
},
{
“role”:“user”,
“content”:"<User_Prompt>"
}
],
“functions”:[
{
“name”:“exercise_list”,
“description”:“List of exercise.”,
“parameters”:{
“type”:“object”,
“properties”:{
“exercise_list”:{
“type”:“array”,
“description”:“list of exercise for chest.”,
“items”:{
“type”:“object”,
“Properties”:{
“name_of_exercise”:{
“type”:“string”,
“description”:“Exercise name”
},
“number_of_sets”:{
“type”:“integer”,
“description”:“Number of sets recomandation.”
}
}
}
}
},
“required”:[
“name_of_exercise”, “number_of_sets”
]
}
}
]
}
The response I’m getting when I initialise the call:
{
“id”: “chatcmpl-7qOU7HyEZ1ENlOi5f2Rphgr3X6G0W”,
“object”: “chat.completion”,
“created”: 1692721531,
“model”: “gpt-4-0613”,
“choices”: [
{
“index”: 0,
“message”: {
“role”: “assistant”,
“content”: null,
“function_call”: {
“name”: “exercise_list”,
“arguments”: “{}”
}
},
“finish_reason”: “function_call”
}
],
“usage”: {
“prompt_tokens”: 46,
“completion_tokens”: 8,
“total_tokens”: 54
}
}
The call its initialised but there are no arguments. Any idea of why is that?
Thank you for your video. Is awesome BTW.