chore(version): 0.9.4

This commit is contained in:
kangfenmao 2025-01-02 21:29:33 +08:00
parent 4cbdd563e8
commit 10b9940edd
5 changed files with 9 additions and 25 deletions

View File

@ -78,9 +78,8 @@ afterPack: scripts/after-pack.js
afterSign: scripts/notarize.js afterSign: scripts/notarize.js
releaseInfo: releaseInfo:
releaseNotes: | releaseNotes: |
增加 Genspark 小程序 文件支持删除
用户消息支持编辑并重新发送 增加 Hika 小程序
助手支持自定义请求参数 by @n2yt584v2t4nh7y 增加 WebDAV 同步状态显示
支持编辑话题总结提示词 自定义参数增加 JSON 类型
修复 Windows 用户安装后无法打开的问题 腾讯混元的联网开关
修复知识库无法向量化MD文件的问题

View File

@ -1,6 +1,6 @@
{ {
"name": "CherryStudio", "name": "CherryStudio",
"version": "0.9.3", "version": "0.9.4",
"private": true, "private": true,
"description": "A powerful AI assistant for producer.", "description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js", "main": "./out/main/index.js",

View File

@ -47,21 +47,8 @@ export const AGENT_PROMPT = `
export const SUMMARIZE_PROMPT = export const SUMMARIZE_PROMPT =
'你是一名擅长会话的助理,你需要将用户的会话总结为 10 个字以内的标题,标题语言与用户的首要语言一致,不要使用标点符号和其他特殊符号' '你是一名擅长会话的助理,你需要将用户的会话总结为 10 个字以内的标题,标题语言与用户的首要语言一致,不要使用标点符号和其他特殊符号'
export const TRANSLATE_PROMPT = `You are a translation expert. 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.'
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 REFERENCE_PROMPT = `请根据参考资料回答问题,并使用脚注格式引用数据来源。请忽略无关的参考资料。 export const REFERENCE_PROMPT = `请根据参考资料回答问题,并使用脚注格式引用数据来源。请忽略无关的参考资料。

View File

@ -203,7 +203,7 @@ const FilesPage: FC = () => {
) : ( ) : (
<Table <Table
dataSource={dataSource} dataSource={dataSource}
columns={columns} columns={columns as any}
style={{ width: '100%' }} style={{ width: '100%' }}
size="small" size="small"
pagination={{ pageSize: 100 }} pagination={{ pageSize: 100 }}

View File

@ -9,7 +9,6 @@ import { useSettings } from '@renderer/hooks/useSettings'
import AssistantSettingsPopup from '@renderer/pages/settings/AssistantSettings' import AssistantSettingsPopup from '@renderer/pages/settings/AssistantSettings'
import { getDefaultTopic } from '@renderer/services/AssistantService' import { getDefaultTopic } from '@renderer/services/AssistantService'
import { EVENT_NAMES, EventEmitter } from '@renderer/services/EventService' import { EVENT_NAMES, EventEmitter } from '@renderer/services/EventService'
import { useAppSelector } from '@renderer/store'
import { Assistant } from '@renderer/types' import { Assistant } from '@renderer/types'
import { uuid } from '@renderer/utils' import { uuid } from '@renderer/utils'
import { Dropdown } from 'antd' import { Dropdown } from 'antd'
@ -33,7 +32,6 @@ const Assistants: FC<Props> = ({
onCreateDefaultAssistant onCreateDefaultAssistant
}) => { }) => {
const { assistants, removeAssistant, addAssistant, updateAssistants } = useAssistants() const { assistants, removeAssistant, addAssistant, updateAssistants } = useAssistants()
const generating = useAppSelector((state) => state.runtime.generating)
const [dragging, setDragging] = useState(false) const [dragging, setDragging] = useState(false)
const { removeAllTopics } = useAssistant(activeAssistant.id) const { removeAllTopics } = useAssistant(activeAssistant.id)
const { clickAssistantToShowTopic, topicPosition } = useSettings() const { clickAssistantToShowTopic, topicPosition } = useSettings()