From 54714a5ace9c1d3efd6cca227ae69bc640f74627 Mon Sep 17 00:00:00 2001 From: bridge Date: Tue, 27 Jan 2026 23:13:34 +0800 Subject: [PATCH] chore: add openai pre-settings --- .../game/panels/system/LLMConfigPanel.vue | 26 +++++++++++++++++++ web/src/locales/en-US.json | 3 +++ web/src/locales/zh-CN.json | 3 +++ 3 files changed, 32 insertions(+) diff --git a/web/src/components/game/panels/system/LLMConfigPanel.vue b/web/src/components/game/panels/system/LLMConfigPanel.vue index 06f1176..67a474d 100644 --- a/web/src/components/game/panels/system/LLMConfigPanel.vue +++ b/web/src/components/game/panels/system/LLMConfigPanel.vue @@ -26,6 +26,12 @@ const modeOptions = computed(() => [ ]) const presets = computed(() => [ + { + name: t('llm.presets.openai'), + base_url: 'https://api.openai.com/v1', + model_name: 'gpt-4o', + fast_model_name: 'gpt-4o-mini' + }, { name: t('llm.presets.qwen'), base_url: 'https://dashscope.aliyuncs.com/compatible-mode/v1', @@ -282,6 +288,9 @@ onMounted(() => {

{{ t('llm.help.q3_title') }}

{{ t('llm.help.q3_content') }}

+
+

{{ t('llm.help.q3_format_note') }}

+

{{ t('llm.help.q3_base_url') }}

{{ t('llm.help.q3_api_key') }}

@@ -292,6 +301,7 @@ onMounted(() => {

{{ t('llm.help.q4_title') }}