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' gpt_background_color = '#ffffff' # 模型初始设置 initial_content_history = [{"role": 'system', "content": '当你的回复中涉及代码块时,请在markdown语法中标明语言类型。如果不涉及,请忽略这句话。'}] initial_content_all = {"history": initial_content_history, "paras": { "model": "gpt-3.5-turbo", "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 css_code = """ """ js_code = """ """