1+ import { openAiCodexModels } from "../providers/openai-codex.js"
12import { openAiNativeDefaultModelId , openAiNativeModels } from "../providers/openai.js"
23
34describe ( "OpenAI native models" , ( ) => {
@@ -46,6 +47,96 @@ describe("OpenAI native models", () => {
4647 ] )
4748 } )
4849
50+ it ( "describes GPT-6 Sol and Luna with verified pricing and context metadata" , ( ) => {
51+ expect ( openAiNativeModels [ "gpt-6-sol" ] ) . toEqual ( {
52+ maxTokens : 128_000 ,
53+ contextWindow : 1_050_000 ,
54+ includedTools : [ "apply_patch" ] ,
55+ excludedTools : [ "apply_diff" , "write_to_file" ] ,
56+ supportsImages : true ,
57+ supportsPromptCache : true ,
58+ supportsReasoningEffort : [ "none" , "low" , "medium" , "high" , "xhigh" , "max" ] ,
59+ reasoningEffort : "medium" ,
60+ inputPrice : 2 ,
61+ outputPrice : 10 ,
62+ cacheWritesPrice : 2.5 ,
63+ cacheReadsPrice : 0.2 ,
64+ longContextPricing : {
65+ thresholdTokens : 272_000 ,
66+ inputPriceMultiplier : 2 ,
67+ outputPriceMultiplier : 1.5 ,
68+ cacheWritesPriceMultiplier : 2 ,
69+ cacheReadsPriceMultiplier : 2 ,
70+ appliesToServiceTiers : [ "default" , "flex" , "priority" ] ,
71+ } ,
72+ supportsVerbosity : true ,
73+ supportsTemperature : false ,
74+ tiers : [
75+ {
76+ name : "flex" ,
77+ contextWindow : 1_050_000 ,
78+ inputPrice : 1 ,
79+ outputPrice : 5 ,
80+ cacheWritesPrice : 1.25 ,
81+ cacheReadsPrice : 0.1 ,
82+ } ,
83+ {
84+ name : "priority" ,
85+ contextWindow : 1_050_000 ,
86+ inputPrice : 4 ,
87+ outputPrice : 20 ,
88+ cacheWritesPrice : 5 ,
89+ cacheReadsPrice : 0.4 ,
90+ } ,
91+ ] ,
92+ description : "GPT-6 Sol: OpenAI's cost-efficient frontier model for complex coding and agentic workflows" ,
93+ } )
94+
95+ expect ( openAiNativeModels [ "gpt-6-luna" ] ) . toEqual ( {
96+ maxTokens : 128_000 ,
97+ contextWindow : 1_050_000 ,
98+ includedTools : [ "apply_patch" ] ,
99+ excludedTools : [ "apply_diff" , "write_to_file" ] ,
100+ supportsImages : true ,
101+ supportsPromptCache : true ,
102+ supportsReasoningEffort : [ "none" , "low" , "medium" , "high" , "xhigh" , "max" ] ,
103+ reasoningEffort : "medium" ,
104+ inputPrice : 0.1 ,
105+ outputPrice : 0.5 ,
106+ cacheWritesPrice : 0.125 ,
107+ cacheReadsPrice : 0.01 ,
108+ longContextPricing : {
109+ thresholdTokens : 272_000 ,
110+ inputPriceMultiplier : 2 ,
111+ outputPriceMultiplier : 1.5 ,
112+ cacheWritesPriceMultiplier : 2 ,
113+ cacheReadsPriceMultiplier : 2 ,
114+ appliesToServiceTiers : [ "default" , "flex" , "priority" ] ,
115+ } ,
116+ supportsVerbosity : true ,
117+ supportsTemperature : false ,
118+ tiers : [
119+ {
120+ name : "flex" ,
121+ contextWindow : 1_050_000 ,
122+ inputPrice : 0.05 ,
123+ outputPrice : 0.25 ,
124+ cacheWritesPrice : 0.0625 ,
125+ cacheReadsPrice : 0.005 ,
126+ } ,
127+ {
128+ name : "priority" ,
129+ contextWindow : 1_050_000 ,
130+ inputPrice : 0.2 ,
131+ outputPrice : 1 ,
132+ cacheWritesPrice : 0.25 ,
133+ cacheReadsPrice : 0.02 ,
134+ } ,
135+ ] ,
136+ description : "GPT-6 Luna: The fastest, most affordable member of the GPT-6 family" ,
137+ } )
138+ } )
139+
49140 it ( "uses current GPT-5.6 base pricing and context metadata" , ( ) => {
50141 expect ( openAiNativeModels [ "gpt-5.6-sol" ] ) . toMatchObject ( {
51142 contextWindow : 1_050_000 ,
@@ -70,3 +161,40 @@ describe("OpenAI native models", () => {
70161 } )
71162 } )
72163} )
164+
165+ describe ( "OpenAI Codex models" , ( ) => {
166+ it ( "describes GPT-6 Sol and Luna subscription contracts" , ( ) => {
167+ expect ( openAiCodexModels [ "gpt-6-sol" ] ) . toEqual ( {
168+ maxTokens : 128_000 ,
169+ contextWindow : 372_000 ,
170+ includedTools : [ "apply_patch" ] ,
171+ excludedTools : [ "apply_diff" , "write_to_file" ] ,
172+ supportsImages : true ,
173+ supportsPromptCache : true ,
174+ supportsReasoningEffort : [ "none" , "low" , "medium" , "high" , "xhigh" , "max" ] ,
175+ reasoningEffort : "medium" ,
176+ inputPrice : 0 ,
177+ outputPrice : 0 ,
178+ supportsVerbosity : true ,
179+ supportsTemperature : false ,
180+ description :
181+ "GPT-6 Sol: OpenAI's cost-efficient frontier model for complex coding and agentic workflows via ChatGPT subscription" ,
182+ } )
183+
184+ expect ( openAiCodexModels [ "gpt-6-luna" ] ) . toEqual ( {
185+ maxTokens : 128_000 ,
186+ contextWindow : 372_000 ,
187+ includedTools : [ "apply_patch" ] ,
188+ excludedTools : [ "apply_diff" , "write_to_file" ] ,
189+ supportsImages : true ,
190+ supportsPromptCache : true ,
191+ supportsReasoningEffort : [ "none" , "low" , "medium" , "high" , "xhigh" , "max" ] ,
192+ reasoningEffort : "medium" ,
193+ inputPrice : 0 ,
194+ outputPrice : 0 ,
195+ supportsVerbosity : true ,
196+ supportsTemperature : false ,
197+ description : "GPT-6 Luna: The fastest, most affordable member of the GPT-6 family via ChatGPT subscription" ,
198+ } )
199+ } )
200+ } )
0 commit comments