The following POST request breaks if you include the stop sequence. If you don't include it then it works just fine:
{
"model": "gpt-3.5-turbo-0613",
"messages": [{"role":"system","content":"you are an assistant, complete the chat."},{"role":"user","content":"Hey are you a robot?"}],
"max_tokens": 300,
"stop": ".",
"functions": [
{
"name": "being",
"description": "Gets who or what someone is",
"parameters": {
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Who is asking?"
},
"target": {
"type": "string",
"description": "who is being asked?"
}
},
"required": [
"source",
"target"
]
}
}
]
}
It seems function calling does not work with stop sequences. Anyone else agree?