From c2af65facdd2b5b219493d6a506649d04e7ef901 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 7 Aug 2025 13:37:18 -0700 Subject: [PATCH] GPT 5 naming --- src/common/util/dMessageUtils.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/util/dMessageUtils.tsx b/src/common/util/dMessageUtils.tsx index f473519b8..1ea6ae89e 100644 --- a/src/common/util/dMessageUtils.tsx +++ b/src/common/util/dMessageUtils.tsx @@ -351,7 +351,7 @@ function _prettyTokenStopReason(reason: DMessageGenerator['tokenStopReason'], co } -const oaiORegex = /gpt-[345](?:o|\.\d+)?-|o[1345]-|chatgpt-4o|computer-use-/; +const oaiORegex = /gpt-[345](?:o|\.\d+)?-|o[1345]-|chatgpt-[45]o?|gpt-5-chat|computer-use-/; const geminiRegex = /gemini-|gemma-|learnlm-/; @@ -370,6 +370,7 @@ export function prettyShortChatModelName(model: string | undefined): string { if (versionIndex !== -1) cutModel = cutModel.slice(0, versionIndex); return cutModel .replace('chatgpt-', 'ChatGPT_') + .replace('gpt-5-chat-', 'ChatGPT-5 ') .replace('gpt-', 'GPT_') // feature variants .replace('-audio', ' Audio')