Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Feat OpenAI Path [Text Moderation] #80

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,21 @@ export function Settings() {
config.update((config) => (config.modelConfig = modelConfig));
}}
/>
<ListItem
title={Locale.Settings.TextModeration.Title}
subTitle={Locale.Settings.TextModeration.SubTitle}
>
<input
type="checkbox"
checked={config.textmoderation}
onChange={(e) =>
updateConfig(
(config) =>
(config.textmoderation = e.currentTarget.checked),
)
}
></input>
</ListItem>
</List>

{shouldShowPromptModal && (
Expand Down
4 changes: 4 additions & 0 deletions app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@ const cn = {
Title: "频率惩罚度 (frequency_penalty)",
SubTitle: "值越大,越有可能降低重复字词",
},
TextModeration: {
Title: "文本审核",
SubTitle: "通过文本审核来检查内容是否符合 OpenAI 的使用政策。",
},
NumberOfImages: {
Title: "创建图片数量",
SubTitle:
Expand Down
5 changes: 5 additions & 0 deletions app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ const en: LocaleType = {
SubTitle:
"A larger value decreasing the likelihood to repeat the same line",
},
TextModeration: {
Title: "Text Moderation",
SubTitle:
"A Text Moderation to check whether content complies with OpenAI's usage policies.",
},
NumberOfImages: {
Title: "Number Image Create",
SubTitle:
Expand Down
4 changes: 4 additions & 0 deletions app/locales/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ const id: PartialLocaleType = {
SubTitle:
"Semakin tinggi nilai, semakin rendah kemungkinan penggunaan ulang baris yang sama",
},
TextModeration: {
Title: "Moderasi Teks",
SubTitle: "Moderasi Teks untuk memeriksa apakah konten sesuai dengan kebijakan penggunaan OpenAI.",
},
NumberOfImages: {
Title: "Buat Jumlah Gambar",
SubTitle:
Expand Down