Pārlūkot izejas kodu

docs: temporarily removed optional config

master
zhayujie pirms 1 gada
vecāks
revīzija
cd5f58ff2c
2 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. +1
    -1
      bot/chatgpt/chat_gpt_bot.py
  2. +0
    -2
      config-template.json

+ 1
- 1
bot/chatgpt/chat_gpt_bot.py Parādīt failu

@@ -45,7 +45,7 @@ class ChatGPTBot(Bot):
model="gpt-3.5-turbo", # 对话模型的名称
messages=query,
temperature=0.9, # 值在[0,1]之间,越大表示回复越具有不确定性
max_tokens=1200, # 回复最大的字符数
max_tokens=4096, # 回复最大的字符数
top_p=1,
frequency_penalty=0.0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
presence_penalty=0.0, # [-2,2]之间,该值越大则更倾向于产生不同的内容


+ 0
- 2
config-template.json Parādīt failu

@@ -1,7 +1,5 @@
{
"open_ai_api_key": "YOUR API KEY",
"proxy": "http://127.0.0.1:10801",
"wechaty_puppet_service_token": "WECHATY PUPPET SERVICE TOKEN",
"single_chat_prefix": ["bot", "@bot"],
"single_chat_reply_prefix": "[bot] ",
"group_chat_prefix": ["@bot"],


Notiek ielāde…
Atcelt
Saglabāt