From 1f67d36c06efa15bbff6ef84973c53856443fc84 Mon Sep 17 00:00:00 2001 From: Wong Chihung <43695283+CHW0n9@users.noreply.github.com> Date: Sun, 29 Mar 2026 21:33:33 +0800 Subject: [PATCH] feat(models): support new gemini models and codex gpt-5.4-mini (#376) --- cli/src/agent/backends/acp/AcpStdioTransport.ts | 2 +- web/src/components/NewSession/types.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/src/agent/backends/acp/AcpStdioTransport.ts b/cli/src/agent/backends/acp/AcpStdioTransport.ts index 28673f00..a25ec1bc 100644 --- a/cli/src/agent/backends/acp/AcpStdioTransport.ts +++ b/cli/src/agent/backends/acp/AcpStdioTransport.ts @@ -303,7 +303,7 @@ export class AcpStdioTransport { if (lowerText.includes('status 404') || lowerText.includes('model not found') || lowerText.includes('not_found')) { this.stderrErrorHandler({ type: 'model_not_found', - message: 'Model not found. Available models: gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash', + message: 'Model not found. Available models: gemini-3.1-pro-preview, gemini-3-flash-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite', raw: text }); return; diff --git a/web/src/components/NewSession/types.ts b/web/src/components/NewSession/types.ts index 58cf32d5..55ead79d 100644 --- a/web/src/components/NewSession/types.ts +++ b/web/src/components/NewSession/types.ts @@ -14,6 +14,7 @@ export const MODEL_OPTIONS: Record