Skip to content

Commit

Permalink
fix: missing field
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed Apr 16, 2023
1 parent f82b4ee commit a52966a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async function chatReplyProcess(options: RequestOptions) {

export function initAuditService(audit: AuditConfig) {
if (!audit || !audit.options || !audit.options.apiKey || !audit.options.apiSecret)
throw new Error('未配置 | Not configured.')
return
const Service = textAuditServices[audit.provider]
auditService = new Service(audit.options)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Setting/Audit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ onMounted(() => {
@input="(val) => { if (config && config.options) config.options.label = val }"
/>
</div>
<p v-if="config && config.type === 'baidu'">
<p v-if="config && config.provider === 'baidu'">
<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>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
name: '名称',
description: '描述',
role: '角色设定',
temperature: 'Temperature',
temperature: '思维发散程度',
saveUserInfo: '保存用户信息',
top_p: 'Top_p',
chatHistory: '聊天记录',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
name: '名稱',
description: '描述',
role: '角色設定',
temperature: 'Temperature',
temperature: '思维发散程度',
top_p: 'Top_p',
saveUserInfo: '保存用户資訊',
chatHistory: '紀錄',
Expand Down

0 comments on commit a52966a

Please sign in to comment.