🤖 feat: GPT-5.1 (#10491)

This commit is contained in:
Danny Avila 2025-11-14 12:28:20 -05:00 committed by GitHub
parent e71c48ec3d
commit 6522789f5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 14 deletions

View file

@ -25,7 +25,7 @@ type EndpointIcon = {
function getOpenAIColor(_model: string | null | undefined) {
const model = _model?.toLowerCase() ?? '';
if (model && (/\b(o\d)\b/i.test(model) || /\bgpt-[5-9]\b/i.test(model))) {
if (model && (/\b(o\d)\b/i.test(model) || /\bgpt-[5-9](?:\.\d+)?\b/i.test(model))) {
return '#000000';
}
return model.includes('gpt-4') ? '#AB68FF' : '#19C37D';