Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

i18n(voice): clarify shared OpenAI key usage

gaokui2010ca09fee76c2a
diff --git a/src/components/keys/key-catalog.ts b/src/components/keys/key-catalog.ts
index 1f4ab98c7c..bd7024dc84 100644
--- a/src/components/keys/key-catalog.ts
+++ b/src/components/keys/key-catalog.ts
@@ -76,7 +76,7 @@ const OPENAI_SHAPE = /^sk-(proj|svcacct|admin)-/;
const provider = (driverKind: string, preset?: ProviderIconPreset): KeyMark => ({ driverKind, ...(preset ? { preset } : {}) });
export const KEY_CATALOG: readonly KeyEntry[] = [
- { id: "openai", section: "ai", labelKey: "keys.openai.label", purposeKey: "keys.purpose.openai", name: "OpenAI", env: ["OMB_OPENAI_API_KEY"],
+ { id: "openai", section: "ai", labelKey: "keys.openai.label", purposeKey: "keys.purpose.openaiModelsVoice", name: "OpenAI", env: ["OMB_OPENAI_API_KEY"],
words: ["openai", "chatgpt", "gpt", "live calls"], mark: provider("openai-compat", "openai"), kind: "key",
target: providerKey("openai", { placeholder: "sk-…", href: "https://platform.openai.com/api-keys", test: "openai", analytics: "openai", shape: OPENAI_SHAPE, noteKey: "keys.openai.note" }) },
{ id: "anthropic", section: "ai", labelKey: "keys.anthropic.label", purposeKey: "keys.purpose.anthropic", name: "Anthropic", env: ["OMB_ANTHROPIC_API_KEY"],
diff --git a/src/locales/en.json b/src/locales/en.json
index 7726aa42b0..10ca44b276 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -7310,5 +7310,6 @@
"voice.openai.error.limit": "OpenAI speech exceeded the 8 MiB limit for one segment.",
"voice.openai.error.cancelled": "OpenAI speech was cancelled.",
"voice.openai.error.failed": "OpenAI could not generate speech for this segment. Check your API access and usage.",
- "voice.openai.error.voice": "Choose an OpenAI voice before reading replies aloud."
+ "voice.openai.error.voice": "Choose an OpenAI voice before reading replies aloud.",
+ "keys.purpose.openaiModelsVoice": "OpenAI models, reply readout and live calls"
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index f42027ed41..bf743aa378 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -3583,5 +3583,6 @@
"voice.openai.error.limit": "这一段的语音超过了 8 MiB 大小限制。",
"voice.openai.error.cancelled": "已取消 OpenAI 语音生成。",
"voice.openai.error.failed": "OpenAI 未能生成这一段的语音,请检查 API 访问权限和用量。",
- "voice.openai.error.voice": "请先选择一个 OpenAI 声音,再朗读回复。"
+ "voice.openai.error.voice": "请先选择一个 OpenAI 声音,再朗读回复。",
+ "keys.purpose.openaiModelsVoice": "OpenAI 模型、朗读回复和实时通话"
}