fix(pi): label gpt-5.5 as GPT-5.5 (#548)

The pi provider's modelDisplayName matches with a startsWith prefix. With no
gpt-5.5 entry, the model fell into the greedy 'gpt-5' -> 'GPT-5' prefix and
rendered as "GPT-5", while codex/hermes (via the global short-name table) show
"GPT-5.5". Add an explicit gpt-5.5 entry so the longer, exact key wins.
This commit is contained in:
Resham Joshi 2026-06-22 02:20:30 +02:00 committed by GitHub
parent 454d836f6e
commit 163013fc18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ import type { Provider, SessionSource, SessionParser, ParsedProviderCall } from
const modelDisplayNames: Record<string, string> = {
'gpt-5.4': 'GPT-5.4',
'gpt-5.4-mini': 'GPT-5.4 Mini',
'gpt-5.5': 'GPT-5.5',
'gpt-5': 'GPT-5',
'gpt-4o': 'GPT-4o',
'gpt-4o-mini': 'GPT-4o Mini',