Skip to content

Commit a52966a

Browse files
author
Kerwin
committed
fix: missing field
1 parent f82b4ee commit a52966a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

service/src/chatgpt/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function chatReplyProcess(options: RequestOptions) {
130130

131131
export function initAuditService(audit: AuditConfig) {
132132
if (!audit || !audit.options || !audit.options.apiKey || !audit.options.apiSecret)
133-
throw new Error('未配置 | Not configured.')
133+
return
134134
const Service = textAuditServices[audit.provider]
135135
auditService = new Service(audit.options)
136136
}

src/components/common/Setting/Audit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ onMounted(() => {
113113
@input="(val) => { if (config && config.options) config.options.label = val }"
114114
/>
115115
</div>
116-
<p v-if="config && config.type === 'baidu'">
116+
<p v-if="config && config.provider === 'baidu'">
117117
<a target="_blank" href="https://ai.baidu.com/ai-doc/ANTIPORN/Nk3h6xbb2#%E7%BB%86%E5%88%86%E6%A0%87%E7%AD%BE%E5%AF%B9%E7%85%A7%E8%A1%A8">{{ $t('setting.auditBaiduLabelLink') }}</a>
118118
</p>
119119
</div>

src/locales/zh-CN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default {
7373
name: '名称',
7474
description: '描述',
7575
role: '角色设定',
76-
temperature: 'Temperature',
76+
temperature: '思维发散程度',
7777
saveUserInfo: '保存用户信息',
7878
top_p: 'Top_p',
7979
chatHistory: '聊天记录',

src/locales/zh-TW.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default {
7373
name: '名稱',
7474
description: '描述',
7575
role: '角色設定',
76-
temperature: 'Temperature',
76+
temperature: '思维发散程度',
7777
top_p: 'Top_p',
7878
saveUserInfo: '保存用户資訊',
7979
chatHistory: '紀錄',

0 commit comments

Comments
 (0)