docs: update change log
This commit is contained in:
parent
3e88aa3c36
commit
d5da7e4413
@ -56,6 +56,7 @@ electronDownload:
|
||||
afterSign: scripts/notarize.js
|
||||
releaseInfo:
|
||||
releaseNotes: |
|
||||
- 修复默认助理名称为空的问题
|
||||
- 修复首次安装默认语言检测问题
|
||||
- 更新日志样式微调
|
||||
- 修复多语言提示错误
|
||||
- 修复智谱AI默认模型错误问题
|
||||
- 修复 OpenRouter API 检测出错问题
|
||||
- 修复模型提供商多语言翻译错误问题
|
||||
|
||||
@ -1,5 +1,12 @@
|
||||
# CHANGES LOG
|
||||
|
||||
### v0.2.3 - 2024-07-16
|
||||
|
||||
1. Fixed multi-language prompt errors
|
||||
2. Fixed default model error issues with ZHIPU AI
|
||||
3. Fixed OpenRouter API detection error issues
|
||||
4. Fixed multi-language translation errors with model providers
|
||||
|
||||
### v0.2.2 - 2024-07-15
|
||||
|
||||
1. Fix the issue where the default assistant name is empty.
|
||||
@ -1,5 +1,12 @@
|
||||
# 更新日志
|
||||
|
||||
### v0.2.3 - 2024-07-16
|
||||
|
||||
1. 修复多语言提示错误
|
||||
2. 修复智谱AI默认模型错误问题
|
||||
3. 修复 OpenRouter API 检测出错问题
|
||||
4. 修复模型提供商多语言翻译错误问题
|
||||
|
||||
### v0.2.2 - 2024-07-15
|
||||
|
||||
1. 修复默认助理名称为空的问题
|
||||
@ -1,5 +1,5 @@
|
||||
import changelogEn from '@renderer/assets/changelog/CHANGELOG.en.md?raw'
|
||||
import changelogZh from '@renderer/assets/changelog/CHANGELOG.zh.md?raw'
|
||||
import changelogEn from '@renderer/CHANGELOG.en.md?raw'
|
||||
import changelogZh from '@renderer/CHANGELOG.zh.md?raw'
|
||||
import { FC } from 'react'
|
||||
import Markdown from 'react-markdown'
|
||||
import styled from 'styled-components'
|
||||
|
||||
@ -8,7 +8,7 @@ import { takeRight } from 'lodash'
|
||||
import dayjs from 'dayjs'
|
||||
import store from '@renderer/store'
|
||||
import { setGenerating } from '@renderer/store/runtime'
|
||||
import { t } from 'i18next'
|
||||
import i18n from '@renderer/i18n'
|
||||
|
||||
interface FetchChatCompletionParams {
|
||||
messages: Message[]
|
||||
@ -127,17 +127,17 @@ export async function checkApi(provider: Provider) {
|
||||
const style = { marginTop: '3vh' }
|
||||
|
||||
if (!provider.apiKey) {
|
||||
window.message.error({ content: t('message.error.enter.api.key'), key, style })
|
||||
window.message.error({ content: i18n.t('message.error.enter.api.key'), key, style })
|
||||
return false
|
||||
}
|
||||
|
||||
if (!provider.apiHost) {
|
||||
window.message.error({ content: t('message.error.enter.api.host'), key, style })
|
||||
window.message.error({ content: i18n.t('message.error.enter.api.host'), key, style })
|
||||
return false
|
||||
}
|
||||
|
||||
if (!model) {
|
||||
window.message.error({ content: t('message.error.enter.model'), key, style })
|
||||
window.message.error({ content: i18n.t('message.error.enter.model'), key, style })
|
||||
return false
|
||||
}
|
||||
|
||||
@ -162,7 +162,9 @@ export async function checkApi(provider: Provider) {
|
||||
key: 'api-check',
|
||||
style: { marginTop: '3vh' },
|
||||
duration: valid ? 2 : 8,
|
||||
content: valid ? t('message.api.connection.successful') : t('message.api.connection.failed') + ' ' + errorMessage
|
||||
content: valid
|
||||
? i18n.t('message.api.connection.success')
|
||||
: i18n.t('message.api.connection.failed') + ' ' + errorMessage
|
||||
})
|
||||
|
||||
return valid
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user