Closed jaghachi closed 2 months ago
i think it was my prompt having symbols such as quotes or colons and such which messed with it. i removed those and it went through to the end! thanks!
I lied. the error is happening with the new model "GPT_4O". I thought the error went away because it ran fine with the default model, 3.5
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid 'max_tokens': integer below minimum value. Expected a value >= 1, but got -15335 instead.", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'integer_below_min_value'}}
Chatdev runs for a while then, I'm not sure why its giving a negative number of tokens to openai.