Fixed: Assistants API seems to have new limit of 20000 character tool output

Running assistants API this morning and got this error that we’ve never seen before:

Error code: 400 - {'error': {'message': '1 validation error for Request\nbody -> tool_outputs -> 0 -> output\n  ensure this value has at most 20000 characters (type=value_error.any_str.max_length; limit_value=20000)', 'type': 'invalid_request_error', 'param': None, 'code': None}}

Our entire service is down with this error.
We haven’t received any notification from OpenAI about this change.

EDIT: it’s now fixed.

2 Likes

Did the issue just resolve itself, if not what did you do to fix it so that other users experiencing the same issue can benefit from your solution?

It’s resolved by the OpenAI team.

1 Like