Skip to content

Commit

Permalink
补充OpenAI模型配置项的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jun 20, 2024
1 parent 6496f15 commit 315498a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -3722,7 +3722,7 @@ def save_config():
with_input=True,
new_value_mode='add-unique',
clearable=True
)
).tooltip("如果你没有在此找到你用的模型名,你可以删除此配置项的内容,然后手动输入,最后一定要回车!确认!")
input_chatgpt_temperature = ui.input(label='温度', placeholder='控制生成文本的随机性。较高的温度值会使生成的文本更随机和多样化,而较低的温度值会使生成的文本更加确定和一致。', value=config.get("chatgpt", "temperature")).style("width:200px;")
input_chatgpt_max_tokens = ui.input(label='最大token数', placeholder='限制生成回答的最大长度。', value=config.get("chatgpt", "max_tokens")).style("width:200px;")
input_chatgpt_top_p = ui.input(label='top_p', placeholder='Nucleus采样。这个参数控制模型从累积概率大于一定阈值的令牌中进行采样。较高的值会产生更多的多样性,较低的值会产生更少但更确定的回答。', value=config.get("chatgpt", "top_p")).style("width:200px;")
Expand Down

0 comments on commit 315498a

Please sign in to comment.