Hi @andersskog @_j
I got the same error when put a long description.
I tested it a bit–try to make description a bit longer and shorter. Then find the limitation is 1027 characters including space. You can try a bit. If the description is longer than 1027 characters, you can repro this error.
Here is the structure of my request:
Blockquote
{
“max_tokens”: 10000,
“temperature”: 0.0,
“presence_penalty”: 0.0,
“frequency_penalty”: 0.0,
“messages”: [
{
“role”: “system”,
“content”: “xxxxxxxxxxxxxxxx”
},
{
“role”: “user”,
“content”: “xxxxxxxxxxxxxxxx”
}
],
“functions”: [
{
// this is a short description function
“name”: “function1”,
“description”: “xxxxxxxxxxx”,
“parameters”: {
“type”: “object”,
“properties”: {
“source_input”: {
“type”: “string”,
“description”: “xxxx”
}
}
}
},
{
// this is the function with the long description
“name”: “function2”,
“description”: “xxxxxxLONG-DESCRIPTIONxxxxxxx”,
“parameters”: {
“type”: “object”,
“properties”: {
“results”: {
“type”: “array”,
“description”: “xxxxxx”,
…
…
…
},
“required”: [
“xxx”
]
}
}
},
“required”: [
“xxx”
]
}
}
],
“function_call”: “auto”
}