46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
"""默认配置:后台管理平台可覆盖。
|
||
|
||
chat_ui: 对话界面元素开关
|
||
user_edit 用户消息编辑按钮
|
||
user_copy 用户消息复制按钮
|
||
user_time 用户消息时间显示
|
||
user_time_fmt 时间格式(HH:mm / MM-dd HH:mm / full)
|
||
ai_copy AI 回答复制按钮
|
||
ai_regenerate AI 回答重新生成按钮
|
||
ai_feedback AI 回答点赞/点踩按钮
|
||
ai_voice AI 回答语音播放按钮
|
||
ai_suggestions AI 回答推荐短语
|
||
voice_input 语音输入按钮
|
||
attachment 附件上传按钮
|
||
attachment_types 允许的附件类型: image / text
|
||
|
||
title_auto_gen: 首个回答后自动生成会话标题
|
||
suggestions: 每次回答后生成 1-3 条推荐短语
|
||
enabled
|
||
count (1-3)
|
||
model 建议生成模型
|
||
"""
|
||
DEFAULT_UI_CONFIG = {
|
||
"chat_ui": {
|
||
"user_edit": True,
|
||
"user_copy": True,
|
||
"user_time": True,
|
||
"user_time_fmt": "HH:mm",
|
||
"ai_copy": True,
|
||
"ai_regenerate": True,
|
||
"ai_feedback": True,
|
||
"ai_voice": True,
|
||
"ai_suggestions": True,
|
||
"voice_input": True,
|
||
"attachment": True,
|
||
"attachment_types": ["image", "text"],
|
||
},
|
||
"title_auto_gen": True,
|
||
"title_model": "deepseek-chat",
|
||
"suggestions": {
|
||
"enabled": True,
|
||
"count": 3,
|
||
"model": "deepseek-chat",
|
||
},
|
||
}
|