binary-husky commited on
Commit
16f7a52
1 Parent(s): 7cad5fa

Update 高级功能函数模板.py

Browse files
crazy_functions/高级功能函数模板.py CHANGED
@@ -6,7 +6,7 @@ def 高阶功能模板函数(txt, llm_kwargs, plugin_kwargs, chatbot, history, s
6
  """
7
  txt 输入栏用户输入的文本,例如需要翻译的一段话,再例如一个包含了待处理文件的路径
8
  llm_kwargs gpt模型参数,如温度和top_p等,一般原样传递下去就行
9
- plugin_kwargs 插件模型的参数,如温度和top_p等,一般原样传递下去就行
10
  chatbot 聊天显示框的句柄,用于显示给用户
11
  history 聊天历史,前情提要
12
  system_prompt 给gpt的静默提醒
@@ -26,4 +26,4 @@ def 高阶功能模板函数(txt, llm_kwargs, plugin_kwargs, chatbot, history, s
26
  )
27
  chatbot[-1] = (i_say, gpt_say)
28
  history.append(i_say);history.append(gpt_say)
29
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 # 界面更新
 
6
  """
7
  txt 输入栏用户输入的文本,例如需要翻译的一段话,再例如一个包含了待处理文件的路径
8
  llm_kwargs gpt模型参数,如温度和top_p等,一般原样传递下去就行
9
+ plugin_kwargs 插件模型的参数,暂时没有用武之地
10
  chatbot 聊天显示框的句柄,用于显示给用户
11
  history 聊天历史,前情提要
12
  system_prompt 给gpt的静默提醒
 
26
  )
27
  chatbot[-1] = (i_say, gpt_say)
28
  history.append(i_say);history.append(gpt_say)
29
+ yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 # 界面更新