I want to limit the response of openai api. Currently in revChatGPT, the max_tokens was calculated automatically.
Commit messages generated by chatgpt:
feat(V3.py): add support for max_tokens parameter in Chatbot class to limit the number of tokens in a response
refactor(V3.py): use min function to choose the smaller value between the current max_tokens and the new max_tokens parameter to ensure the response does not exceed the desired length
I want to limit the response of openai api. Currently in revChatGPT, the max_tokens was calculated automatically.
Commit messages generated by chatgpt: feat(V3.py): add support for max_tokens parameter in Chatbot class to limit the number of tokens in a response refactor(V3.py): use min function to choose the smaller value between the current max_tokens and the new max_tokens parameter to ensure the response does not exceed the desired length