mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
✨ feat: GPT-5 Token Limits, Rates, Icon, Reasoning Support
This commit is contained in:
parent
8a5047c456
commit
430557676d
5 changed files with 151 additions and 4 deletions
|
|
@ -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)) {
|
||||
if (model && (/\b(o\d)\b/i.test(model) || /\bgpt-[5-9]\b/i.test(model))) {
|
||||
return '#000000';
|
||||
}
|
||||
return model.includes('gpt-4') ? '#AB68FF' : '#19C37D';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue