fix #I6YOA1 [app_chatgpt] 发送prompt长度的限制,在robot增加 max_send_char参数

This commit is contained in:
Chill
2023-05-15 16:20:13 +08:00
parent 16a2ddcd58
commit 2d8f4baf76
3 changed files with 20 additions and 4 deletions

View File

@@ -102,6 +102,8 @@ GPT-3 A set of models that can understand and generate natural language
sensitive_words = fields.Text('Sensitive Words Plus', help='Sensitive word filtering. Separate keywords with a carriage return.')
is_filtering = fields.Boolean('Filter Sensitive Words', default=False, help='Use base Filter in dir models/lib/sensi_words.txt')
max_send_char = fields.Integer('Max Send Char', help='Max Send Prompt Length', default=8000)
def action_disconnect(self):
requests.delete('https://chatgpt.com/v1/disconnect')