from set_context import set_context # 用户名 user_name = 'User' gpt_name = 'ChatGPT' # 头像(svg格式) 来自 https://www.dicebear.com/playground?style=identicon user_svg = """ "Identicon" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comIdenticonFlorian Körnerhttps://dicebear.com """ gpt_svg = """ """ # 内容背景 user_background_color = '#ffffff' gpt_background_color = '#fafbfc' # 模型初始设置 initial_content_history = [{"role": 'system', "content": '当你的回复中涉及代码块时,请在markdown语法中标明语言类型。如果不涉及,请忽略这句话。'}] initial_content_all = {"history": initial_content_history, "paras": { "temperature": 1.0, "top_p": 1.0, "presence_penalty": 0.0, "frequency_penalty": 0.0, }, "contexts": { 'context_select': '不设置', 'context_input': '', 'context_level': 4 }} # 上下文 set_context_all = {"不设置": ""} set_context_all.update(set_context) # 自定义css、js # 第一个是减少侧边栏顶部空白,不同版本的st存在区别(此处适用1.19.0) css_code = """ """ js_code = """ """