Skip to content

Commit 91ae94f

Browse files
💄 style: Add o3
1 parent f6ed103 commit 91ae94f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/OpenAI/components/Avatar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { COLOR_GPT_3, COLOR_GPT_4, COLOR_O_1, COLOR_PRIMARY, TITLE } from '../st
88
import Mono from './Mono';
99

1010
export interface AvatarProps extends Omit<IconAvatarProps, 'Icon'> {
11-
type?: 'normal' | 'gpt3' | 'gpt4' | 'o1';
11+
type?: 'normal' | 'gpt3' | 'gpt4' | 'o1' | 'o3';
1212
}
1313

1414
const Avatar = memo<AvatarProps>(({ background, type = 'normal', ...rest }) => {
@@ -23,6 +23,7 @@ const Avatar = memo<AvatarProps>(({ background, type = 'normal', ...rest }) => {
2323
bg = COLOR_GPT_4;
2424
break;
2525
}
26+
case 'o3':
2627
case 'o1': {
2728
bg = COLOR_O_1;
2829
break;

src/features/modelConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface ModelMapping {
7272
export const modelMappings: ModelMapping[] = [
7373
{ Icon: OpenAI, keywords: ['gpt-3'], props: { type: 'gpt3' } },
7474
{ Icon: OpenAI, keywords: ['gpt-4'], props: { type: 'gpt4' } },
75-
{ Icon: OpenAI, keywords: ['o1-', '^o1', '/o1'], props: { type: 'o1' } },
75+
{ Icon: OpenAI, keywords: ['o1-', '^o1', '/o1', 'o3-', '^o3', '/o3'], props: { type: 'o1' } },
7676
{ Icon: Dalle, keywords: ['dalle', 'dall-e'] },
7777
{ Icon: OpenAI, keywords: ['^gpt-', '/gpt-', 'openai', 'text-embedding-', 'tts-', 'whisper-'] },
7878
{ Icon: ChatGLM, keywords: ['glm-', 'chatglm'] },

0 commit comments

Comments
 (0)