File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " claude-dev " : patch
3+ ---
4+
5+ Add gpt-4.1
Original file line number Diff line number Diff line change @@ -604,8 +604,32 @@ export const geminiModels = {
604604// OpenAI Native
605605// https://openai.com/api/pricing/
606606export type OpenAiNativeModelId = keyof typeof openAiNativeModels
607- export const openAiNativeDefaultModelId : OpenAiNativeModelId = "gpt-4o "
607+ export const openAiNativeDefaultModelId : OpenAiNativeModelId = "gpt-4.1 "
608608export const openAiNativeModels = {
609+ "gpt-4.1" : {
610+ maxTokens : 32_768 ,
611+ contextWindow : 1_047_576 ,
612+ supportsImages : true ,
613+ supportsPromptCache : true ,
614+ inputPrice : 2 ,
615+ outputPrice : 8 ,
616+ } ,
617+ "gpt-4.1-mini" : {
618+ maxTokens : 32_768 ,
619+ contextWindow : 1_047_576 ,
620+ supportsImages : true ,
621+ supportsPromptCache : true ,
622+ inputPrice : 0.4 ,
623+ outputPrice : 1.6 ,
624+ } ,
625+ "gpt-4.1-nano" : {
626+ maxTokens : 32_768 ,
627+ contextWindow : 1_047_576 ,
628+ supportsImages : true ,
629+ supportsPromptCache : true ,
630+ inputPrice : 0.1 ,
631+ outputPrice : 0.4 ,
632+ } ,
609633 "o3-mini" : {
610634 maxTokens : 100_000 ,
611635 contextWindow : 200_000 ,
You can’t perform that action at this time.
0 commit comments