gpt-35-turbo returns error messages "TypeError: 'NoneType' object is not callable"
Hello team,
We are using gpt-35-turbo model in Azure open ai services. We found out that it sometimes returns things that are not completions, but seems like error messsages:
"TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'"
"TypeError: 'NoneType' object is not callable"
"TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'"
"SyntaxError: invalid syntax"
There are many kinds of errors, but it does not always reproduce. I think we just have about 1/10 change for getting error messages like this instead of normal compleitons.
Here is a prompt we used for test:
"messages": [
{
"role": "system",
"content": "You are a copilot who continues to write the user's Python code from the last line. Say no other words and don't repeat it.\nExample: def add(a, => b):\n return a + b"
},
{
"role": "user",
"content": "# this is function used to do mathematical calculations\\na"
}
]