Skip to content

Commit cb2bbf3

Browse files
committed
add 'gpt-5.1-codex-max'
1 parent 70e9be3 commit cb2bbf3

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/components/utils/constants.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ export const models: Model[] = [
1818
provider: 'openAI',
1919
type: ModelType.REASONING,
2020
},
21+
{
22+
value: 'gpt-5.1-codex-max',
23+
label: 'GPT-5.1 Codex Max',
24+
provider: 'openAI',
25+
type: ModelType.REASONING,
26+
},
2127
{
2228
value: 'gpt-5-mini',
23-
label: 'GPT-5-mini',
29+
label: 'GPT-5 mini',
2430
provider: 'openAI',
2531
type: ModelType.REASONING,
2632
},

src/context/ChatContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const ChatProvider: React.FC<{ children: React.ReactNode }> = ({ children
110110
const router = useRouter();
111111
const [model, setModel] = useState<Model>(models[0]);
112112
const hasNoneEffort = useMemo(() => {
113-
return !model.value.startsWith('o') && !model.value.startsWith('gemini');
113+
return !model.value.includes('codex') && !model.value.startsWith('gemini');
114114
}, [model.value]);
115115

116116
const updatedReasoningEfforts = useMemo(() => {

0 commit comments

Comments
 (0)