diff --git a/electron-builder.yml b/electron-builder.yml index b9ee305da..d1d91038c 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -78,9 +78,8 @@ afterPack: scripts/after-pack.js afterSign: scripts/notarize.js releaseInfo: releaseNotes: | - 增加 Genspark 小程序 - 用户消息支持编辑并重新发送 - 助手支持自定义请求参数 by @n2yt584v2t4nh7y - 支持编辑话题总结提示词 - 修复 Windows 用户安装后无法打开的问题 - 修复知识库无法向量化MD文件的问题 + 文件支持删除 + 增加 Hika 小程序 + 增加 WebDAV 同步状态显示 + 自定义参数增加 JSON 类型 + 腾讯混元的联网开关 diff --git a/package.json b/package.json index 0841e1043..545fd9659 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CherryStudio", - "version": "0.9.3", + "version": "0.9.4", "private": true, "description": "A powerful AI assistant for producer.", "main": "./out/main/index.js", diff --git a/src/renderer/src/config/prompts.ts b/src/renderer/src/config/prompts.ts index 6c643c06e..2dfbcd6dc 100644 --- a/src/renderer/src/config/prompts.ts +++ b/src/renderer/src/config/prompts.ts @@ -47,21 +47,8 @@ export const AGENT_PROMPT = ` export const SUMMARIZE_PROMPT = '你是一名擅长会话的助理,你需要将用户的会话总结为 10 个字以内的标题,标题语言与用户的首要语言一致,不要使用标点符号和其他特殊符号' -export const TRANSLATE_PROMPT = `You are a translation expert. - -Translate from input language to {{target_language}} - -Requirements: - -1. provide the translation result directly without any explanation and keep original format. -2. Do not translate if the target language is the same as the source language. - -Example: - -input: 你好,今天天气怎么样? -target_language: english -output: Hello, how is the weather today? -` +export const TRANSLATE_PROMPT = + 'You are a translation expert. Translate from input language to {{target_language}}, provide the translation result directly without any explanation and keep original format. Do not translate if the target language is the same as the source language.' export const REFERENCE_PROMPT = `请根据参考资料回答问题,并使用脚注格式引用数据来源。请忽略无关的参考资料。 diff --git a/src/renderer/src/pages/files/FilesPage.tsx b/src/renderer/src/pages/files/FilesPage.tsx index 89fcc0898..cedac920b 100644 --- a/src/renderer/src/pages/files/FilesPage.tsx +++ b/src/renderer/src/pages/files/FilesPage.tsx @@ -203,7 +203,7 @@ const FilesPage: FC = () => { ) : ( = ({ onCreateDefaultAssistant }) => { const { assistants, removeAssistant, addAssistant, updateAssistants } = useAssistants() - const generating = useAppSelector((state) => state.runtime.generating) const [dragging, setDragging] = useState(false) const { removeAllTopics } = useAssistant(activeAssistant.id) const { clickAssistantToShowTopic, topicPosition } = useSettings()