mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 21:57:14 +08:00
fix: use default max_token
This commit is contained in:
@@ -45,7 +45,7 @@ class ChatGPTBot(Bot):
|
|||||||
model="gpt-3.5-turbo", # 对话模型的名称
|
model="gpt-3.5-turbo", # 对话模型的名称
|
||||||
messages=query,
|
messages=query,
|
||||||
temperature=0.9, # 值在[0,1]之间,越大表示回复越具有不确定性
|
temperature=0.9, # 值在[0,1]之间,越大表示回复越具有不确定性
|
||||||
max_tokens=4096, # 回复最大的字符数
|
#max_tokens=4096, # 回复最大的字符数
|
||||||
top_p=1,
|
top_p=1,
|
||||||
frequency_penalty=0.0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
frequency_penalty=0.0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
||||||
presence_penalty=0.0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
presence_penalty=0.0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
||||||
|
|||||||
Reference in New Issue
Block a user