From 169a4b9d32cfcbfcfc0e2407c7a9c1d3e835a7d9 Mon Sep 17 00:00:00 2001 From: cagedbird043 Date: Wed, 25 Feb 2026 13:43:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E9=BD=90=20OpenAI=20OpenCode?= =?UTF-8?q?=20=E6=A8=A1=E6=9D=BF=E6=A8=A1=E5=9E=8B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/keys/UseKeyModal.vue | 115 +++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/frontend/src/components/keys/UseKeyModal.vue b/frontend/src/components/keys/UseKeyModal.vue index fc97fe90..449c7a7b 100644 --- a/frontend/src/components/keys/UseKeyModal.vue +++ b/frontend/src/components/keys/UseKeyModal.vue @@ -534,8 +534,104 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin } } const openaiModels = { + 'gpt-5-codex': { + name: 'GPT-5 Codex', + limit: { + context: 400000, + output: 128000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {} + } + }, + 'gpt-5.1-codex': { + name: 'GPT-5.1 Codex', + limit: { + context: 400000, + output: 128000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {} + } + }, + 'gpt-5.1-codex-max': { + name: 'GPT-5.1 Codex Max', + limit: { + context: 400000, + output: 128000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {} + } + }, + 'gpt-5.1-codex-mini': { + name: 'GPT-5.1 Codex Mini', + limit: { + context: 400000, + output: 128000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {} + } + }, + 'gpt-5.2': { + name: 'GPT-5.2', + limit: { + context: 400000, + output: 128000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {}, + xhigh: {} + } + }, 'gpt-5.3-codex-spark': { name: 'GPT-5.3 Codex Spark', + limit: { + context: 128000, + output: 32000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {}, + xhigh: {} + } + }, + 'gpt-5.3-codex': { + name: 'GPT-5.3 Codex', + limit: { + context: 400000, + output: 128000 + }, options: { store: false }, @@ -548,6 +644,10 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin }, 'gpt-5.2-codex': { name: 'GPT-5.2 Codex', + limit: { + context: 400000, + output: 128000 + }, options: { store: false }, @@ -557,6 +657,21 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin high: {}, xhigh: {} } + }, + 'codex-mini-latest': { + name: 'Codex Mini', + limit: { + context: 200000, + output: 100000 + }, + options: { + store: false + }, + variants: { + low: {}, + medium: {}, + high: {} + } } } const geminiModels = {