[Bug] Max Lengh (1280 characters including space) of Function Call Description

The Error Message I got:

openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘“…” is too long - ‘functions.2.description’’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}

We are using function call but when we maintain the functions, we found there seems to be a max lenght limitation for every function’s description.

It doesn’t make sence, we don’t want to put everything in the system prompt which is not good for maintaining.

1 Like

I test it a bit and found the length limitation is around 1280 characters include space. Why there is such a limitation?

1 Like