diff --git a/config.py b/config.py
index 97ee20027..a75e3a202 100644
--- a/config.py
+++ b/config.py
@@ -45,7 +45,7 @@
# "qwen-turbo", "qwen-plus", "qwen-max", "qwen-local",
# "moonshot-v1-128k", "moonshot-v1-32k", "moonshot-v1-8k",
# "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613", "gpt-3.5-turbo-0125"
-# "claude-3-sonnet-20240229","claude-3-opus-20240229", "claude-2.1", "claude-instant-1.2",
+# "claude-3-haiku-20240307","claude-3-sonnet-20240229","claude-3-opus-20240229", "claude-2.1", "claude-instant-1.2",
# "moss", "llama2", "chatglm_onnx", "internlm", "jittorllms_pangualpha", "jittorllms_llama",
# "yi-34b-chat-0205", "yi-34b-chat-200k"
# ]
@@ -158,7 +158,8 @@
AUTHENTICATION = []
-# 如果需要在二级路径下运行(常规情况下,不要修改!!)(需要配合修改main.py才能生效!)
+# 如果需要在二级路径下运行(常规情况下,不要修改!!)
+# (举例 CUSTOM_PATH = "/gpt_academic",可以让软件运行在 http://ip:port/gpt_academic/ 下。)
CUSTOM_PATH = "/"
@@ -378,4 +379,4 @@
└── MATHPIX_APPKEY
-"""
\ No newline at end of file
+"""
diff --git a/docs/translate_english.json b/docs/translate_english.json
index c7e0e66d7..815262fdf 100644
--- a/docs/translate_english.json
+++ b/docs/translate_english.json
@@ -1392,7 +1392,7 @@
"1. 临时解决方案": "1. Temporary Solution",
"直接在输入区键入api_key": "Enter the api_key Directly in the Input Area",
"然后回车提交": "Submit after pressing Enter",
- "2. 长效解决方案": "Long-term solution",
+ "2. 长效解决方案": "2. Long-term solution",
"在config.py中配置": "Configure in config.py",
"等待响应": "Waiting for response",
"api-key不满足要求": "API key does not meet requirements",
@@ -2184,7 +2184,8 @@
"接驳VoidTerminal": "Connect to VoidTerminal",
"**很好": "**Very good",
"对话|编程": "Conversation&ImageGenerating|Programming",
- "对话|编程|学术": "Conversation&ImageGenerating|Programming|Academic", "4. 建议使用 GPT3.5 或更强的模型": "4. It is recommended to use GPT3.5 or a stronger model",
+ "对话|编程|学术": "Conversation|Programming|Academic",
+ "4. 建议使用 GPT3.5 或更强的模型": "4. It is recommended to use GPT3.5 or a stronger model",
"「请调用插件翻译PDF论文": "Please call the plugin to translate the PDF paper",
"3. 如果您使用「调用插件xxx」、「修改配置xxx」、「请问」等关键词": "3. If you use keywords such as 'call plugin xxx', 'modify configuration xxx', 'please', etc.",
"以下是一篇学术论文的基本信息": "The following is the basic information of an academic paper",
@@ -3006,5 +3007,746 @@
"GPT-Academic对话存档": "TranslatedText",
"Arxiv论文精细翻译": "TranslatedText",
"from crazy_functions.AdvancedFunctionTemplate import 测试图表渲染": "from crazy_functions.AdvancedFunctionTemplate import test_chart_rendering",
- "测试图表渲染": "test_chart_rendering"
-}
+ "测试图表渲染": "test_chart_rendering",
+ "请使用「LatexEnglishCorrection+高亮修正位置": "Please use 'LatexEnglishCorrection+highlight corrected positions",
+ "输出代码片段中!": "Output code snippet!",
+ "使用多种方式尝试切分文本": "Attempt to split the text in various ways",
+ "你是一个作家": "You are a writer",
+ "如果无法从中得到答案": "If unable to get an answer from it",
+ "无法读取以下数据": "Unable to read the following data",
+ "不允许直接报错": "Direct error reporting is not allowed",
+ "您也可以使用插件参数指定绘制的图表类型": "You can also specify the type of chart to be drawn using plugin parameters",
+ "不要包含太多情节": "Do not include too many plots",
+ "翻译为中文后重新编译为PDF": "Recompile into PDF after translating into Chinese",
+ "采样温度": "Sampling temperature",
+ "直接修改config.py": "Directly modify config.py",
+ "处理文件": "Handle file",
+ "判断返回是否正确": "Determine if the return is correct",
+ "gemini 不允许对话轮次为偶数": "Gemini does not allow the number of dialogue rounds to be even",
+ "8 象限提示图": "8-quadrant prompt diagram",
+ "基于上下文的prompt模版": "Context-based prompt template",
+ "^开始": "^Start",
+ "输出文本的最大tokens限制": "Maximum tokens limit for output text",
+ "在这个例子中": "In this example",
+ "以及处理PDF文件的示例代码": "And example code for handling PDF files",
+ "更新cookie": "Update cookie",
+ "获取公共缩进": "Get public indentation",
+ "请你给出围绕“{subject}”的序列图": "Please provide a sequence diagram around '{subject}'",
+ "请确保使用小写的模型名称": "Please ensure the use of lowercase model names",
+ "出现人物时": "When characters appear",
+ "azure模型对齐支持 -=-=-=-=-=-=-": "Azure model alignment support -=-=-=-=-=-=-",
+ "请一分钟后重试": "Please try again in one minute",
+ "解析GEMINI消息出错": "Error parsing GEMINI message",
+ "选择提示词": "Select prompt words",
+ "取值范围是": "The value range is",
+ "它会在": "It will be",
+ "加载文件": "Load file",
+ "是预定义按钮": "Is a predefined button",
+ "消息": "Message",
+ "默认搜索5条结果": "Default search for 5 results",
+ "第 2 部分": "Part 2",
+ "我们采样一个特殊的手段": "We sample a special method",
+ "后端开发": "Backend development",
+ "接下来提取md中的一级/二级标题作为摘要": "Next, extract the first/second-level headings in md as summaries",
+ "一个年轻人穿过天安门广场向纪念堂走去": "A young person walks through Tiananmen Square towards the Memorial Hall",
+ "将会使用这些摘要绘制图表": "Will use these summaries to draw charts",
+ "8-象限提示图": "8-quadrant prompt diagram",
+ "首先": "First",
+ "设计了此接口": "Designed this interface",
+ "本地模型": "Local model",
+ "所有图像仅在最后一个问题中提供": "All images are provided only in the last question",
+ "如连续3次判断失败将会使用流程图进行绘制": "If there are 3 consecutive failures, a flowchart will be used to draw",
+ "为了更灵活地接入one-api多模型管理界面": "To access the one-api multi-model management interface more flexibly",
+ "UI设计": "UI design",
+ "不允许在答案中添加编造成分": "Fabrication is not allowed in the answer",
+ "尽可能地": "As much as possible",
+ "先在前端快速清除chatbot&status": "First, quickly clear chatbot & status in the frontend",
+ "You exceeded your current quota. Cohere以账户额度不足为由": "You exceeded your current quota. Cohere due to insufficient account quota",
+ "合并所有的标题": "Merge all headings",
+ "跳过下载": "Skip download",
+ "中生产图表": "Production Chart",
+ "如输入区内容不是文件则直接返回输入区内容": "Return the content of the input area directly if it is not a file",
+ "用温度取样的另一种方法": "Another method of temperature sampling",
+ "不需要解释原因": "No need to explain the reason",
+ "一场延续了两万年的星际战争已接近尾声": "An interstellar war that has lasted for 20,000 years is drawing to a close",
+ "依次处理文件": "Process files in order",
+ "第一幕的字数少于300字": "The first act has fewer than 300 characters",
+ "已成功加载": "Successfully loaded",
+ "还是web渲染": "Web rendering",
+ "解析分辨率": "Resolution parsing",
+ "如果剩余文本的token数大于限制": "If the number of remaining text tokens exceeds the limit",
+ "你可以修改整个句子的顺序以确保翻译后的段落符合中文的语言习惯": "You can change the order of the whole sentence to ensure that the translated paragraph is in line with Chinese language habits",
+ "并同时充分考虑中文的语法、清晰、简洁和整体可读性": "And at the same time, fully consider Chinese grammar, clarity, conciseness, and overall readability",
+ "否则返回": "Otherwise return",
+ "一个特殊标记": "A special mark",
+ "4. 后续剧情发展4": "4. Plot development",
+ "恢复默认": "Restore default",
+ "转义点号": "Escape period",
+ "检查DASHSCOPE_API_KEY": "Check DASHSCOPE_API_KEY",
+ "阿里灵积云API_KEY": "Aliyun API_KEY",
+ "文件是否存在": "Check if the file exists",
+ "您的选择是": "Your choice is",
+ "处理用户对话": "Handle user dialogue",
+ "即": "That is",
+ "将会由对话模型首先判断适合的图表类型": "The dialogue model will first determine the appropriate chart type",
+ "以查看所有的配置信息": "To view all configuration information",
+ "用于初始化包的属性和导入模块": "For initializing package properties and importing modules",
+ "to_markdown_tabs 文件list 转换为 md tab": "to_markdown_tabs Convert file list to MD tab",
+ "更换模型": "Replace Model",
+ "从以下文本中提取摘要": "Extract Summary from the Following Text",
+ "表示捕获任意长度的文本": "Indicates Capturing Text of Arbitrary Length",
+ "可能是一个模块的初始化文件": "May Be an Initialization File for a Module",
+ "处理提问与输出": "Handle Questions and Outputs",
+ "需要的再做些简单调整即可": "Some Simple Adjustments Needed",
+ "所以这个没有用": "So This Is Not Useful",
+ "请配置 DASHSCOPE_API_KEY": "Please Configure DASHSCOPE_API_KEY",
+ "不是预定义按钮": "Not a Predefined Button",
+ "让读者能够感受到你的故事世界": "Let Readers Feel Your Story World",
+ "开始整理headers与message": "Start Organizing Headers and Messages",
+ "兼容最新的智谱Ai": "Compatible with the Latest ZhiPu AI",
+ "对于某些PDF会有第一个段落就以小写字母开头": "For Some PDFs, the First Paragraph May Start with a Lowercase Letter",
+ "问题是": "The Issue Is",
+ "也就是说它会匹配尽可能少的字符": "That Is, It Will Match the Least Amount of Characters Possible",
+ "未能成功加载": "Failed to Load Successfully",
+ "接入通义千问在线大模型 https": "Access TongYi QianWen Online Large Model HTTPS",
+ "用不太优雅的方式处理一个core_functional.py中出现的mermaid渲染特例": "Handle a Mermaid Rendering Special Case in core_functional.py in an Ugly Way",
+ "您也可以选择给出其他故事走向": "You Can Also Choose to Provide Alternative Storylines",
+ "改善非markdown输入的显示效果": "Improve Display Effects for Non-Markdown Input",
+ "在二十二世纪编年史中": "In the Chronicle of the 22nd Century",
+ "docs 为Document列表": "docs Are a List of Documents",
+ "互动写故事": "Interactive Story Writing",
+ "4 饼图": "Pie Chart",
+ "正在生成插图中": "Generating Illustration",
+ "路径不存在": "Path Does Not Exist",
+ "PDF翻译中文": "PDF Translation to Chinese",
+ "进行简短的环境描写": "Conduct a Brief Environmental Description",
+ "学术英中互译": "Academic English-Chinese Translation",
+ "且少于2个段落": "And less than 2 paragraphs",
+ "html_view_blank 超链接": "HTML View Blank Hyperlink",
+ "处理 history": "Handle History",
+ "非Cohere官方接口返回了错误": "Non-Cohere Official Interface Returned an Error",
+ "缺失 MATHPIX_APPID 和 MATHPIX_APPKEY": "Missing MATHPIX_APPID and MATHPIX_APPKEY",
+ "搜索知识库内容条数": "Search Knowledge Base Content Count",
+ "返回数据": "Return Data",
+ "没有相关文件": "No Relevant Files",
+ "知识库路径": "Knowledge Base Path",
+ "质量与风格默认值": "Quality and Style Defaults",
+ "包含了用于文本切分的函数": "Contains Functions for Text Segmentation",
+ "请你给出围绕“{subject}”的逻辑关系图": "Please Provide a Logic Diagram Surrounding '{subject}'",
+ "官方Pro服务器🧪": "Official Pro Server",
+ "不支持同时处理多个pdf文件": "Does Not Support Processing Multiple PDF Files Simultaneously",
+ "查询5天历史事件": "Query 5-Day Historical Events",
+ "你是经验丰富的翻译": "You Are an Experienced Translator",
+ "html输入": "HTML Input",
+ "输入文件不存在": "Input File Does Not Exist",
+ "很多人生来就会莫名其妙地迷上一样东西": "Many People Are Born with an Unexplained Attraction to Something",
+ "默认值为 0.7": "Default Value is 0.7",
+ "值越大": "The Larger the Value",
+ "以下文件未能成功加载": "The Following Files Failed to Load",
+ "在线模型": "Online Model",
+ "切割输入": "Cut Input",
+ "修改docker-compose.yml等价于修改容器内部的环境变量": "Modifying docker-compose.yml is Equivalent to Modifying the Internal Environment Variables of the Container",
+ "以换行符分割": "Split by Line Break",
+ "修复中文乱码的问题": "Fix Chinese Character Encoding Issues",
+ "zhipuai 是glm-4的别名": "zhipuai is an alias for glm-4",
+ "保证其在允许范围内": "Ensure it is within the permissible range",
+ "段尾如果有多余的\\n就去掉它": "Remove any extra \\n at the end of the paragraph",
+ "是否流式输出": "Whether to stream output",
+ "1-流程图": "1-Flowchart",
+ "学术语料润色": "Academic text polishing",
+ "已经超过了模型的最大上下文或是模型格式错误": "Has exceeded the model's maximum context or there is a model format error",
+ "英文省略号": "English ellipsis",
+ "登录成功": "Login successful",
+ "随便切一下吧": "Just cut it randomly",
+ "PDF转换为tex项目失败": "PDF conversion to TeX project failed",
+ "的 max_token 配置不是整数": "The max_token configuration is not an integer",
+ "根据当前聊天历史或指定的路径文件": "According to the current chat history or specified path file",
+ "你必须利用以下文档中包含的信息回答这个问题": "You must use the information contained in the following document to answer this question",
+ "对话、日志记录": "Dialogue, logging",
+ "内容至知识库": "Content to knowledge base",
+ "在银河系的中心": "At the center of the Milky Way",
+ "检查PDF是否被重复上传": "Check if the PDF has been uploaded multiple times",
+ "取最后 max_prompt_tokens 个 token 输入模型": "Take the last max_prompt_tokens tokens as input to the model",
+ "请输入图类型对应的数字": "Please enter the corresponding number for the graph type",
+ "插件主程序3 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=": "Plugin main program 3 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=",
+ "正在tex项目将翻译为中文": "The TeX project is being translated into Chinese",
+ "适配润色区域": "Adapter polishing area",
+ "首先你从历史记录中提取摘要": "First, you extract an abstract from the history",
+ "讯飞星火认知大模型 -=-=-=-=-=-=-": "iFLYTEK Spark Cognitive Model -=-=-=-=-=-=-=-=-=-",
+ "包含了用于构建和管理向量数据库的函数和类包含了用于构建和管理向量数据库的函数和类包含了用于构建和管理向量数据库的函数和类": "Contains functions and classes for building and managing vector databases",
+ "另外": "Additionally",
+ "内部调优参数": "Internal tuning parameters",
+ "输出格式例如": "Example of Output Format",
+ "当回复图像时": "When Responding with an Image",
+ "越权访问!": "Unauthorized Access!",
+ "如果给出的 prompt 的 token 长度超过此限制": "If the Given Prompt's Token Length Exceeds This Limit",
+ "因此你每次写的故事段落应少于300字": "Therefore, Each Story Paragraph You Write Should Be Less Than 300 Words",
+ "尽量短": "As Concise as Possible",
+ "中文提示词就不显示了": "Chinese Keywords Will Not Be Displayed",
+ "请在前文的基础上": "Please Based on the Previous Text",
+ "20张": "20 Sheets",
+ "文件内容优先": "File Content Takes Priority",
+ "状态图": "State Diagram",
+ "开始查找合适切分点的偏移": "Start Looking for the Offset of an Appropriate Split Point",
+ "已知信息": "Known Information",
+ "文心一言大模型": "Wenxin Yanyan Large Model",
+ "传递进来一些奇怪的东西": "Passing in Some Weird Things",
+ "很多规则中会考虑分号": "Many Rules Consider the Semicolon",
+ "请配置YUNQUE_SECRET_KEY": "Please Configure YUNQUE_SECRET_KEY",
+ "6-状态图": "6-State Diagram",
+ "输出文本的最小tokens限制": "Minimum Tokens Limit for Output Text",
+ "服务节点": "Service Node",
+ "云雀大模型": "Lark Large Model",
+ "请配置 GEMINI_API_KEY": "Please Configure GEMINI_API_KEY",
+ "可以让软件运行在 http": "Can Run the Software Over HTTP",
+ "基于当前对话或文件GenerateMultipleMermaidCharts": "Generate Multiple Mermaid Charts Based on the Current Conversation or File",
+ "剧情收尾": "Plot Conclusion",
+ "请开始提问": "Please Begin Your Question",
+ "第一页内容/摘要": "First Page Content/Summary",
+ "无法判断则返回image/jpeg": "Return image/jpeg If Unable to Determine",
+ "仅需要输出单个不带任何标点符号的数字": "Single digit without any punctuation",
+ "以下是每类图表的PROMPT": "Here are the PROMPTS for each type of chart",
+ "状态码": "Status code",
+ "TopP值越大输出的tokens类型越丰富": "The larger the TopP value, the richer the types of output tokens",
+ "files_filter_handler 根据type过滤文件": "files_filter_handler filters files by type",
+ "比较每一页的内容是否相同": "Compare whether each page's content is the same",
+ "前往": "Go to",
+ "请输入剧情走向": "Please enter the plot direction",
+ "故事收尾": "Story ending",
+ "必须说明正在回复哪张图像": "Must specify which image is being replied to",
+ "历史文件继续上传": "Continue uploading historical files",
+ "因此禁用": "Therefore disabled",
+ "使用lru缓存": "Use LRU caching",
+ "该装饰器是大多数功能调用的入口": "This decorator is the entry point for most function calls",
+ "如果需要开启": "If needed to enable",
+ "使用 json 解析库进行处理": "Process using JSON parsing library",
+ "将PDF转换为Latex项目": "Convert PDF to LaTeX project",
+ "7-实体关系图": "7-Entity relationship diagram",
+ "根据用户的提示": "According to the user's prompt",
+ "当前用户的请求信息": "Current user's request information",
+ "配置关联关系说明": "Configuration relationship description",
+ "这段代码是使用Python编程语言中的re模块": "This code uses the re module in the Python programming language",
+ "link_mtime_to_md 文件增加本地时间参数": "link_mtime_to_md adds local time parameter to the file",
+ "从当前对话或路径": "From the current conversation or path",
+ "一起写故事": "Write a story together",
+ "前端开发": "Front-end development",
+ "开区间": "Open interval",
+ "如插件参数不正确则使用对话模型判断": "If the plugin parameters are incorrect, use the dialogue model for judgment",
+ "对字符串进行处理": "Process the string",
+ "简洁和专业的来回答用户的问题": "Answer user questions concisely and professionally",
+ "如输入区不是文件则将输入区内容加入历史记录": "If the input area is not a file, add the content of the input area to the history",
+ "编写一个小说的第一幕": "Write the first act of a novel",
+ "更具创造性;": "More creative;",
+ "用于解析和翻译PDF文件的功能和相关辅助函数用于解析和翻译PDF文件的功能和相关辅助函数用于解析和翻译PDF文件的功能和相关辅助函数": "Functions and related auxiliary functions for parsing and translating PDF files",
+ "月之暗面 -=-=-=-=-=-=-": "The Dark Side of the Moon -=-=-=-=-=-=-",
+ "2. 后续剧情发展2": "2. Subsequent plot development 2",
+ "请先提供文本的更正版本": "Please provide the corrected version of the text first",
+ "修改环境变量": "Modify environment variables",
+ "读取之前的自定义按钮": "Read previous custom buttons",
+ "如果为0": "If it is 0",
+ "函数用于去除多行字符串的缩进": "Function to remove indentation from multiline strings",
+ "请绘制有关“": "Please draw something about \"",
+ "给出4种不同的后续剧情发展方向": "Provide 4 different directions for subsequent plot development",
+ "新调优版本GPT-4🔥": "Newly tuned version GPT-4🔥",
+ "已弃用": "Deprecated",
+ "参考 https": "Refer to https",
+ "发现重复上传": "Duplicate upload detected",
+ "本项目的所有配置都集中在config.py中": "All configurations for this project are centralized in config.py",
+ "默认值为 0.95": "Default value is 0.95",
+ "请查阅": "Please refer to",
+ "此选项已废弃": "This option is deprecated",
+ "找到了.doc文件": ".doc file found",
+ "他们的目的地是南极": "Their destination is Antarctica",
+ "lang_reference这段文字是": "The lang_reference text is",
+ "正在尝试生成对比PDF": "Attempting to generate a comparative PDF",
+ "input_encode_handler 提取input中的文件": "input_encode_handler Extracts files from input",
+ "使用中文": "Use Chinese",
+ "一些垃圾第三方接口会出现这样的错误": "Some crappy third-party interfaces may produce such errors",
+ "例如将空格转换为 ": "For example, converting spaces to  ",
+ "请你给出围绕“{subject}”的类图": "Please provide a class diagram around '{subject}'",
+ "是插件的内部参数": "Is an internal parameter of the plugin",
+ "网络波动时可选其他": "Alternative options when network fluctuates",
+ "非Cohere官方接口的出现这样的报错": "Such errors occur in non-Cohere official interfaces",
+ "是前缀": "Is a prefix",
+ "默认 None": "Default None",
+ "如果几天后能顺利到达那里": "If we can smoothly arrive there in a few days",
+ "输出1": "Output 1",
+ "3-类图": "3-Class Diagram",
+ "如需绘制思维导图请使用参数调用": "Please use parameters to call if you need to draw a mind map",
+ "正在将PDF转换为tex项目": "Converting PDF to TeX project",
+ "列出10个经典名著": "List 10 classic masterpieces",
+ "? 在这里用作非贪婪匹配": "? Used here as a non-greedy match",
+ "左上角更换模型菜单中可切换openai": "Switch to OpenAI in the model change menu in the top left corner",
+ "原样返回": "Return as is",
+ "请配置 MATHPIX_APPID 和 MATHPIX_APPKEY": "Please configure MATHPIX_APPID and MATHPIX_APPKEY",
+ "概括上述段落的内容以及内在逻辑关系": "Summarize the content of the above paragraph and its inherent logical relationship",
+ "cookie相关工具函数": "Cookie-related utility functions",
+ "请你给出围绕“{subject}”的饼图": "Please provide a pie chart around '{subject}'",
+ "原型设计": "Prototype design",
+ "必须为正数": "Must be a positive number",
+ "又一阵剧痛从肝部袭来": "Another wave of severe pain strikes from the liver",
+ "智谱AI": "Zhipu AI",
+ "基础功能区按钮的附加功能": "Additional functions of the basic functional area buttons",
+ "one-api 对齐支持 -=-=-=-=-=-=-": "one-api alignment support -=-=-=-=-=-=-",
+ "5 甘特图": "5 Gantt chart",
+ "用于初始化包的属性和导入模块是一个包的初始化文件": "The file used for initializing package properties and importing modules is an initialization file for the package",
+ "创建并修改config_private.py": "Create and modify config_private.py",
+ "会使输出更随机": "Would make the output more random",
+ "已添加": "Added",
+ "估计一个切分点": "Estimate a split point",
+ "\\n\\n1. 临时解决方案": "\\n\\n1. Temporary solution",
+ "没有回答": "No answer",
+ "尝试重新翻译PDF": "Try to retranslate the PDF",
+ "被这个解码给耍了": "Fooled by this decoding",
+ "再在后端清除history": "Clear history on the backend again",
+ "根据情况选择flowchart LR": "Choose flowchart LR based on the situation",
+ "幻方-深度求索大模型 -=-=-=-=-=-=-": "Deep Seek Large Model -=-=-=-=-=-=-",
+ "即使它们在历史记录中被提及": "Even if they are mentioned in the history",
+ "此处需要进一步优化逻辑": "Further logic optimization is needed here",
+ "借鉴自同目录下的bridge_ChatGPT.py": "Derived from the bridge_ChatGPT.py in the same directory",
+ "正是这样": "That's exactly right",
+ "您也可以给出您心中的其他故事走向": "You can also provide other story directions in your mind",
+ "文本预处理": "Text preprocessing",
+ "请登录": "Please log in",
+ "请修改docker-compose": "Please modify docker-compose",
+ "运行一些异步任务": "Run some asynchronous tasks",
+ "5-甘特图": "5-Gantt chart",
+ "3 类图": "3-Class diagram",
+ "因为你接下来将会与用户互动续写下面的情节": "Because you will interact with the user to continue writing the plot below",
+ "避免把同一个文件添加多次": "Avoid adding the same file multiple times",
+ "可挑选精度": "Selectable precision",
+ "调皮一下": "Play a joke",
+ "并解析": "And parse",
+ "您可以在输入框中输入一些关键词": "You can enter some keywords in the input box",
+ "文件加载失败": "File loading failed",
+ "请你给出围绕“{subject}”的甘特图": "Please provide a Gantt chart around \"{subject}\"",
+ "上传PDF": "Upload PDF",
+ "请判断适合使用的流程图类型": "Please determine the suitable flowchart type",
+ "错误码": "Error code",
+ "非markdown输入": "Non-markdown input",
+ "所以只能通过提示词对第几张图片进行定位": "So can only locate the image by the prompt",
+ "避免下载到缓存文件": "Avoid downloading cached files",
+ "没有思维导图!!!测试发现模型始终会优先选择思维导图": "No mind map!!! Testing found that the model always prioritizes mind maps",
+ "请登录Cohere查看详情 https": "Please log in to Cohere for details https",
+ "检查历史上传的文件是否与新上传的文件相同": "Check if the previously uploaded file is the same as the newly uploaded file",
+ "加载主题相关的工具函数": "Load theme-related utility functions",
+ "图表类型由模型判断": "Chart type is determined by the model",
+ "⭐ 多线程方法": "Multi-threading method",
+ "获取 max_token 的值": "Get the value of max_token",
+ "空白的输入栏": "Blank input field",
+ "根据整理的摘要选择图表类型": "Select chart type based on the organized summary",
+ "返回 True": "Return True",
+ "这里为了区分中英文情景搞复杂了一点": "Here it's a bit complicated to distinguish between Chinese and English contexts",
+ "ZHIPUAI_MODEL 配置项选项已经弃用": "ZHIPUAI_MODEL configuration option is deprecated",
+ "但是这里我把它忽略不计": "But here I ignore it",
+ "非必要": "Not necessary",
+ "思维导图": "Mind map",
+ "插件」": "Plugin",
+ "重复文件路径": "Duplicate file path",
+ "之间不要存在空格": "No spaces between fields",
+ "破折号、英文双引号等同样忽略": "Ignore dashes, English quotes, etc.",
+ "填写 VOLC_ACCESSKEY": "Enter VOLC_ACCESSKEY",
+ "称为核取样": "Called nuclear sampling",
+ "Incorrect API key. 请确保API key有效": "Incorrect API key. Please ensure the API key is valid",
+ "如输入区内容为文件则清空历史记录": "If the input area content is a file, clear the history",
+ "并处理精度问题": "And handle precision issues",
+ "并给出修改的理由": "And provide reasons for the changes",
+ "至此已经超出了正常接口应该进入的范围": "This has exceeded the scope that a normal interface should enter",
+ "并已加载知识库": "And the knowledge base has been loaded",
+ "file_manifest_filter_html 根据type过滤文件": "file_manifest_filter_html filters files by type",
+ "participant B as 系统": "participant B as System",
+ "要留出足够的互动空间": "Leave enough interaction space",
+ "请你给出围绕“{subject}”的实体关系图": "Please provide an entity relationship diagram around '{subject}'",
+ "答案请使用中文": "Please answer in Chinese",
+ "输出会更加稳定或确定": "The output will be more stable or certain",
+ "是一个包的初始化文件": "Is an initialization file for a package",
+ "用于加载和分割文件中的文本的通用文件加载器用于加载和分割文件中的文本的通用文件加载器用于加载和分割文件中的文本的通用文件加载器": "A universal file loader for loading and splitting text in files",
+ "围绕我选定的剧情情节": "Around the plot I have chosen",
+ "Mathpix 拥有执行PDF的OCR功能": "Mathpix has OCR functionality for PDFs",
+ "是否允许暴力切分": "Whether to allow violent segmentation",
+ "清空 txt_tmp 对应的位置方便下次搜索": "Clear the location corresponding to txt_tmp for easier next search",
+ "编写小说的最后一幕": "Write the last scene of the novel",
+ "可能是一个模块的初始化文件根据位置和名称": "May be an initialization file for a module based on position and name",
+ "更新新的自定义按钮": "Update new custom button",
+ "把分句符\\n放到双引号后": "Put the sentence separator \\n after the double quotes",
+ "序列图": "Sequence diagram",
+ "兼容非markdown输入": "Compatible with non-markdown input",
+ "那么就切": "Then cut",
+ "4-饼图": "4-Pie chart",
+ "结束剧情": "End of the plot",
+ "字数要求": "Word count requirement",
+ "以下是对以上文本的总结": "Below is a summary of the above text",
+ "但不要同时调整两个参数": "But do not adjust two parameters at the same time",
+ "📌省略": "Omit",
+ "请查看message": "Please check the message",
+ "如果所有页的内容都相同": "If all pages have the same content",
+ "我将在这4个选择中": "I will choose from these 4 options",
+ "请设置为True": "Please set to True",
+ "当 remain_txt_to_cut": "When remain_txt_to_cut",
+ "后续输出被截断": "Subsequent output is truncated",
+ "检查API_KEY": "Check API_KEY",
+ "阿里云实时语音识别 配置难度较高": "Alibaba Cloud real-time speech recognition has a higher configuration difficulty",
+ "图像生成提示为空白": "Image generation prompt is blank",
+ "由于实体关系图用到了{}符号": "Because the entity relationship diagram uses the {} symbol",
+ "系统繁忙": "System busy",
+ "月之暗面 API KEY": "Dark side of the moon API KEY",
+ "编写小说的下一幕": "Write the next scene of the novel",
+ "选择一种": "Choose one",
+ "或者flowchart TD": "Or flowchart TD",
+ "请把以下学术文章段落翻译成中文": "Please translate the following academic article paragraph into Chinese",
+ "7 实体关系图": "7 Entity relationship diagram",
+ "处理游戏的主体逻辑": "Handle the main logic of the game",
+ "请以“{headstart}”为开头": "Please start with \"{headstart}\"",
+ "匹配后单段上下文长度": "Length of single segment context after matching",
+ "先行者知道": "The pioneer knows",
+ "以及处理PDF文件的示例代码包含了用于文本切分的函数": "Example code for processing PDF files includes functions for text segmentation",
+ "未发现重复上传": "No duplicate uploads found",
+ "那么就不用切了": "Then there's no need to split",
+ "目前来说": "Currently",
+ "请在LLM_MODEL中配置": "Please configure in LLM_MODEL",
+ "是否启用上下文关联": "Whether to enable context association",
+ "为了加速计算": "To speed up calculations",
+ "登录请求": "Login request",
+ "这里解释一下正则表达式中的几个特殊字符": "Explanation of some special characters in regular expressions",
+ "其中数字对应关系为": "The corresponding relationship of the numbers is",
+ "修改配置有三种方法": "There are three ways to modify the configuration",
+ "请前往arxiv打开此论文下载页面": "Please go to arXiv and open the paper download page",
+ "然后download source手动下载latex源码包": "Then manually download the LaTeX source package by downloading the source",
+ "功能单元": "Functional unit",
+ "你需要翻译的文本如下": "The text you need to translate is as follows",
+ "以便于后续快速的匹配和查找操作": "To facilitate rapid matching and search operations later",
+ "文本内容": "Text content",
+ "自动更新、打开浏览器页面、预热tiktoken模块": "Auto-update, open browser page, warm up tiktoken module",
+ "原样传递": "Pass through as is",
+ "但是该文件格式不被支持": "But the file format is not supported",
+ "他现在是全宇宙中唯一的一个人了": "He is now the only person in the entire universe",
+ "取值范围0~1": "Value range 0~1",
+ "搜索匹配score阈值": "Search match score threshold",
+ "当字符串中有掩码tag时": "When there is a mask tag in the string",
+ "错误的不纳入对话": "Errors are not included in the conversation",
+ "英语": "English",
+ "象限提示图": "Quadrant prompt diagram",
+ "由于不管提供文本是什么": "Because regardless of what the provided text is",
+ "确定后续剧情的发展": "Determine the development of the subsequent plot",
+ "处理空输入导致报错的问题 https": "Handle the error caused by empty input",
+ "第 3 部分": "Part 3",
+ "不能等于 0 或 1": "Cannot be equal to 0 or 1",
+ "同时过大的图表可能需要复制到在线编辑器中进行渲染": "Large charts may need to be copied to an online editor for rendering",
+ "装饰器函数ArgsGeneralWrapper": "Decorator function ArgsGeneralWrapper",
+ "写个函数移除所有的换行符": "Write a function to remove all line breaks",
+ "默认为False": "Default is False",
+ "实例化BaiduSpider": "Instantiate BaiduSpider",
+ "9-思维导图": "Mind Map 9",
+ "是否开启跨域": "Whether to enable cross-domain",
+ "随机InteractiveMiniGame": "Random InteractiveMiniGame",
+ "用于构建HTML报告的类和方法用于构建HTML报告的类和方法用于构建HTML报告的类和方法": "Classes and methods for building HTML reports",
+ "这里填一个提示词字符串就行了": "Just fill in a prompt string here",
+ "文本切分": "Text segmentation",
+ "用于在生成mermaid图表时隐藏代码块": "Used to hide code blocks when generating mermaid charts",
+ "如果剩余文本的token数小于限制": "If the number of tokens in the remaining text is less than the limit",
+ "未能在规定时间内完成任务": "Failed to complete the task within the specified time",
+ "API key has been deactivated. Cohere以账户失效为由": "API key has been deactivated. Cohere cited account expiration as the reason",
+ "正在使用讯飞图片理解API": "Using the Xunfei Image Understanding API",
+ "如果您使用docker-compose部署": "If you deploy using docker-compose",
+ "最大输入 token 数": "Maximum input token count",
+ "遇到了控制请求速率限制": "Encountered control request rate limit",
+ "数值范围约为0-1100": "The numerical range is approximately 0-1100",
+ "几乎使他晕厥过去": "Almost made him faint",
+ "识图模型GPT-4V": "Image recognition model GPT-4V",
+ "零一万物模型 -=-=-=-=-=-=-": "Zero-One Universe Model",
+ "所有对话记录将自动保存在本地目录": "All conversation records will be saved automatically in the local directory",
+ "饼图": "Pie Chart",
+ "添加Live2D": "Add Live2D",
+ "⭐ 单线程方法": "Single-threaded Method",
+ "配图": "Illustration",
+ "根据上述已知信息": "Based on the Above Known Information",
+ "1. 后续剧情发展1": "1. Subsequent Plot Development 1",
+ "2-序列图": "Sequence Diagram",
+ "流程图": "Flowchart",
+ "需求分析": "Requirement Analysis",
+ "我认为更合理的是": "I Think a More Reasonable Approach Is",
+ "claude家族": "Claude Family",
+ "”的逻辑关系图": "Logic Relationship Diagram",
+ "给出人物的名字": "Provide the Names of Characters",
+ "无法自动下载该论文的Latex源码": "Unable to Automatically Download the LaTeX Source Code of the Paper",
+ "需要用户手动处理的信息": "Information That Requires Manual Processing by Users",
+ "点击展开“文件下载区”": "Click to Expand 'File Download Area'",
+ "生成长度过长": "Excessive Length Generated",
+ "\\n\\n2. 长效解决方案": "2. Long-term Solution",
+ "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 插件主程序2 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=": "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Plugin Main Program 2 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=",
+ "title 项目开发流程": "Title Project Development Process",
+ "如果您希望剧情立即收尾": "If You Want the Plot to End Immediately",
+ "空格转换为 ": "Space Converted to ",
+ "图片数量超过api上限": "Number of Images Exceeds API Limit",
+ "他知道": "He Knows",
+ "在这里输入自定义参数「分辨率-质量": "Enter Custom Parameters Here 'Resolution-Quality",
+ "例如ChatGLM&gpt-3.5-turbo&gpt-4": "For example ChatGLM, gpt-3.5-turbo, and gpt-4",
+ "账户管理": "Account Management",
+ "正在将翻译好的项目tex项目编译为PDF": "Compiling the Translated Project .tex Project into PDF",
+ "我们把 _max 后的文字转存至 remain_txt_to_cut_storage": "We save the text after _max to the remain_txt_to_cut_storage",
+ "标签之前停止匹配": "Stop matching before the label",
+ "例子": "Example",
+ "遍历检查是否有额外参数": "Iterate to check for extra parameters",
+ "文本分句长度": "Length of text segmentation",
+ "请你给出围绕“{subject}”的状态图": "Please provide a state diagram surrounding \"{subject}\"",
+ "用stream的方法避免中途网线被掐": "Use the stream method to avoid the cable being disconnected midway",
+ "然后在markdown表格中列出修改的内容": "Then list the changes in a Markdown table",
+ "以上是从文章中提取的摘要": "The above is an abstract extracted from the article",
+ "但是无法找到相关文件": "But unable to find the relevant file",
+ "上海AI-LAB书生大模型 -=-=-=-=-=-=-": "Shanghai AI-LAB Shu Sheng Large Model -=-=-=-=-=-=-",
+ "遇到第一个": "Meet the first",
+ "存储在名为const_extract_exp的变量中": "Stored in a variable named const_extract_exp",
+ "括号在正则表达式中表示捕获组": "Parentheses represent capture groups in regular expressions",
+ "那里的太空中渐渐隐现出一个方形区域": "A square area gradually appears in the space there",
+ "智谱GLM4超级模型🔥": "Zhipu GLM4 Super Model🔥",
+ "故事开头": "Beginning of the story",
+ "请检查文件格式是否正确": "Please check if the file format is correct",
+ "这个模式被编译成一个正则表达式对象": "This pattern is compiled into a regular expression object",
+ "单字符断句符": "Single character sentence break",
+ "看后续支持吧": "Let's see the follow-up support",
+ "markdown输入": "Markdown input",
+ "系统": "System",
+ "80字以内": "Within 80 characters",
+ "一个测试mermaid绘制图表的功能": "A function to test the Mermaid chart drawing",
+ "输入部分": "Input section",
+ "移除右侧逗号": "Remove the comma on the right",
+ "因此思维导图仅能通过参数调用": "Therefore, the mind map can only be invoked through parameters",
+ "6 状态图": "State Diagram",
+ "类图": "Class Diagram",
+ "不要重复前文": "Do not repeat the previous text",
+ "但内部": "But internally",
+ "小说的下一幕字数少于300字": "The next scene of the novel has fewer than 300 words",
+ "每个发展方向都精明扼要地用一句话说明": "Each development direction is concisely described in one sentence",
+ "充分考虑其之间的逻辑": "Fully consider the logic between them",
+ "兼顾前端状态的功能": "Take into account the functionality of the frontend state",
+ "1 流程图": "Flowchart",
+ "用户QQ群925365219": "User QQ Group 925365219",
+ "通义-本地模型 -=-=-=-=-=-=-": "Tongyi - Local Model",
+ "取值范围0-1000": "Value range 0-1000",
+ "但不是^*.开始": "But not ^*. Start",
+ "他们将钻出地壳去看诗云": "They will emerge from the crust to see the poetry cloud",
+ "我们正在互相讨论": "We are discussing with each other",
+ "值越小": "The smaller the value",
+ "请在以下几种故事走向中": "Please choose from the following story directions",
+ "请先把模型切换至gpt-*": "Please switch the model to gpt-* first",
+ "不再需要填写": "No longer needs to be filled out",
+ "深夜": "Late at night",
+ "小说的前文回顾": "Review of the previous text of the novel",
+ "项目文件树": "Project file tree",
+ "如果双引号前有终止符": "If there is a terminator before the double quotes",
+ "participant A as 用户": "Participant A as User",
+ "处理游戏初始化等特殊情况": "Handle special cases like game initialization",
+ "然后使用mermaid+llm绘制图表": "Then use mermaid+llm to draw charts",
+ "0表示不生效": "0 means not effective",
+ "在以下的剧情发展中": "In the following plot development",
+ "模型考虑具有 top_p 概率质量 tokens 的结果": "Model considering results with top_p probability quality tokens",
+ "根据字符串要给谁看": "Depending on who is intended to view the string",
+ "没有设置YIMODEL_API_KEY选项": "YIMODEL_API_KEY option is not set",
+ "换行符转换为": "Convert line breaks to",
+ "-风格": "-style",
+ "默认情况下并发量极低": "Default to a very low level of concurrency",
+ "为字符串加上上面定义的前缀和后缀": "Add the defined prefix and suffix to the string",
+ "先切换模型到gpt-*": "Switch the model to gpt-* first",
+ "它确保我们匹配的任意文本是尽可能短的": "It ensures that any text we match is as short as possible",
+ "积极地运用环境描写、人物描写等手法": "Actively use techniques such as environmental and character descriptions",
+ "零一万物": "Zero One Universe",
+ "html_local_file 本地文件取相对路径": "html_local_file takes the relative path of the local file",
+ "伊依一行三人乘坐一艘游艇在南太平洋上做吟诗航行": "Yi Yi and three others set sail on a yacht to recite poetry in the South Pacific",
+ "移除左边通配符": "Remove left wildcard characters",
+ "随后绘制图表": "Draw a chart subsequently",
+ "输入2": "Input 2",
+ "所以用最没有意义的一个点代替": "Therefore, replace it with the most meaningless point",
+ "等": "etc.",
+ "是本地文件": "Is a local file",
+ "正在文本切分": "Text segmentation in progress",
+ "等价于修改容器内部的环境变量": "Equivalent to modifying the environment variables inside the container",
+ "cohere等请求源": "Cohere and other request sources",
+ "我们再把 remain_txt_to_cut_storage 中的部分文字取出": "Then we extract part of the text from remain_txt_to_cut_storage",
+ "生成带掩码tag的字符串": "Generate a string with masked tags",
+ "智谱 -=-=-=-=-=-=-": "ZhiPu -=-=-=-=-=-=-",
+ "前缀字符串": "Prefix string",
+ "Temperature值越大随机性越大": "The larger the Temperature value, the greater the randomness",
+ "借用PDF切割中的函数对文本进行切割": "Use functions from PDF cutting to segment the text",
+ "挑选一种剧情发展": "Choose a plot development",
+ "将换行符转换为": "Convert line breaks to",
+ "0.1 意味着模型解码器只考虑从前 10% 的概率的候选集中取 tokens": "0.1 means the model decoder only considers taking tokens from the top 10% probability candidates",
+ "确定故事的下一步": "Determine the next step of the story",
+ "个文件的显示": "Display of a file",
+ "用于控制输出tokens的多样性": "Used to control the diversity of output tokens",
+ "导入BaiduSpider": "Import BaiduSpider",
+ "不输入则为模型自行判断": "If not entered, the model will judge on its own",
+ "准备下一次迭代": "Prepare for the next iteration",
+ "包含一些用于文本处理和模型微调的函数和装饰器包含一些用于文本处理和模型微调的函数和装饰器包含一些用于文本处理和模型微调的函数和装饰器": "Contains functions and decorators for text processing and model fine-tuning",
+ "由于没有单独的参数保存包含图片的历史": "Since there is no separate parameter to save the history with images",
+ "section 开发": "section development",
+ "注意这里没有掩码tag": "Note that there is no mask tag here",
+ "section 设计": "section design",
+ "对话|编程|学术|智能体": "Dialogue | Programming | Academic | Intelligent Agent",
+ "您只需要选择其中一种即可": "You only need to choose one of them",
+ "添加Live2D形象": "Add Live2D image",
+ "请用以下命令安装": "Please install with the following command",
+ "触发了Google的安全访问策略": "Triggered Google's safe access policy",
+ "参数示例「1024x1024-hd-vivid」 || 分辨率支持 「1024x1024」": "Parameter example '1024x1024-hd-vivid' || Resolution support '1024x1024'",
+ "结局除外": "Excluding the ending",
+ "subgraph 函数调用": "subgraph function call",
+ "项目示意图": "Project diagram",
+ "实体关系图": "Entity relationship diagram",
+ "计算机把他的代号定为M102": "The computer named his code M102",
+ "首先尝试用双空行": "Try using double empty lines first",
+ "接下来将判断适合的图表类型": "Next, determine the appropriate chart type",
+ "注意前面的几句都小心保留了双引号": "Note that the previous sentences have carefully preserved double quotes",
+ "您正在调用插件": "You are calling a plugin",
+ "从上到下": "From top to bottom",
+ "请配置HUOSHAN_API_KEY": "Please configure HUOSHAN_API_KEY",
+ "知识检索内容相关度 Score": "Knowledge retrieval content relevance score",
+ "所以不会被处理": "So it will not be processed",
+ "设置10秒即可": "Set to 10 seconds",
+ "以空格分割": "Separated by space",
+ "根据位置和名称": "According to position and name",
+ "一些垃圾第三方接口出现这样的错误": "Some crappy third-party interfaces have this error",
+ "////////////////////// 输入清除键 ///////////////////////////": "////////////////////// Input Clear Key ///////////////////////////",
+ "并解析为html or md 文本": "And parse as HTML or MD text",
+ "匹配单段内容的连接上下文长度": "Matching single section content connection context length",
+ "控制输出的随机性": "Control the randomness of output",
+ "是模型名": "Is model name",
+ "请检查配置文件": "Please check the configuration file",
+ "如何使用one-api快速接入": "How to quickly access using one-api",
+ "请求失败": "Request failed",
+ "追加列表": "Append list",
+ "////////////////////// 函数插件区 ///////////////////////////": "////////////////////// Function Plugin Area ///////////////////////////",
+ "你是WPSAi": "You are WPSAi",
+ "第五部分 一些文件处理方法": "Part Five Some file processing methods",
+ "圆圆迷上了肥皂泡": "Yuan Yuan is fascinated by soap bubbles",
+ "可选参数": "Optional parameters",
+ "one-api模型": "one-api model",
+ "port/gpt_academic/ 下": "Under port/gpt_academic/",
+ "下一段故事": "Next part of the story",
+ "* 表示前一个字符可以出现0次或多次": "* means the previous character can appear 0 or more times",
+ "向后兼容配置": "Backward compatible configuration",
+ "输出部分": "Output section",
+ "稍后": "Later",
+ "比如比喻、拟人、排比、对偶、夸张等等": "For example, similes, personification, parallelism, antithesis, hyperbole, etc.",
+ "是自定义按钮": "Is a custom button",
+ "你需要根据用户给出的小说段落": "You need to based on the novel paragraph given by the user",
+ "以mermaid flowchart的形式展示": "Display in the form of a mermaid flowchart",
+ "最后一幕的字数少于1000字": "The last scene has fewer than 1000 words",
+ "如没出错则保持为空": "Keep it empty if there are no errors",
+ "建议您根据应用场景调整 top_p 或 temperature 参数": "It is recommended to adjust the top_p or temperature parameters according to the application scenario",
+ "仿佛他的出生就是要和这东西约会似的": "As if his birth was meant to date this thing",
+ "处理特殊的渲染问题": "Handle special rendering issues",
+ "我认为最合理的故事结局是": "I think the most reasonable ending for the story is",
+ "请给出上方内容的思维导图": "Please provide a mind map of the content above",
+ "点other Formats": "Click on other Formats",
+ "文件加载完毕": "File loaded",
+ "Your account is not active. Cohere以账户失效为由": "Your account is not active. Cohere cites the account's inactivation as the reason",
+ "找不到任何.pdf文件": "Cannot find any .pdf files",
+ "请根据判断结果绘制相应的图表": "Please draw the corresponding chart based on the judgment result",
+ "积极地运用修辞手法": "Actively use rhetorical devices",
+ "工具函数 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-": "Utility function -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=",
+ "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 插件主程序1 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=": "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Plugin Main Program 1 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=",
+ "在": "In",
+ "即正则表达式库": "That is, the regular expression library",
+ "////////////////////// 基础功能区 ///////////////////////////": "////////////////////// Basic Function Area ///////////////////////////",
+ "并重新编译PDF | 输入参数为路径": "And recompile PDF | Input parameter is the path",
+ "甘特图": "Gantt Chart",
+ "但是需要注册账号": "But registration is required",
+ "获取完整的从Cohere返回的报错": "Get the complete error message returned from Cohere",
+ "合并摘要": "Merge Summary",
+ "这最后一课要提前讲了": "The last lesson will be taught ahead of schedule",
+ "大模型": "Large Model",
+ "查找输入区内容中的文件": "Find files in the input area content",
+ "预处理参数": "Preprocessing Parameters",
+ "这段代码定义了一个名为ProxyNetworkActivate的空上下文管理器": "This code defines an empty context manager named ProxyNetworkActivate",
+ "对话错误": "Dialogue Error",
+ "确定故事的结局": "Determine the ending of the story",
+ "第 1 部分": "Part 1",
+ "直到遇到括号外部最近的限定符": "Until the nearest qualifier outside the parentheses is encountered",
+ "负责向用户前端展示对话": "Responsible for displaying dialogue to the user frontend",
+ "查询内容": "Query Content",
+ "匹配结果更精准": "More accurate matching results",
+ "根据选择的图表类型绘制图表": "Draw a chart based on the selected chart type",
+ "空格、换行、空字符串都会报错": "Spaces, line breaks, and empty strings will all result in errors",
+ "请尝试削减单次输入的文本量": "Please try to reduce the amount of text in a single input",
+ "上传到路径": "Upload to path",
+ "中": "In",
+ "后缀字符串": "Suffix string",
+ "您还可以在接入one-api时": "You can also when accessing one-api",
+ "请说 “根据已知信息无法回答该问题” 或 “没有提供足够的相关信息”": "Please say 'Cannot answer the question based on available information' or 'Not enough relevant information is provided'",
+ "Cohere和API2D不会走这里": "Cohere and API2D will not go here",
+ "节点名字使用引号包裹": "Node names should be enclosed in quotes",
+ "这次的故事开头是": "The beginning of this story is",
+ "你是一个想象力丰富的杰出作家": "You are a brilliant writer with a rich imagination",
+ "正在与你的朋友互动": "Interacting with your friends",
+ "/「-hd」 || 风格支持 「-vivid」": "/ '-hd' || Style supports '-vivid'",
+ "如输入区无内容则直接解析历史记录": "If the input area is empty, parse the history directly",
+ "根据以上的情节": "Based on the above plot",
+ "将图表类型参数赋值为插件参数": "Set the chart type parameter to the plugin parameter",
+ "根据图片类型返回image/jpeg": "Return image/jpeg based on image type",
+ "如果lang_reference是英文": "If lang_reference is English",
+ "示意图": "Schematic diagram",
+ "完整参数列表": "Complete parameter list",
+ "仿佛灿烂的群星的背景被剪出一个方口": "As if the brilliant background of stars has been cut out into a square",
+ "如果没有找到合适的切分点": "If no suitable splitting point is found",
+ "获取数据": "Get data",
+ "内嵌的javascript代码": "Embedded JavaScript code",
+ "绘制多种mermaid图表": "Draw various mermaid charts",
+ "无效": "Invalid",
+ "查找pdf/md/word并获取文本内容并返回状态以及文本": "Search for pdf/md/word, retrieve text content, and return status and text",
+ "总结绘制脑图": "Summarize mind mapping",
+ "禁止杜撰不符合我选择的剧情": "Prohibit making up plots that do not match my choice",
+ "正在生成向量库": "Generating vector library",
+ "是LLM的内部调优参数": "Is an internal tuning parameter of LLM",
+ "请你选择一个合适的图表类型": "Please choose an appropriate chart type",
+ "请在“输入区”输入图像生成提示": "Please enter image generation prompts in the 'input area'",
+ "经测试设置为小于500时": "After testing, set it to less than 500",
+ "当然": "Certainly",
+ "必要": "Necessary",
+ "从左到右": "From left to right",
+ "接下来调用本地Latex翻译插件即可": "Next, call the local Latex translation plugin",
+ "如果相同则返回": "If the same, return",
+ "根据语言": "According to the language",
+ "使用mermaid语法": "Use mermaid syntax",
+ "这是游戏的第一步": "This is the first step of the game",
+ "构建后续剧情引导": "Building subsequent plot guidance",
+ "以满足 token 限制": "To meet the token limit",
+ "也就是说": "That is to say",
+ "mermaid语法举例": "Mermaid syntax example",
+ "发送": "Send",
+ "那么就只显示英文提示词": "Then only display English prompts",
+ "正在检查": "Checking",
+ "返回处理后的字符串": "Return the processed string",
+ "2 序列图": "Sequence diagram 2",
+ "yi-34b-chat-0205只有4k上下文": "yi-34b-chat-0205 has only 4k context",
+ "请检查配置": "Please check the configuration",
+ "请你给出围绕“{subject}”的象限图": "Please provide a quadrant diagram around '{subject}'",
+ "故事该结束了": "The story should end",
+ "修复缩进": "Fix indentation",
+ "请描述给出的图片": "Please describe the given image",
+ "启用插件热加载": "Enable plugin hot reload",
+ "通义-在线模型 -=-=-=-=-=-=-": "Tongyi - Online Model",
+ "比较页数是否相同": "Compare if the number of pages is the same",
+ "正式开始服务": "Officially start the service",
+ "使用mermaid flowchart对以上文本进行总结": "Summarize the above text using a mermaid flowchart",
+ "不是vision 才处理history": "Not only vision but also handle history",
+ "来定义了一个正则表达式模式": "Defined a regular expression pattern",
+ "IP地址等": "IP addresses, etc.",
+ "那么双引号才是句子的终点": "Then the double quotes mark the end of the sentence",
+ "输入1": "Input 1",
+ "/「1792x1024」/「1024x1792」 || 质量支持 「-standard」": "/'1792x1024'/ '1024x1792' || Quality support '-standard'",
+ "为了避免索引错误将其更改为大写": "To avoid indexing errors, change it to uppercase",
+ "搜索网页": "Search the web",
+ "用于控制生成文本的随机性和创造性": "Used to control the randomness and creativity of generated text",
+ "不能等于 0": "Cannot equal 0",
+ "在距地球五万光年的远方": "At a distance of fifty thousand light-years from Earth",
+ ". 表示任意单一字符": ". represents any single character",
+ "选择预测值最大的k个token进行采样": "Select the k tokens with the largest predicted values for sampling",
+ "输出2": "Output 2",
+ "函数示意图": "Function Diagram",
+ "You are associated with a deactivated account. Cohere以账户失效为由": "You are associated with a deactivated account. Cohere due to account deactivation",
+ "3. 后续剧情发展3": "3. Subsequent Plot Development",
+ "并以“剧情收尾”四个字提示程序": "And use the four characters 'Plot Conclusion' as a prompt for the program",
+ "中文省略号": "Chinese Ellipsis",
+ "则不生效": "Will not take effect",
+ "目前是两位小数": "Currently is two decimal places",
+ "Incorrect API key. Cohere以提供了不正确的API_KEY为由": "Incorrect API key. Cohere reports an incorrect API_KEY."
+}
\ No newline at end of file
diff --git a/main.py b/main.py
index 08ec61b81..23c02d370 100644
--- a/main.py
+++ b/main.py
@@ -13,6 +13,17 @@
如何语音对话: 请阅读Wiki
如何临时更换API_KEY: 在输入区输入临时API_KEY后提交(网页刷新后失效)"""
+def enable_log(PATH_LOGGING):
+ import logging, uuid
+ admin_log_path = os.path.join(PATH_LOGGING, "admin")
+ os.makedirs(admin_log_path, exist_ok=True)
+ log_dir = os.path.join(admin_log_path, "chat_secrets.log")
+ try:logging.basicConfig(filename=log_dir, level=logging.INFO, encoding="utf-8", format="%(asctime)s %(levelname)-8s %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
+ except:logging.basicConfig(filename=log_dir, level=logging.INFO, format="%(asctime)s %(levelname)-8s %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
+ # Disable logging output from the 'httpx' logger
+ logging.getLogger("httpx").setLevel(logging.WARNING)
+ print(f"所有对话记录将自动保存在本地目录{log_dir}, 请注意自我隐私保护哦!")
+
def main():
import gradio as gr
if gr.__version__ not in ['3.32.9']:
@@ -31,18 +42,11 @@ def main():
from check_proxy import get_current_version
from themes.theme import adjust_theme, advanced_css, theme_declaration, js_code_clear, js_code_reset, js_code_show_or_hide, js_code_show_or_hide_group2
from themes.theme import js_code_for_css_changing, js_code_for_toggle_darkmode, js_code_for_persistent_cookie_init
- from themes.theme import load_dynamic_theme, to_cookie_str, from_cookie_str, init_cookie
+ from themes.theme import load_dynamic_theme, to_cookie_str, from_cookie_str, assign_user_uuid
title_html = f"