Hello everyone, I’m trying to use the new function call:
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo-0613",
messages=[{"role": "user", "content": "write me an agenda of a 7 days local food trip to NYC. "}],
functions=[
{
'name': 'write_travel_agenda',
"description": "Writing agenda to disk",
"parameters": parameter_dict
}
],
function_call='{"name": "write_travel_agenda"}',
)
The parameters dict look like this:
{'definitions': {'Agenda': {'properties': {'afternoonAgenda': {'description': 'describe '
'afternoon '
'agenda',
'title': 'Afternoonagenda',
'type': 'string'},
'eveningAgenda': {'description': 'describe '
'dinner '
'agenda',
'title': 'Eveningagenda',
'type': 'string'},
'morningAgenda': {'description': 'describe '
'morning '
'agenda',
'title': 'Morningagenda',
'type': 'string'},
'title': {'description': 'which day',
'title': 'Title',
'type': 'string'}},
'required': ['title',
'morningAgenda',
'afternoonAgenda',
'eveningAgenda'],
'title': 'Agenda',
'type': 'object'}},
'properties': {'agendas': {'description': 'agenda details',
'items': {'$ref': '#/definitions/Agenda'},
'title': 'Agendas',
'type': 'array'}},
'required': ['agendas'],
'type': 'object'}
I’m keep getting ‘$.function_call’ is invalid. from the server. What does that mean?