Hello, a question on using an agent and functions. We just saw this exception
Error code: 400 - {'error': {'message': "This model's maximum context length is 8192 tokens. However, you requested 8241 tokens (3194 in the messages, 1047 in the functions, and 4000 in the completion). Please reduce the length of the messages, functions, or completion.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}
So, what are 1047 tokens in the functions, and how can we calculate ahead and strict, say, the ouput, to avoid such an error? Thanks!