I am getting strange responses when using function calls, it is random, and only occurring 1 in 5 times with the same prompts.
Below is the response:
{
"id": "chatcmpl-",
"model": "gpt-4o-2024-05-13",
"usage": {
"totalTokens": 7030,
"promptTokens": 2934,
"completionTokens": 4096
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\n\n\n\n\n \n \n\n\n \n\n\n\n\n\n\n\n \n\n \n\n\n\n\n \n\n\n \n\n\n\n\n\n\n \n \n\n\n\n\n\n\n \n\n\n \n\n\n\n \n\n\n \n\n\n\n\n \n\n \n\n\n\n\n \n\n\n \n\n\n\n\n\n \n\n\n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n\n \n\n\n \n\n \n\n\n\n\n \n\n\n \n\n\n\n\n\n\n\n \n\n\n \n\n\n \n\n\n\n \n\n \n\n\n\n \n\n\n\n \n\n\n \n\n\n\n\n\n \n \n\n\n\n \n \n\n\n \n\n\n\n\n \n \n\n\n\n\n\n \n \n\n\n\n\n \n\n\n \n\n\n\n \n \n\n \n\n\n\n\n \n \n\n\n\n\n\n\n\n \n \n\n\n\n \n \n\n\n\n\n\n \n \n\n\n\n \n \n \n \n\n\n\n\n\n \n \n\n \n \n \n \n \n\n\n\n\n \n \n \n \n \n\n\n\n\n \n\n\n\n \n \n \n\n\n \n \n\n \n \n \n\n\n\n\n\n \n \n\n\n\n\n\n\n\n \n \n\n\n\n \n\n\n \n\n \n \n \n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n\n \n\n\n \n \n \n \n \n \n \n\n \n \n \n\n\n\n\n \n \n \n \n\n \n \n \n \n \n\n\n \n \n \n\n \n\n\n \n \n \n\n\n \n\n\n \n \n \n\n\n \n \n \n\n\n\n\n \n\n\n \n \n \n \n \n \n \n \n\n\n\n \n\n\n \n \n\n\n\n\n\n\n \n \n \n \n \n",
"toolCalls": [],
"functionCall": null
},
"finishReason": "length"
}
],
"created": 1718361253,
"systemFingerprint": "fp_319be4768e"
}