Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu commited on
Commit ·
d2b0788
1
Parent(s): 7b24389
修复减少token的功能
Browse files- presets.py +2 -2
presets.py
CHANGED
|
@@ -31,7 +31,7 @@ pre code {
|
|
| 31 |
}
|
| 32 |
"""
|
| 33 |
|
| 34 |
-
summarize_prompt = "
|
| 35 |
MODELS = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-4","gpt-4-0314", "gpt-4-32k", "gpt-4-32k-0314"] # 可选的模型
|
| 36 |
|
| 37 |
# 错误信息
|
|
@@ -43,7 +43,7 @@ proxy_error_prompt = "代理错误,无法获取对话。" # 代理错误
|
|
| 43 |
ssl_error_prompt = "SSL错误,无法获取对话。" # SSL 错误
|
| 44 |
no_apikey_msg = "API key长度不是51位,请检查是否输入正确。" # API key 长度不足 51 位
|
| 45 |
|
| 46 |
-
max_token_streaming =
|
| 47 |
timeout_streaming = 15 # 流式对话时的超时时间
|
| 48 |
max_token_all = 3500 # 非流式对话时的最大 token 数
|
| 49 |
timeout_all = 200 # 非流式对话时的超时时间
|
|
|
|
| 31 |
}
|
| 32 |
"""
|
| 33 |
|
| 34 |
+
summarize_prompt = "你是谁?我们刚才聊了什么?" # 总结对话时的 prompt
|
| 35 |
MODELS = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-4","gpt-4-0314", "gpt-4-32k", "gpt-4-32k-0314"] # 可选的模型
|
| 36 |
|
| 37 |
# 错误信息
|
|
|
|
| 43 |
ssl_error_prompt = "SSL错误,无法获取对话。" # SSL 错误
|
| 44 |
no_apikey_msg = "API key长度不是51位,请检查是否输入正确。" # API key 长度不足 51 位
|
| 45 |
|
| 46 |
+
max_token_streaming = 3500 # 流式对话时的最大 token 数
|
| 47 |
timeout_streaming = 15 # 流式对话时的超时时间
|
| 48 |
max_token_all = 3500 # 非流式对话时的最大 token 数
|
| 49 |
timeout_all = 200 # 非流式对话时的超时时间
|