Skip to content

Commit

Permalink
chore(version): 0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Jan 2, 2025
1 parent 4cbdd56 commit 10b9940
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 25 deletions.
11 changes: 5 additions & 6 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ afterPack: scripts/after-pack.js
afterSign: scripts/notarize.js
releaseInfo:
releaseNotes: |
增加 Genspark 小程序
用户消息支持编辑并重新发送
助手支持自定义请求参数 by @n2yt584v2t4nh7y
支持编辑话题总结提示词
修复 Windows 用户安装后无法打开的问题
修复知识库无法向量化MD文件的问题
文件支持删除
增加 Hika 小程序
增加 WebDAV 同步状态显示
自定义参数增加 JSON 类型
腾讯混元的联网开关
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 2 additions & 15 deletions src/renderer/src/config/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `请根据参考资料回答问题,并使用脚注格式引用数据来源。请忽略无关的参考资料。
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/files/FilesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const FilesPage: FC = () => {
) : (
<Table
dataSource={dataSource}
columns={columns}
columns={columns as any}
style={{ width: '100%' }}
size="small"
pagination={{ pageSize: 100 }}
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/src/pages/home/Tabs/AssistantsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { useSettings } from '@renderer/hooks/useSettings'
import AssistantSettingsPopup from '@renderer/pages/settings/AssistantSettings'
import { getDefaultTopic } from '@renderer/services/AssistantService'
import { EVENT_NAMES, EventEmitter } from '@renderer/services/EventService'
import { useAppSelector } from '@renderer/store'
import { Assistant } from '@renderer/types'
import { uuid } from '@renderer/utils'
import { Dropdown } from 'antd'
Expand All @@ -33,7 +32,6 @@ const Assistants: FC<Props> = ({
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()
Expand Down

0 comments on commit 10b9940

Please sign in to comment.