@@ -3,7 +3,7 @@ import type { ModelInfo } from "../model.js"
33// https://openai.com/api/pricing/
44export type OpenAiNativeModelId = keyof typeof openAiNativeModels
55
6- export const openAiNativeDefaultModelId : OpenAiNativeModelId = "gpt-5.1"
6+ export const openAiNativeDefaultModelId : OpenAiNativeModelId = "gpt-5.1-codex-max "
77
88export const openAiNativeModels = {
99 "gpt-5.1-codex-max" : {
@@ -16,7 +16,7 @@ export const openAiNativeModels = {
1616 supportsPromptCache : true ,
1717 promptCacheRetention : "24h" ,
1818 supportsReasoningEffort : [ "low" , "medium" , "high" , "xhigh" ] ,
19- reasoningEffort : "medium " ,
19+ reasoningEffort : "xhigh " ,
2020 inputPrice : 1.25 ,
2121 outputPrice : 10.0 ,
2222 cacheReadsPrice : 0.125 ,
@@ -25,6 +25,41 @@ export const openAiNativeModels = {
2525 description :
2626 "GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks" ,
2727 } ,
28+ "gpt-5.2" : {
29+ maxTokens : 128000 ,
30+ contextWindow : 400000 ,
31+ supportsNativeTools : true ,
32+ includedTools : [ "apply_patch" ] ,
33+ excludedTools : [ "apply_diff" , "write_to_file" ] ,
34+ supportsImages : true ,
35+ supportsPromptCache : true ,
36+ promptCacheRetention : "24h" ,
37+ supportsReasoningEffort : [ "none" , "low" , "medium" , "high" , "xhigh" ] ,
38+ reasoningEffort : "medium" ,
39+ inputPrice : 1.75 ,
40+ outputPrice : 14.0 ,
41+ cacheReadsPrice : 0.175 ,
42+ supportsVerbosity : true ,
43+ supportsTemperature : false ,
44+ tiers : [
45+ { name : "flex" , contextWindow : 400000 , inputPrice : 0.875 , outputPrice : 7.0 , cacheReadsPrice : 0.0875 } ,
46+ { name : "priority" , contextWindow : 400000 , inputPrice : 3.5 , outputPrice : 28.0 , cacheReadsPrice : 0.35 } ,
47+ ] ,
48+ description : "GPT-5.2: Our flagship model for coding and agentic tasks across industries" ,
49+ } ,
50+ "gpt-5.2-chat-latest" : {
51+ maxTokens : 16_384 ,
52+ contextWindow : 128_000 ,
53+ supportsNativeTools : true ,
54+ includedTools : [ "apply_patch" ] ,
55+ excludedTools : [ "apply_diff" , "write_to_file" ] ,
56+ supportsImages : true ,
57+ supportsPromptCache : true ,
58+ inputPrice : 1.75 ,
59+ outputPrice : 14.0 ,
60+ cacheReadsPrice : 0.175 ,
61+ description : "GPT-5.2 Chat: Optimized for conversational AI and chat use cases" ,
62+ } ,
2863 "gpt-5.1" : {
2964 maxTokens : 128000 ,
3065 contextWindow : 400000 ,
0 commit comments