diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 10db8c976..38faa80ab 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,8 +1,8 @@ schema_version: 1 -generation_id: fef4a7f1-bbb1-45f0-99ff-ccc9f962820c -openapi_spec_hash: 4af7018ff56446e0398fc7946a92680f -openapi_transformed_spec_hash: b2689771e08c3fdc6ae8f0433dc2c784 -config_hash: 5c00fe18ea913ed0186f9894adc02a70 -codegen_sha: d7faac0f7cd09f79c36bdbf92b14bfdf7788c5d6 -codegen_hash: f7073339e9e47087c5bd68e1fcea6e89f6b985354331b8c2fd53580c4bc9300b -public_codegen_sha: 8018025c5e6a1e4d0e4f0ddd21b550dd7191b799 +generation_id: a2e15f59-94b2-41a7-83a2-0aa28ffd7091 +openapi_spec_hash: 0ba3e4acd88b521d832e2a42d5471e00 +openapi_transformed_spec_hash: 0a6002520553b981f4c0bf6555a0a623 +config_hash: d8813efd847d1966dd7f03bb648c41dc +codegen_sha: 23fe5abcd01bf9d6dd1c1ee49b6244f9d2d078ce +codegen_hash: 2c513214ca2f30afc9ae2724d5b78c068dac45d959bc1c4f1d8b4706f507f3ca +public_codegen_sha: 0c208e28bddcefe8be7b5a0b94be94b8b973ed4e diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index 1c5a24fad..272cbeaf2 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -139,7 +139,7 @@ paths: "created_at": 1698982736, "name": "Coding Tutor", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a helpful assistant designed to make me better at coding!", "tools": [], "tool_resources": {}, @@ -154,7 +154,7 @@ paths: "created_at": 1698982718, "name": "My Assistant", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a helpful assistant designed to make me better at coding!", "tools": [], "tool_resources": {}, @@ -169,7 +169,7 @@ paths: "created_at": 1698982643, "name": null, "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "tools": [], "tool_resources": {}, @@ -220,7 +220,7 @@ paths: "instructions": "You are a personal math tutor. When asked a question, write and run Python code to answer the question.", "name": "Math Tutor", "tools": [{"type": "code_interpreter"}], - "model": "gpt-4o" + "model": "gpt-5" }' python: | from openai import OpenAI @@ -230,7 +230,7 @@ paths: instructions="You are a personal math tutor. When asked a question, write and run Python code to answer the question.", name="Math Tutor", tools=[{"type": "code_interpreter"}], - model="gpt-4o", + model="gpt-5", ) print(my_assistant) javascript: |- @@ -244,7 +244,7 @@ paths: "You are a personal math tutor. When asked a question, write and run Python code to answer the question.", name: "Math Tutor", tools: [{ type: "code_interpreter" }], - model: "gpt-4o", + model: "gpt-5", }); console.log(myAssistant); @@ -258,7 +258,7 @@ paths: "created_at": 1698984975, "name": "Math Tutor", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a personal math tutor. When asked a question, write and run Python code to answer the question.", "tools": [ { @@ -281,7 +281,7 @@ paths: "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies.", "tools": [{"type": "file_search"}], "tool_resources": {"file_search": {"vector_store_ids": ["vs_123"]}}, - "model": "gpt-4o" + "model": "gpt-5" }' python: | from openai import OpenAI @@ -292,7 +292,7 @@ paths: name="HR Helper", tools=[{"type": "file_search"}], tool_resources={"file_search": {"vector_store_ids": ["vs_123"]}}, - model="gpt-4o" + model="gpt-5" ) print(my_assistant) javascript: |- @@ -311,7 +311,7 @@ paths: vector_store_ids: ["vs_123"] } }, - model: "gpt-4o" + model: "gpt-5" }); console.log(myAssistant); @@ -325,7 +325,7 @@ paths: "created_at": 1699009403, "name": "HR Helper", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies.", "tools": [ { @@ -403,7 +403,7 @@ paths: "created_at": 1699009709, "name": "HR Helper", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies.", "tools": [ { @@ -457,7 +457,7 @@ paths: -d '{ "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.", "tools": [{"type": "file_search"}], - "model": "gpt-4o" + "model": "gpt-5" }' python: | from openai import OpenAI @@ -468,7 +468,7 @@ paths: instructions="You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.", name="HR Helper", tools=[{"type": "file_search"}], - model="gpt-4o" + model="gpt-5" ) print(my_updated_assistant) @@ -485,7 +485,7 @@ paths: "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.", name: "HR Helper", tools: [{ type: "file_search" }], - model: "gpt-4o" + model: "gpt-5" } ); @@ -500,7 +500,7 @@ paths: "created_at": 1699009709, "name": "HR Helper", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.", "tools": [ { @@ -1941,7 +1941,7 @@ paths: { "object": "chat.completion", "id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2", - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -2018,7 +2018,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "VAR_chat_model_id", + "model": "gpt-5.6-sol", "messages": [ { "role": "developer", @@ -2035,7 +2035,7 @@ paths: client = OpenAI() completion = client.chat.completions.create( - model="VAR_chat_model_id", + model="gpt-5.6-sol", messages=[ {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} @@ -2051,7 +2051,7 @@ paths: async function main() { const completion = await openai.chat.completions.create({ messages: [{ role: "developer", content: "You are a helpful assistant." }], - model: "VAR_chat_model_id", + model: "gpt-5.6-sol", store: true, }); @@ -2066,7 +2066,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2084,7 +2084,7 @@ paths: "id": "chatcmpl-B9MBs8CjcvOU2jLn4n570S5qMJKcT", "object": "chat.completion", "created": 1741569952, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "choices": [ { "index": 0, @@ -2122,7 +2122,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "messages": [ { "role": "user", @@ -2148,7 +2148,7 @@ paths: client = OpenAI() response = client.chat.completions.create( - model="gpt-5.4", + model="gpt-5.6-sol", messages=[ { "role": "user", @@ -2174,7 +2174,7 @@ paths: async function main() { const response = await openai.chat.completions.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", messages: [ { role: "user", @@ -2200,7 +2200,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2221,7 +2221,7 @@ paths: "id": "chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG", "object": "chat.completion", "created": 1741570283, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "choices": [ { "index": 0, @@ -2259,7 +2259,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "VAR_chat_model_id", + "model": "gpt-5.6-sol", "messages": [ { "role": "developer", @@ -2277,7 +2277,7 @@ paths: client = OpenAI() completion = client.chat.completions.create( - model="VAR_chat_model_id", + model="gpt-5.6-sol", messages=[ {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} @@ -2294,7 +2294,7 @@ paths: async function main() { const completion = await openai.chat.completions.create({ - model: "VAR_chat_model_id", + model: "gpt-5.6-sol", messages: [ {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} @@ -2317,7 +2317,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2337,13 +2337,13 @@ paths: } } response: | - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} + {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-5.6-sol", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]} + {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-5.6-sol", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]} .... - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-5.6-sol", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} - title: Functions request: curl: | @@ -2351,7 +2351,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "messages": [ { "role": "user", @@ -2409,7 +2409,7 @@ paths: ] messages = [{"role": "user", "content": "What's the weather like in Boston today?"}] completion = client.chat.completions.create( - model="VAR_chat_model_id", + model="gpt-5.6-sol", messages=messages, tools=tools, tool_choice="auto" @@ -2445,7 +2445,7 @@ paths: ]; const response = await openai.chat.completions.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", messages: messages, tools: tools, tool_choice: "auto", @@ -2462,7 +2462,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2507,7 +2507,7 @@ paths: "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1699896916, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "choices": [ { "index": 0, @@ -2547,13 +2547,14 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "VAR_chat_model_id", + "model": "gpt-5.6-sol", "messages": [ { "role": "user", "content": "Hello!" } ], + "reasoning_effort": "none", "logprobs": true, "top_logprobs": 2 }' @@ -2562,10 +2563,11 @@ paths: client = OpenAI() completion = client.chat.completions.create( - model="VAR_chat_model_id", + model="gpt-5.6-sol", messages=[ {"role": "user", "content": "Hello!"} ], + reasoning_effort="none", logprobs=True, top_logprobs=2 ) @@ -2580,7 +2582,8 @@ paths: async function main() { const completion = await openai.chat.completions.create({ messages: [{ role: "user", content: "Hello!" }], - model: "VAR_chat_model_id", + model: "gpt-5.6-sol", + reasoning_effort: "none", logprobs: true, top_logprobs: 2, }); @@ -2596,7 +2599,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2607,6 +2610,7 @@ paths: ChatCompletionOptions options = new() { + ReasoningEffortLevel = ChatReasoningEffortLevel.None, IncludeLogProbabilities = true, TopLogProbabilityCount = 2 }; @@ -2619,7 +2623,7 @@ paths: "id": "chatcmpl-123", "object": "chat.completion", "created": 1702685778, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "choices": [ { "index": 0, @@ -2864,7 +2868,7 @@ paths: { "object": "chat.completion", "id": "chatcmpl-abc123", - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -2953,7 +2957,7 @@ paths: { "object": "chat.completion", "id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2", - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -3152,7 +3156,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "VAR_completion_model_id", + "model": "gpt-3.5-turbo-instruct", "prompt": "Say this is a test", "max_tokens": 7, "temperature": 0 @@ -3162,7 +3166,7 @@ paths: client = OpenAI() client.completions.create( - model="VAR_completion_model_id", + model="gpt-3.5-turbo-instruct", prompt="Say this is a test", max_tokens=7, temperature=0 @@ -3174,7 +3178,7 @@ paths: async function main() { const completion = await openai.completions.create({ - model: "VAR_completion_model_id", + model: "gpt-3.5-turbo-instruct", prompt: "Say this is a test.", max_tokens: 7, temperature: 0, @@ -3188,7 +3192,7 @@ paths: "id": "cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7", "object": "text_completion", "created": 1589478378, - "model": "VAR_completion_model_id", + "model": "gpt-3.5-turbo-instruct", "system_fingerprint": "fp_44709d6fcb", "choices": [ { @@ -3211,7 +3215,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "VAR_completion_model_id", + "model": "gpt-3.5-turbo-instruct", "prompt": "Say this is a test", "max_tokens": 7, "temperature": 0, @@ -3222,7 +3226,7 @@ paths: client = OpenAI() for chunk in client.completions.create( - model="VAR_completion_model_id", + model="gpt-3.5-turbo-instruct", prompt="Say this is a test", max_tokens=7, temperature=0, @@ -3236,7 +3240,7 @@ paths: async function main() { const stream = await openai.completions.create({ - model: "VAR_completion_model_id", + model: "gpt-3.5-turbo-instruct", prompt: "Say this is a test.", stream: true, }); @@ -5086,14 +5090,14 @@ paths: -X POST \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ - -d '{"name":"gpt-4o-mini","data_source":{"type":"completions","input_messages":{"type":"template","template":[{"role":"developer","content":"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\n\n# Steps\n\n1. Analyze the content of the news headline to understand its primary focus.\n2. Extract the subject matter, identifying any key indicators or keywords.\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\n4. Ensure only one category is selected per headline.\n\n# Output Format\n\nRespond with the chosen category as a single word. For instance: \"Technology\", \"Markets\", \"World\", \"Business\", or \"Sports\".\n\n# Examples\n\n**Input**: \"Apple Unveils New iPhone Model, Featuring Advanced AI Features\" \n**Output**: \"Technology\"\n\n**Input**: \"Global Stocks Mixed as Investors Await Central Bank Decisions\" \n**Output**: \"Markets\"\n\n**Input**: \"War in Ukraine: Latest Updates on Negotiation Status\" \n**Output**: \"World\"\n\n**Input**: \"Microsoft in Talks to Acquire Gaming Company for $2 Billion\" \n**Output**: \"Business\"\n\n**Input**: \"Manchester United Secures Win in Premier League Football Match\" \n**Output**: \"Sports\" \n\n# Notes\n\n- If the headline appears to fit into more than one category, choose the most dominant theme.\n- Keywords or phrases such as \"stocks\", \"company acquisition\", \"match\", or technological brands can be good indicators for classification.\n"} , {"role":"user","content":"{{item.input}}"}]} ,"sampling_params":{"temperature":1,"max_completions_tokens":2048,"top_p":1,"seed":42},"model":"gpt-4o-mini","source":{"type":"file_content","content":[{"item":{"input":"Tech Company Launches Advanced Artificial Intelligence Platform","ground_truth":"Technology"}}]}}' + -d '{"name":"gpt-5.6-sol","data_source":{"type":"completions","input_messages":{"type":"template","template":[{"role":"developer","content":"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\n\n# Steps\n\n1. Analyze the content of the news headline to understand its primary focus.\n2. Extract the subject matter, identifying any key indicators or keywords.\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\n4. Ensure only one category is selected per headline.\n\n# Output Format\n\nRespond with the chosen category as a single word. For instance: \"Technology\", \"Markets\", \"World\", \"Business\", or \"Sports\".\n\n# Examples\n\n**Input**: \"Apple Unveils New iPhone Model, Featuring Advanced AI Features\" \n**Output**: \"Technology\"\n\n**Input**: \"Global Stocks Mixed as Investors Await Central Bank Decisions\" \n**Output**: \"Markets\"\n\n**Input**: \"War in Ukraine: Latest Updates on Negotiation Status\" \n**Output**: \"World\"\n\n**Input**: \"Microsoft in Talks to Acquire Gaming Company for $2 Billion\" \n**Output**: \"Business\"\n\n**Input**: \"Manchester United Secures Win in Premier League Football Match\" \n**Output**: \"Sports\" \n\n# Notes\n\n- If the headline appears to fit into more than one category, choose the most dominant theme.\n- Keywords or phrases such as \"stocks\", \"company acquisition\", \"match\", or technological brands can be good indicators for classification.\n"} , {"role":"user","content":"{{item.input}}"}]} ,"sampling_params":{"max_completions_tokens":2048},"model":"gpt-5.6-sol","source":{"type":"file_content","content":[{"item":{"input":"Tech Company Launches Advanced Artificial Intelligence Platform","ground_truth":"Technology"}}]}}}' python: | from openai import OpenAI client = OpenAI() run = client.evals.runs.create( "eval_67e579652b548190aaa83ada4b125f47", - name="gpt-4o-mini", + name="gpt-5.6-sol", data_source={ "type": "completions", "input_messages": { @@ -5110,12 +5114,9 @@ paths: ] }, "sampling_params": { - "temperature": 1, - "max_completions_tokens": 2048, - "top_p": 1, - "seed": 42 + "max_completions_tokens": 2048 }, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "source": { "type": "file_content", "content": [ @@ -5138,7 +5139,7 @@ paths: const run = await openai.evals.runs.create( "eval_67e579652b548190aaa83ada4b125f47", { - name: "gpt-4o-mini", + name: "gpt-5.6-sol", data_source: { type: "completions", input_messages: { @@ -5155,12 +5156,9 @@ paths: ] }, sampling_params: { - temperature: 1, - max_completions_tokens: 2048, - top_p: 1, - seed: 42 + max_completions_tokens: 2048 }, - model: "gpt-4o-mini", + model: "gpt-5.6-sol", source: { type: "file_content", content: [ @@ -5183,8 +5181,8 @@ paths: "eval_id": "eval_67e579652b548190aaa83ada4b125f47", "report_url": "https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47&run_id=evalrun_67e57965b480819094274e3a32235e4c", "status": "queued", - "model": "gpt-4o-mini", - "name": "gpt-4o-mini", + "model": "gpt-5.6-sol", + "name": "gpt-5.6-sol", "created_at": 1743092069, "result_counts": { "total": 0, @@ -5228,11 +5226,8 @@ paths: } ] }, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "sampling_params": { - "seed": 42, - "temperature": 1.0, - "top_p": 1.0, "max_completions_tokens": 2048 } }, @@ -5305,8 +5300,8 @@ paths: "eval_id": "eval_67abd54d9b0081909a86353f6fb9317a", "report_url": "https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7", "status": "queued", - "model": "gpt-4o-mini", - "name": "gpt-4o-mini", + "model": "gpt-5.6-sol", + "name": "gpt-5.6-sol", "created_at": 1743092069, "result_counts": { "total": 0, @@ -5434,11 +5429,8 @@ paths: } ] }, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "sampling_params": { - "seed": 42, - "temperature": 1.0, - "top_p": 1.0, "max_completions_tokens": 2048 } }, @@ -5511,8 +5503,8 @@ paths: "eval_id": "eval_67abd54d9b0081909a86353f6fb9317a", "report_url": "https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7", "status": "canceled", - "model": "gpt-4o-mini", - "name": "gpt-4o-mini", + "model": "gpt-5.6-sol", + "name": "gpt-5.6-sol", "created_at": 1743092069, "result_counts": { "total": 0, @@ -5640,11 +5632,8 @@ paths: } ] }, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "sampling_params": { - "seed": 42, - "temperature": 1.0, - "top_p": 1.0, "max_completions_tokens": 2048 } }, @@ -5876,7 +5865,7 @@ paths: } ], "finish_reason": "stop", - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "usage": { "total_tokens": 325, "completion_tokens": 2, @@ -6012,7 +6001,7 @@ paths: } ], "finish_reason": "stop", - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "usage": { "total_tokens": 325, "completion_tokens": 2, @@ -6522,11 +6511,11 @@ paths: "completion_tokens": 134, "cached_tokens": 0 }, - "sampled_model_name": "gpt-4o-2024-08-06" + "sampled_model_name": "gpt-5-mini" }, "sub_rewards": {}, "model_grader_token_usage_per_model": { - "gpt-4o-2024-08-06": { + "gpt-5-mini": { "prompt_tokens": 190, "total_tokens": 324, "completion_tokens": 134, @@ -8268,7 +8257,7 @@ paths: required: true schema: type: string - example: gpt-4o-mini + example: gpt-5.6-sol description: The ID of the model to use for this request responses: '200': @@ -8283,20 +8272,20 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/models/VAR_chat_model_id \ + curl https://api.openai.com/v1/models/gpt-5.6-sol \ -H "Authorization: Bearer $OPENAI_API_KEY" python: | from openai import OpenAI client = OpenAI() - client.models.retrieve("VAR_chat_model_id") + client.models.retrieve("gpt-5.6-sol") javascript: |- import OpenAI from "openai"; const openai = new OpenAI(); async function main() { - const model = await openai.models.retrieve("VAR_chat_model_id"); + const model = await openai.models.retrieve("gpt-5.6-sol"); console.log(model); } @@ -8316,7 +8305,7 @@ paths: Console.WriteLine(model.Value.Id); response: | { - "id": "VAR_chat_model_id", + "id": "gpt-5.6-sol", "object": "model", "created": 1686935002, "owned_by": "openai", @@ -9491,6 +9480,14 @@ paths: type: array items: type: string + - name: line_items + in: query + description: Return only costs for these exact line item names. Each value must match the complete `line_item` value, for example `gpt-5.6-sol, input_tokens`. + required: false + schema: + type: array + items: + type: string - name: group_by in: query description: Group the costs by the specified fields. Support fields include `project_id`, `line_item`, `api_key_id` and any combination of them. @@ -11672,7 +11669,7 @@ paths: "object": "project.model_permissions", "mode": "allow_list", "model_ids": [ - "gpt-4.1", + "gpt-5.6-sol", "o3" ] } @@ -16535,7 +16532,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": "Tell me a three sentence bedtime story about a unicorn." }' javascript: | @@ -16544,7 +16541,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", input: "Tell me a three sentence bedtime story about a unicorn." }); @@ -16555,7 +16552,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", input="Tell me a three sentence bedtime story about a unicorn." ) @@ -16565,7 +16562,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -16583,7 +16580,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -16638,7 +16635,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": [ { "role": "user", @@ -16658,7 +16655,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", input: [ { role: "user", @@ -16681,7 +16678,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", input=[ { "role": "user", @@ -16704,7 +16701,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -16732,7 +16729,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -16787,7 +16784,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": [ { "role": "user", @@ -16808,7 +16805,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", input: [ { role: "user", @@ -16831,7 +16828,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", input=[ { "role": "user", @@ -16861,7 +16858,7 @@ paths: "instructions": null, "max_output_tokens": null, "max_tool_calls": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "id": "msg_686eef60d3e081a29283bdcbc4322fd90e34c516d176ff86", @@ -16919,7 +16916,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "tools": [{ "type": "web_search_preview" }], "input": "What was a positive news story from today?" }' @@ -16929,7 +16926,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", tools: [{ type: "web_search_preview" }], input: "What was a positive news story from today?", }); @@ -16941,7 +16938,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", tools=[{ "type": "web_search_preview" }], input="What was a positive news story from today?", ) @@ -16953,7 +16950,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -16981,7 +16978,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "web_search_call", @@ -17076,7 +17073,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "tools": [{ "type": "file_search", "vector_store_ids": ["vs_1234567890"], @@ -17090,7 +17087,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", tools: [{ type: "file_search", vector_store_ids: ["vs_1234567890"], @@ -17106,7 +17103,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", tools=[{ "type": "file_search", "vector_store_ids": ["vs_1234567890"], @@ -17122,7 +17119,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -17153,7 +17150,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "file_search_call", @@ -17279,7 +17276,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "instructions": "You are a helpful assistant.", "input": "Hello!", "stream": true @@ -17290,7 +17287,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", instructions="You are a helpful assistant.", input="Hello!", stream=True @@ -17304,7 +17301,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", instructions: "You are a helpful assistant.", input: "Hello!", stream: true, @@ -17321,7 +17318,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -17343,10 +17340,10 @@ paths: } response: | event: response.created - data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.4","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.6-sol","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} event: response.in_progress - data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.4","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.6-sol","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} event: response.output_item.added data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]}} @@ -17369,7 +17366,7 @@ paths: data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}} event: response.completed - data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.4","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}} + data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.6-sol","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}} - title: Functions request: curl: | @@ -17377,7 +17374,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": "What is the weather like in Boston today?", "tools": [ { @@ -17427,7 +17424,7 @@ paths: ] response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", tools=tools, input="What is the weather like in Boston today?", tool_choice="auto" @@ -17459,7 +17456,7 @@ paths: ]; const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", tools: tools, input: "What is the weather like in Boston today?", tool_choice: "auto", @@ -17471,7 +17468,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -17517,7 +17514,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "function_call", @@ -17590,7 +17587,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "o3-mini", + "model": "gpt-5.6-sol", "input": "How much wood would a woodchuck chuck?", "reasoning": { "effort": "high" @@ -17601,7 +17598,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "o3-mini", + model: "gpt-5.6-sol", input: "How much wood would a woodchuck chuck?", reasoning: { effort: "high" @@ -17614,7 +17611,7 @@ paths: client = OpenAI() response = client.responses.create( - model="o3-mini", + model="gpt-5.6-sol", input="How much wood would a woodchuck chuck?", reasoning={ "effort": "high" @@ -17627,7 +17624,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "o3-mini", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -17655,7 +17652,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "o1-2024-12-17", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -17802,7 +17799,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -17967,7 +17964,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -18318,7 +18315,7 @@ paths: "completed_at": null, "required_action": null, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a helpful assistant.", "tools": [], "tool_resources": {}, @@ -18396,13 +18393,13 @@ paths: data: {"id":"thread_123","object":"thread","created_at":1710348075,"metadata":{}} event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.step.created data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} @@ -18434,7 +18431,7 @@ paths: data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}} event: thread.run.completed - {"id":"run_123","object":"thread.run","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1713226836,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1713226837,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + {"id":"run_123","object":"thread.run","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1713226836,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1713226837,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: done data: [DONE] @@ -18564,13 +18561,13 @@ paths: data: {"id":"thread_123","object":"thread","created_at":1710351818,"metadata":{}} event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.step.created data: {"id":"step_001","object":"thread.run.step","created_at":1710351819,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710352418,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null} @@ -18596,7 +18593,7 @@ paths: data: {"id":"step_001","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"type":"function","function":{"arguments":"\"}"}}]}}} event: thread.run.requires_action - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"requires_action","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":{"type":"submit_tool_outputs","submit_tool_outputs":{"tool_calls":[{"id":"call_XXNp8YGaFrjrSjgqxtC8JJ1B","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}"}}]}},"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"requires_action","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":{"type":"submit_tool_outputs","submit_tool_outputs":{"tool_calls":[{"id":"call_XXNp8YGaFrjrSjgqxtC8JJ1B","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}"}}]}},"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: done data: [DONE] @@ -19396,7 +19393,7 @@ paths: "failed_at": null, "completed_at": 1699075073, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "incomplete_details": null, "tools": [ @@ -19443,7 +19440,7 @@ paths: "failed_at": null, "completed_at": 1699063291, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "incomplete_details": null, "tools": [ @@ -19576,7 +19573,7 @@ paths: "failed_at": null, "completed_at": 1699063291, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "incomplete_details": null, "tools": [ @@ -19640,13 +19637,13 @@ paths: main(); response: | event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710330641,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710330641,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.step.created data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} @@ -19678,7 +19675,7 @@ paths: data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710330642,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}} event: thread.run.completed - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710330641,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710330642,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710330641,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710330642,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: done data: [DONE] @@ -19794,13 +19791,13 @@ paths: main(); response: | event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710348075,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710348075,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.step.created data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} @@ -19832,7 +19829,7 @@ paths: data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}} event: thread.run.completed - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710348075,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710348077,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710348075,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710348077,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: done data: [DONE] @@ -19914,7 +19911,7 @@ paths: "failed_at": null, "completed_at": 1699075073, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "incomplete_details": null, "tools": [ @@ -20035,7 +20032,7 @@ paths: "failed_at": null, "completed_at": 1699075073, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "incomplete_details": null, "tools": [ @@ -20150,7 +20147,7 @@ paths: "failed_at": null, "completed_at": null, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You summarize books.", "tools": [ { @@ -20527,7 +20524,7 @@ paths: "failed_at": null, "completed_at": null, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "tools": [ { @@ -20630,10 +20627,10 @@ paths: data: {"id":"step_001","object":"thread.run.step","created_at":1710352449,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"completed","cancelled_at":null,"completed_at":1710352475,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[{"id":"call_iWr0kQ2EaYMaxNdl0v3KYkx7","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}","output":"70 degrees and sunny."}}]},"usage":{"prompt_tokens":291,"completion_tokens":24,"total_tokens":315}} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":1710352448,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":1710352448,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710352475,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710352475,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: thread.run.step.created data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":null} @@ -20671,7 +20668,7 @@ paths: data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710352477,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":{"prompt_tokens":329,"completion_tokens":18,"total_tokens":347}} event: thread.run.completed - data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710352475,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710352477,"required_action":null,"last_error":null,"model":"gpt-4o","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710352475,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710352477,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} event: done data: [DONE] @@ -23559,7 +23556,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5", + "model": "gpt-5.6-sol", "input": "Tell me a joke." }' javascript: | @@ -23568,7 +23565,7 @@ paths: const client = new OpenAI(); const response = await client.responses.inputTokens.count({ - model: "gpt-5", + model: "gpt-5.6-sol", input: "Tell me a joke.", }); @@ -23579,7 +23576,7 @@ paths: client = OpenAI() response = client.responses.input_tokens.count( - model="gpt-5", + model="gpt-5.6-sol", input="Tell me a joke." ) print(response.input_tokens) @@ -23597,7 +23594,7 @@ paths: func main() { client := openai.NewClient() response, err := client.Responses.InputTokens.Count(context.TODO(), responses.InputTokenCountParams{ - Model: "gpt-5", + Model: "gpt-5.6-sol", Input: "Tell me a joke.", }) if err != nil { @@ -23610,7 +23607,7 @@ paths: openai = OpenAI::Client.new - response = openai.responses.input_tokens.count(model: "gpt-5", input: "Tell me a joke.") + response = openai.responses.input_tokens.count(model: "gpt-5.6-sol", input: "Tell me a joke.") puts(response) java: | @@ -23628,7 +23625,7 @@ paths: OpenAIClient client = OpenAIOkHttpClient.fromEnv(); InputTokenCountParams params = InputTokenCountParams.builder() - .model("gpt-5") + .model("gpt-5.6-sol") .input("Tell me a joke.") .build(); @@ -23673,7 +23670,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.1-codex-max", + "model": "gpt-5.6-sol", "input": [ { "role": "user", @@ -23702,7 +23699,7 @@ paths: // Compact the previous response if you are running out of tokens const compactedResponse = await openai.responses.compact({ - model: "gpt-5.1-codex-max", + model: "gpt-5.6-sol", input: [ { role: "user", @@ -23734,7 +23731,7 @@ paths: client = OpenAI() compacted_response = client.responses.compact( - model="gpt-5.1-codex-max", + model="gpt-5.6-sol", input=[ { "role": "user", @@ -24924,7 +24921,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": "Tell me a three sentence bedtime story about a unicorn." }' javascript: | @@ -24933,7 +24930,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", input: "Tell me a three sentence bedtime story about a unicorn." }); @@ -24944,7 +24941,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", input="Tell me a three sentence bedtime story about a unicorn." ) @@ -24954,7 +24951,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -24972,7 +24969,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -25027,7 +25024,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": [ { "role": "user", @@ -25047,7 +25044,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", input: [ { role: "user", @@ -25070,7 +25067,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", input=[ { "role": "user", @@ -25093,7 +25090,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -25121,7 +25118,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -25176,7 +25173,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": [ { "role": "user", @@ -25197,7 +25194,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", input: [ { role: "user", @@ -25220,7 +25217,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", input=[ { "role": "user", @@ -25250,7 +25247,7 @@ paths: "instructions": null, "max_output_tokens": null, "max_tool_calls": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "id": "msg_686eef60d3e081a29283bdcbc4322fd90e34c516d176ff86", @@ -25308,7 +25305,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "tools": [{ "type": "web_search_preview" }], "input": "What was a positive news story from today?" }' @@ -25318,7 +25315,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", tools: [{ type: "web_search_preview" }], input: "What was a positive news story from today?", }); @@ -25330,7 +25327,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", tools=[{ "type": "web_search_preview" }], input="What was a positive news story from today?", ) @@ -25342,7 +25339,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -25370,7 +25367,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "web_search_call", @@ -25465,7 +25462,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "tools": [{ "type": "file_search", "vector_store_ids": ["vs_1234567890"], @@ -25479,7 +25476,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", tools: [{ type: "file_search", vector_store_ids: ["vs_1234567890"], @@ -25495,7 +25492,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", tools=[{ "type": "file_search", "vector_store_ids": ["vs_1234567890"], @@ -25511,7 +25508,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -25542,7 +25539,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "file_search_call", @@ -25668,7 +25665,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "instructions": "You are a helpful assistant.", "input": "Hello!", "stream": true @@ -25679,7 +25676,7 @@ paths: client = OpenAI() response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", instructions="You are a helpful assistant.", input="Hello!", stream=True @@ -25693,7 +25690,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", instructions: "You are a helpful assistant.", input: "Hello!", stream: true, @@ -25710,7 +25707,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -25732,10 +25729,10 @@ paths: } response: | event: response.created - data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.4","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.6-sol","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} event: response.in_progress - data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.4","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.6-sol","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} event: response.output_item.added data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]}} @@ -25758,7 +25755,7 @@ paths: data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}} event: response.completed - data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.4","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}} + data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-5.6-sol","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}} - title: Functions request: curl: | @@ -25766,7 +25763,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "input": "What is the weather like in Boston today?", "tools": [ { @@ -25816,7 +25813,7 @@ paths: ] response = client.responses.create( - model="gpt-5.4", + model="gpt-5.6-sol", tools=tools, input="What is the weather like in Boston today?", tool_choice="auto" @@ -25848,7 +25845,7 @@ paths: ]; const response = await openai.responses.create({ - model: "gpt-5.4", + model: "gpt-5.6-sol", tools: tools, input: "What is the weather like in Boston today?", tool_choice: "auto", @@ -25860,7 +25857,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "gpt-5.4", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -25906,7 +25903,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-5.4", + "model": "gpt-5.6-sol", "output": [ { "type": "function_call", @@ -25979,7 +25976,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "o3-mini", + "model": "gpt-5.6-sol", "input": "How much wood would a woodchuck chuck?", "reasoning": { "effort": "high" @@ -25990,7 +25987,7 @@ paths: const openai = new OpenAI(); const response = await openai.responses.create({ - model: "o3-mini", + model: "gpt-5.6-sol", input: "How much wood would a woodchuck chuck?", reasoning: { effort: "high" @@ -26003,7 +26000,7 @@ paths: client = OpenAI() response = client.responses.create( - model="o3-mini", + model="gpt-5.6-sol", input="How much wood would a woodchuck chuck?", reasoning={ "effort": "high" @@ -26016,7 +26013,7 @@ paths: using OpenAI.Responses; OpenAIResponseClient client = new( - model: "o3-mini", + model: "gpt-5.6-sol", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -26044,7 +26041,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "o1-2024-12-17", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -26218,7 +26215,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -26409,7 +26406,7 @@ paths: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [ { "type": "message", @@ -26489,7 +26486,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5.1-codex-max", + "model": "gpt-5.6-sol", "input": [ { "role": "user", @@ -26518,7 +26515,7 @@ paths: // Compact the previous response if you are running out of tokens const compactedResponse = await openai.responses.compact({ - model: "gpt-5.1-codex-max", + model: "gpt-5.6-sol", input: [ { role: "user", @@ -26550,7 +26547,7 @@ paths: client = OpenAI() compacted_response = client.responses.compact( - model="gpt-5.1-codex-max", + model="gpt-5.6-sol", input=[ { "role": "user", @@ -26770,7 +26767,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-5", + "model": "gpt-5.6-sol", "input": "Tell me a joke." }' javascript: | @@ -26779,7 +26776,7 @@ paths: const client = new OpenAI(); const response = await client.responses.inputTokens.count({ - model: "gpt-5", + model: "gpt-5.6-sol", input: "Tell me a joke.", }); @@ -26790,7 +26787,7 @@ paths: client = OpenAI() response = client.responses.input_tokens.count( - model="gpt-5", + model="gpt-5.6-sol", input="Tell me a joke." ) print(response.input_tokens) @@ -26808,7 +26805,7 @@ paths: func main() { client := openai.NewClient() response, err := client.Responses.InputTokens.Count(context.TODO(), responses.InputTokenCountParams{ - Model: "gpt-5", + Model: "gpt-5.6-sol", Input: "Tell me a joke.", }) if err != nil { @@ -26821,7 +26818,7 @@ paths: openai = OpenAI::Client.new - response = openai.responses.input_tokens.count(model: "gpt-5", input: "Tell me a joke.") + response = openai.responses.input_tokens.count(model: "gpt-5.6-sol", input: "Tell me a joke.") puts(response) java: | @@ -26839,7 +26836,7 @@ paths: OpenAIClient client = OpenAIOkHttpClient.fromEnv(); InputTokenCountParams params = InputTokenCountParams.builder() - .model("gpt-5") + .model("gpt-5.6-sol") .input("Tell me a joke.") .build(); @@ -27397,7 +27394,7 @@ components: "created_at": 1698984975, "name": "Math Tutor", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a personal math tutor. When asked a question, write and run Python code to answer the question.", "tools": [ { @@ -28771,7 +28768,7 @@ components: model: type: string description: | - Model ID used to process the batch, like `gpt-5-2025-08-07`. OpenAI + Model ID used to process the batch, like `gpt-5.6-sol`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. @@ -28905,8 +28902,8 @@ components: { "id": "batch_abc123", "object": "batch", - "endpoint": "/v1/completions", - "model": "gpt-5-2025-08-07", + "endpoint": "/v1/chat/completions", + "model": "gpt-5.6-sol", "errors": null, "input_file_id": "file-abc123", "completion_window": "24h", @@ -29210,7 +29207,7 @@ components: { "object": "chat.completion", "id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2", - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -30467,13 +30464,6 @@ components: type: integer default: 0 description: Total number of tokens used in the request (prompt + completion). - compute_units: - anyOf: - - type: integer - minimum: 0 - - type: 'null' - description: | - Compute units for the request. Currently null when available. completion_tokens_details: type: object description: Breakdown of tokens used in a completion. @@ -31047,7 +31037,7 @@ components: "value": 0.06, "currency": "usd" }, - "line_item": "input_tokens", + "line_item": "gpt-5.6-sol, input_tokens", "project_id": "proj_abc", "quantity": 10000, "quantity_unit": "tokens" @@ -31059,7 +31049,7 @@ components: model: description: | ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models) for descriptions of them. - example: gpt-4o + example: gpt-5 anyOf: - type: string - $ref: '#/components/schemas/AssistantSupportedModels' @@ -31278,7 +31268,7 @@ components: $ref: '#/components/schemas/ChatCompletionRequestMessage' model: description: | - Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI + Model ID used to generate the response, like `gpt-5.6-sol` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. @@ -31667,7 +31657,7 @@ components: "id": "chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG", "object": "chat.completion", "created": 1741570283, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "choices": [ { "index": 0, @@ -31813,13 +31803,13 @@ components: name: The chat completion chunk object group: chat example: | - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"obfuscation":"r4N7vQ2m"} + {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-5.6-sol", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"obfuscation":"r4N7vQ2m"} - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"obfuscation":"p9K3xT6w"} + {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-5.6-sol", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"obfuscation":"p9K3xT6w"} .... - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"obfuscation":""} + {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-5.6-sol", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"obfuscation":""} CreateCompletionRequest: type: object properties: @@ -32094,7 +32084,7 @@ components: "id": "cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7", "object": "text_completion", "created": 1589478378, - "model": "gpt-4-turbo", + "model": "gpt-3.5-turbo-instruct", "choices": [ { "text": "\n\nThis is indeed a test", @@ -32391,17 +32381,17 @@ components: group: eval runs example: | { - "name": "gpt-4o-mini-2024-07-18", + "name": "gpt-5.6-sol", "data_source": { "type": "completions", "input_messages": { "type": "item_reference", "item_reference": "item.input" }, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "source": { "type": "stored_completions", - "model": "gpt-4o-mini-2024-07-18" + "model": "gpt-5.6-sol" } } } @@ -32752,17 +32742,17 @@ components: group: eval runs example: | { - "name": "gpt-4o-mini-2024-07-18", + "name": "gpt-5.6-sol", "data_source": { "type": "responses", "input_messages": { "type": "item_reference", "item_reference": "item.input" }, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "source": { "type": "responses", - "model": "gpt-4o-mini-2024-07-18" + "model": "gpt-5.6-sol" } } } @@ -35633,7 +35623,7 @@ components: Like: - Improve the quality of my chatbot - See how well my chatbot handles customer support - - Check if o4-mini is better at my usecase than gpt-4o + - Check if o4-mini is better at my usecase than gpt-5.6-sol properties: object: type: string @@ -36226,9 +36216,7 @@ components: example: | { "type": "responses", - "model": "gpt-4o-mini-2024-07-18", - "temperature": 0.7, - "top_p": 1.0, + "model": "gpt-5.6-sol", "users": ["user1", "user2"], "tools": ["tool1", "tool2"], "instructions_search": "You are a coding assistant" @@ -36381,8 +36369,8 @@ components: "eval_id": "eval_67e579652b548190aaa83ada4b125f47", "report_url": "https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47?run_id=evalrun_67e57965b480819094274e3a32235e4c", "status": "queued", - "model": "gpt-4o-mini", - "name": "gpt-4o-mini", + "model": "gpt-5.6-sol", + "name": "gpt-5.6-sol", "created_at": 1743092069, "result_counts": { "total": 0, @@ -36510,11 +36498,8 @@ components: } ] }, - "model": "gpt-4o-mini", + "model": "gpt-5.6-sol", "sampling_params": { - "seed": 42, - "temperature": 1.0, - "top_p": 1.0, "max_completions_tokens": 2048 } }, @@ -36799,7 +36784,7 @@ components: } ], "finish_reason": "stop", - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "usage": { "total_tokens": 521, "completion_tokens": 2, @@ -36893,7 +36878,7 @@ components: } ], "finish_reason": "stop", - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "usage": { "total_tokens": 521, "completion_tokens": 2, @@ -37008,7 +36993,7 @@ components: model: anyOf: - type: string - description: An optional model to filter by (e.g., 'gpt-4o'). + description: An optional model to filter by (e.g., 'gpt-5.6-sol'). - type: 'null' created_after: anyOf: @@ -37033,7 +37018,7 @@ components: example: | { "type": "stored_completions", - "model": "gpt-4o", + "model": "gpt-5.6-sol", "created_after": 1668124800, "created_before": 1668124900, "limit": 100, @@ -39855,7 +39840,7 @@ components: "created_at": 1698982736, "name": "Coding Tutor", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a helpful assistant designed to make me better at coding!", "tools": [], "tool_resources": {}, @@ -39870,7 +39855,7 @@ components: "created_at": 1698982718, "name": "My Assistant", "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": "You are a helpful assistant designed to make me better at coding!", "tools": [], "tool_resources": {}, @@ -39885,7 +39870,7 @@ components: "created_at": 1698982643, "name": null, "description": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "tools": [], "tool_resources": {}, @@ -41435,7 +41420,7 @@ components: name: The model object example: | { - "id": "VAR_chat_model_id", + "id": "gpt-5.6-sol", "object": "model", "created": 1686935002, "owned_by": "openai", @@ -41450,9 +41435,9 @@ components: - $ref: '#/components/schemas/ModelIdsResponses' - type: string - type: 'null' - description: Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. + description: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. ModelIdsResponses: - example: gpt-5.1 + example: gpt-5.6-sol anyOf: - $ref: '#/components/schemas/ModelIdsShared' - type: string @@ -41478,7 +41463,7 @@ components: - gpt-daybreak-red-latest - gpt-5.6-cyber ModelIdsShared: - example: gpt-5.4 + example: gpt-5.6-sol anyOf: - type: string - $ref: '#/components/schemas/ChatModel' @@ -42788,7 +42773,7 @@ components: "object": "project.model_permissions", "mode": "allow_list", "model_ids": [ - "gpt-4.1", + "gpt-5.6-sol", "o3" ] } @@ -51936,8 +51921,6 @@ components: Reasoning: type: object description: | - **gpt-5 and o-series models only** - Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning). title: Reasoning @@ -52148,6 +52131,7 @@ components: description: The reason why the response is incomplete. enum: - max_output_tokens + - max_messages - content_filter - type: 'null' output: @@ -52580,7 +52564,7 @@ components: "input": [], "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "output": [ { "id": "msg_123", @@ -52766,7 +52750,7 @@ components: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [], "parallel_tool_calls": true, "previous_response_id": null, @@ -53001,7 +52985,7 @@ components: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "output": [], "previous_response_id": null, "reasoning_effort": null, @@ -53541,7 +53525,7 @@ components: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [], "parallel_tool_calls": true, "previous_response_id": null, @@ -53607,7 +53591,7 @@ components: }, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "output": [], "previous_response_id": null, "reasoning_effort": null, @@ -54213,7 +54197,7 @@ components: - type: 'null' model: description: | - Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI + Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. @@ -54958,13 +54942,6 @@ components: total_tokens: type: integer description: The total number of tokens used. - compute_units: - anyOf: - - type: integer - minimum: 0 - - type: 'null' - description: | - Compute units for the request. Currently null when available. required: - input_tokens - input_tokens_details @@ -55173,7 +55150,7 @@ components: { "type": "response.create", "stream_id": "agent_1", - "model": "gpt-5.5", + "model": "gpt-5.6-sol", "input": "Say hello." } ResponsesServerEvent: @@ -56438,7 +56415,7 @@ components: "failed_at": null, "completed_at": 1699073498, "last_error": null, - "model": "gpt-4o", + "model": "gpt-5", "instructions": null, "tools": [{"type": "file_search"}, {"type": "code_interpreter"}], "metadata": {}, @@ -58795,7 +58772,7 @@ components: "project_id": "proj_abc", "user_id": "user-abc", "api_key_id": "key_abc", - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "batch": false, "service_tier": "default" } @@ -59149,7 +59126,7 @@ components: "project_id": "proj_abc", "user_id": "user-abc", "api_key_id": "key_abc", - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "context_level": "medium" } User: @@ -61355,6 +61332,77 @@ components: "id": "resp_abc123" } } + OAuthErrorCode: + anyOf: + - enum: + - invalid_grant + - invalid_subject_token + - type: string + BetaResponseStreamEvent: + description: Event emitted while a response is streamed. + anyOf: + - $ref: '#/components/schemas/BetaResponseAudioDeltaEvent' + - $ref: '#/components/schemas/BetaResponseAudioDoneEvent' + - $ref: '#/components/schemas/BetaResponseAudioTranscriptDeltaEvent' + - $ref: '#/components/schemas/BetaResponseAudioTranscriptDoneEvent' + - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallCodeDeltaEvent' + - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallCodeDoneEvent' + - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallCompletedEvent' + - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallInProgressEvent' + - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallInterpretingEvent' + - $ref: '#/components/schemas/BetaResponseCompletedEvent' + - $ref: '#/components/schemas/BetaResponseContentPartAddedEvent' + - $ref: '#/components/schemas/BetaResponseContentPartDoneEvent' + - $ref: '#/components/schemas/BetaResponseCreatedEvent' + - $ref: '#/components/schemas/BetaResponseErrorEvent' + - $ref: '#/components/schemas/BetaResponseFileSearchCallCompletedEvent' + - $ref: '#/components/schemas/BetaResponseFileSearchCallInProgressEvent' + - $ref: '#/components/schemas/BetaResponseFileSearchCallSearchingEvent' + - $ref: '#/components/schemas/BetaResponseFunctionCallArgumentsDeltaEvent' + - $ref: '#/components/schemas/BetaResponseFunctionCallArgumentsDoneEvent' + - $ref: '#/components/schemas/BetaResponseShellCallCommandAddedStreamingEvent' + - $ref: '#/components/schemas/BetaResponseShellCallCommandDeltaStreamingEvent' + - $ref: '#/components/schemas/BetaResponseShellCallCommandDoneStreamingEvent' + - $ref: '#/components/schemas/BetaResponseShellCallOutputContentDeltaStreamingEvent' + x-stainless-skip: + - go + - $ref: '#/components/schemas/BetaResponseShellCallOutputContentDoneStreamingEvent' + - $ref: '#/components/schemas/BetaResponseInProgressEvent' + - $ref: '#/components/schemas/BetaResponseFailedEvent' + - $ref: '#/components/schemas/BetaResponseIncompleteEvent' + - $ref: '#/components/schemas/BetaResponseOutputItemAddedEvent' + - $ref: '#/components/schemas/BetaResponseOutputItemDoneEvent' + - $ref: '#/components/schemas/BetaResponseReasoningSummaryPartAddedEvent' + - $ref: '#/components/schemas/BetaResponseReasoningSummaryPartDoneEvent' + - $ref: '#/components/schemas/BetaResponseReasoningSummaryTextDeltaEvent' + - $ref: '#/components/schemas/BetaResponseReasoningSummaryTextDoneEvent' + - $ref: '#/components/schemas/BetaResponseReasoningTextDeltaEvent' + - $ref: '#/components/schemas/BetaResponseReasoningTextDoneEvent' + - $ref: '#/components/schemas/BetaResponseRefusalDeltaEvent' + - $ref: '#/components/schemas/BetaResponseRefusalDoneEvent' + - $ref: '#/components/schemas/BetaResponseTextDeltaEvent' + - $ref: '#/components/schemas/BetaResponseTextDoneEvent' + - $ref: '#/components/schemas/BetaResponseWebSearchCallCompletedEvent' + - $ref: '#/components/schemas/BetaResponseWebSearchCallInProgressEvent' + - $ref: '#/components/schemas/BetaResponseWebSearchCallSearchingEvent' + - $ref: '#/components/schemas/BetaResponseImageGenCallCompletedEvent' + - $ref: '#/components/schemas/BetaResponseImageGenCallGeneratingEvent' + - $ref: '#/components/schemas/BetaResponseImageGenCallInProgressEvent' + - $ref: '#/components/schemas/BetaResponseImageGenCallPartialImageEvent' + - $ref: '#/components/schemas/BetaResponseMCPCallArgumentsDeltaEvent' + - $ref: '#/components/schemas/BetaResponseMCPCallArgumentsDoneEvent' + - $ref: '#/components/schemas/BetaResponseMCPCallCompletedEvent' + - $ref: '#/components/schemas/BetaResponseMCPCallFailedEvent' + - $ref: '#/components/schemas/BetaResponseMCPCallInProgressEvent' + - $ref: '#/components/schemas/BetaResponseMCPListToolsCompletedEvent' + - $ref: '#/components/schemas/BetaResponseMCPListToolsFailedEvent' + - $ref: '#/components/schemas/BetaResponseMCPListToolsInProgressEvent' + - $ref: '#/components/schemas/BetaResponseOutputTextAnnotationAddedEvent' + - $ref: '#/components/schemas/BetaResponseQueuedEvent' + - $ref: '#/components/schemas/BetaResponseCustomToolCallInputDeltaEvent' + - $ref: '#/components/schemas/BetaResponseCustomToolCallInputDoneEvent' + discriminator: + propertyName: type ModerationInputType: type: string enum: @@ -67753,8 +67801,6 @@ components: BetaReasoning: type: object description: | - **gpt-5 and o-series models only** - Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning). title: Reasoning @@ -72559,9 +72605,9 @@ components: - $ref: '#/components/schemas/BetaModelIdsResponses' - type: string - type: 'null' - description: Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. + description: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. BetaModelIdsResponses: - example: gpt-5.1 + example: gpt-5.6-sol anyOf: - $ref: '#/components/schemas/BetaModelIdsShared' - type: string @@ -72587,7 +72633,7 @@ components: - gpt-daybreak-red-latest - gpt-5.6-cyber BetaModelIdsShared: - example: gpt-5.4 + example: gpt-5.6-sol anyOf: - type: string - $ref: '#/components/schemas/ChatModel' @@ -73854,13 +73900,6 @@ components: total_tokens: type: integer description: The total number of tokens used. - compute_units: - anyOf: - - type: integer - minimum: 0 - - type: 'null' - description: | - Compute units for the request. Currently null when available. required: - input_tokens - input_tokens_details @@ -74173,6 +74212,7 @@ components: description: The reason why the response is incomplete. enum: - max_output_tokens + - max_messages - content_filter - type: 'null' output: @@ -74495,7 +74535,7 @@ components: - type: 'null' model: description: | - Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI + Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare available models. @@ -76049,7 +76089,7 @@ components: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [], "parallel_tool_calls": true, "previous_response_id": null, @@ -76582,7 +76622,7 @@ components: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-2024-08-06", + "model": "gpt-5.6-sol", "output": [], "parallel_tool_calls": true, "previous_response_id": null, @@ -76774,7 +76814,7 @@ components: "input": [], "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "output": [ { "id": "msg_123", @@ -77207,7 +77247,7 @@ components: }, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "output": [], "previous_response_id": null, "reasoning_effort": null, @@ -77275,7 +77315,7 @@ components: "incomplete_details": null, "instructions": null, "max_output_tokens": null, - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-5.6-sol", "output": [], "previous_response_id": null, "reasoning_effort": null, @@ -78594,7 +78634,7 @@ components: { "type": "response.create", "stream_id": "agent_1", - "model": "gpt-5.5", + "model": "gpt-5.6-sol", "input": "Say hello." } BetaCreateResponse: @@ -78815,77 +78855,6 @@ components: type: integer minimum: 0 maximum: 20 - BetaResponseStreamEvent: - description: Event emitted while a response is streamed. - anyOf: - - $ref: '#/components/schemas/BetaResponseAudioDeltaEvent' - - $ref: '#/components/schemas/BetaResponseAudioDoneEvent' - - $ref: '#/components/schemas/BetaResponseAudioTranscriptDeltaEvent' - - $ref: '#/components/schemas/BetaResponseAudioTranscriptDoneEvent' - - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallCodeDeltaEvent' - - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallCodeDoneEvent' - - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallCompletedEvent' - - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallInProgressEvent' - - $ref: '#/components/schemas/BetaResponseCodeInterpreterCallInterpretingEvent' - - $ref: '#/components/schemas/BetaResponseCompletedEvent' - - $ref: '#/components/schemas/BetaResponseContentPartAddedEvent' - - $ref: '#/components/schemas/BetaResponseContentPartDoneEvent' - - $ref: '#/components/schemas/BetaResponseCreatedEvent' - - $ref: '#/components/schemas/BetaResponseErrorEvent' - - $ref: '#/components/schemas/BetaResponseFileSearchCallCompletedEvent' - - $ref: '#/components/schemas/BetaResponseFileSearchCallInProgressEvent' - - $ref: '#/components/schemas/BetaResponseFileSearchCallSearchingEvent' - - $ref: '#/components/schemas/BetaResponseFunctionCallArgumentsDeltaEvent' - - $ref: '#/components/schemas/BetaResponseFunctionCallArgumentsDoneEvent' - - $ref: '#/components/schemas/BetaResponseShellCallCommandAddedStreamingEvent' - - $ref: '#/components/schemas/BetaResponseShellCallCommandDeltaStreamingEvent' - - $ref: '#/components/schemas/BetaResponseShellCallCommandDoneStreamingEvent' - - $ref: '#/components/schemas/BetaResponseShellCallOutputContentDeltaStreamingEvent' - x-stainless-skip: - - go - - $ref: '#/components/schemas/BetaResponseShellCallOutputContentDoneStreamingEvent' - - $ref: '#/components/schemas/BetaResponseInProgressEvent' - - $ref: '#/components/schemas/BetaResponseFailedEvent' - - $ref: '#/components/schemas/BetaResponseIncompleteEvent' - - $ref: '#/components/schemas/BetaResponseOutputItemAddedEvent' - - $ref: '#/components/schemas/BetaResponseOutputItemDoneEvent' - - $ref: '#/components/schemas/BetaResponseReasoningSummaryPartAddedEvent' - - $ref: '#/components/schemas/BetaResponseReasoningSummaryPartDoneEvent' - - $ref: '#/components/schemas/BetaResponseReasoningSummaryTextDeltaEvent' - - $ref: '#/components/schemas/BetaResponseReasoningSummaryTextDoneEvent' - - $ref: '#/components/schemas/BetaResponseReasoningTextDeltaEvent' - - $ref: '#/components/schemas/BetaResponseReasoningTextDoneEvent' - - $ref: '#/components/schemas/BetaResponseRefusalDeltaEvent' - - $ref: '#/components/schemas/BetaResponseRefusalDoneEvent' - - $ref: '#/components/schemas/BetaResponseTextDeltaEvent' - - $ref: '#/components/schemas/BetaResponseTextDoneEvent' - - $ref: '#/components/schemas/BetaResponseWebSearchCallCompletedEvent' - - $ref: '#/components/schemas/BetaResponseWebSearchCallInProgressEvent' - - $ref: '#/components/schemas/BetaResponseWebSearchCallSearchingEvent' - - $ref: '#/components/schemas/BetaResponseImageGenCallCompletedEvent' - - $ref: '#/components/schemas/BetaResponseImageGenCallGeneratingEvent' - - $ref: '#/components/schemas/BetaResponseImageGenCallInProgressEvent' - - $ref: '#/components/schemas/BetaResponseImageGenCallPartialImageEvent' - - $ref: '#/components/schemas/BetaResponseMCPCallArgumentsDeltaEvent' - - $ref: '#/components/schemas/BetaResponseMCPCallArgumentsDoneEvent' - - $ref: '#/components/schemas/BetaResponseMCPCallCompletedEvent' - - $ref: '#/components/schemas/BetaResponseMCPCallFailedEvent' - - $ref: '#/components/schemas/BetaResponseMCPCallInProgressEvent' - - $ref: '#/components/schemas/BetaResponseMCPListToolsCompletedEvent' - - $ref: '#/components/schemas/BetaResponseMCPListToolsFailedEvent' - - $ref: '#/components/schemas/BetaResponseMCPListToolsInProgressEvent' - - $ref: '#/components/schemas/BetaResponseOutputTextAnnotationAddedEvent' - - $ref: '#/components/schemas/BetaResponseQueuedEvent' - - $ref: '#/components/schemas/BetaResponseCustomToolCallInputDeltaEvent' - - $ref: '#/components/schemas/BetaResponseCustomToolCallInputDoneEvent' - discriminator: - propertyName: type - OAuthErrorCode: - anyOf: - - enum: - - invalid_grant - - invalid_subject_token - - type: string RealtimeConnectParams: type: object properties: diff --git a/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt b/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt index 99be47837..167cc89c9 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/Reasoning.kt @@ -18,8 +18,6 @@ import java.util.Optional import kotlin.jvm.optionals.getOrNull /** - * **gpt-5 and o-series models only** - * * Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ class Reasoning diff --git a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/UsageCostsParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/UsageCostsParams.kt index 2d384e6ae..d0e8f9bf7 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/UsageCostsParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/UsageCostsParams.kt @@ -24,6 +24,7 @@ private constructor( private val endTime: Long?, private val groupBy: List?, private val limit: Long?, + private val lineItems: List?, private val page: String?, private val projectIds: List?, private val additionalHeaders: Headers, @@ -54,6 +55,12 @@ private constructor( */ fun limit(): Optional = Optional.ofNullable(limit) + /** + * Return only costs for these exact line item names. Each value must match the complete + * `line_item` value, for example `gpt-5.6-sol, input_tokens`. + */ + fun lineItems(): Optional> = Optional.ofNullable(lineItems) + /** * A cursor for use in pagination. Corresponding to the `next_page` field from the previous * response. @@ -93,6 +100,7 @@ private constructor( private var endTime: Long? = null private var groupBy: MutableList? = null private var limit: Long? = null + private var lineItems: MutableList? = null private var page: String? = null private var projectIds: MutableList? = null private var additionalHeaders: Headers.Builder = Headers.builder() @@ -106,6 +114,7 @@ private constructor( endTime = usageCostsParams.endTime groupBy = usageCostsParams.groupBy?.toMutableList() limit = usageCostsParams.limit + lineItems = usageCostsParams.lineItems?.toMutableList() page = usageCostsParams.page projectIds = usageCostsParams.projectIds?.toMutableList() additionalHeaders = usageCostsParams.additionalHeaders.toBuilder() @@ -187,6 +196,26 @@ private constructor( /** Alias for calling [Builder.limit] with `limit.orElse(null)`. */ fun limit(limit: Optional) = limit(limit.getOrNull()) + /** + * Return only costs for these exact line item names. Each value must match the complete + * `line_item` value, for example `gpt-5.6-sol, input_tokens`. + */ + fun lineItems(lineItems: List?) = apply { + this.lineItems = lineItems?.toMutableList() + } + + /** Alias for calling [Builder.lineItems] with `lineItems.orElse(null)`. */ + fun lineItems(lineItems: Optional>) = lineItems(lineItems.getOrNull()) + + /** + * Adds a single [String] to [lineItems]. + * + * @throws IllegalStateException if the field was previously set to a non-list. + */ + fun addLineItem(lineItem: String) = apply { + lineItems = (lineItems ?: mutableListOf()).apply { add(lineItem) } + } + /** * A cursor for use in pagination. Corresponding to the `next_page` field from the previous * response. @@ -331,6 +360,7 @@ private constructor( endTime, groupBy?.toImmutable(), limit, + lineItems?.toImmutable(), page, projectIds?.toImmutable(), additionalHeaders.build(), @@ -349,6 +379,7 @@ private constructor( endTime?.let { put("end_time", it.toString()) } groupBy?.forEach { put("group_by[]", it.toString()) } limit?.let { put("limit", it.toString()) } + lineItems?.forEach { put("line_items[]", it) } page?.let { put("page", it) } projectIds?.forEach { put("project_ids[]", it) } putAll(additionalQueryParams) @@ -639,6 +670,7 @@ private constructor( endTime == other.endTime && groupBy == other.groupBy && limit == other.limit && + lineItems == other.lineItems && page == other.page && projectIds == other.projectIds && additionalHeaders == other.additionalHeaders && @@ -653,6 +685,7 @@ private constructor( endTime, groupBy, limit, + lineItems, page, projectIds, additionalHeaders, @@ -660,5 +693,5 @@ private constructor( ) override fun toString() = - "UsageCostsParams{startTime=$startTime, apiKeyIds=$apiKeyIds, bucketWidth=$bucketWidth, endTime=$endTime, groupBy=$groupBy, limit=$limit, page=$page, projectIds=$projectIds, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" + "UsageCostsParams{startTime=$startTime, apiKeyIds=$apiKeyIds, bucketWidth=$bucketWidth, endTime=$endTime, groupBy=$groupBy, limit=$limit, lineItems=$lineItems, page=$page, projectIds=$projectIds, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/batches/Batch.kt b/openai-java-core/src/main/kotlin/com/openai/models/batches/Batch.kt index 428ab41a3..18931d524 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/batches/Batch.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/batches/Batch.kt @@ -269,9 +269,9 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to process the batch, like `gpt-5-2025-08-07`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer to - * the [model guide](https://platform.openai.com/docs/models) to browse and compare available + * Model ID used to process the batch, like `gpt-5.6-sol`. OpenAI offers a wide range of models + * with different capabilities, performance characteristics, and price points. Refer to the + * [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the @@ -774,9 +774,9 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to process the batch, like `gpt-5-2025-08-07`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to process the batch, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: String) = model(JsonField.of(model)) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponse.kt index 57673b56a..3674b59c5 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponse.kt @@ -256,7 +256,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -473,8 +473,6 @@ private constructor( promptCacheRetention.getOptional("prompt_cache_retention") /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -1087,9 +1085,9 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: Model) = model(JsonField.of(model)) @@ -1925,8 +1923,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ @@ -2458,6 +2454,8 @@ private constructor( @JvmField val MAX_OUTPUT_TOKENS = of("max_output_tokens") + @JvmField val MAX_MESSAGES = of("max_messages") + @JvmField val CONTENT_FILTER = of("content_filter") @JvmStatic fun of(value: String) = Reason(JsonField.of(value)) @@ -2466,6 +2464,7 @@ private constructor( /** An enum containing [Reason]'s known values. */ enum class Known { MAX_OUTPUT_TOKENS, + MAX_MESSAGES, CONTENT_FILTER, } @@ -2480,6 +2479,7 @@ private constructor( */ enum class Value { MAX_OUTPUT_TOKENS, + MAX_MESSAGES, CONTENT_FILTER, /** * An enum member indicating that [Reason] was instantiated with an unknown value. @@ -2497,6 +2497,7 @@ private constructor( fun value(): Value = when (this) { MAX_OUTPUT_TOKENS -> Value.MAX_OUTPUT_TOKENS + MAX_MESSAGES -> Value.MAX_MESSAGES CONTENT_FILTER -> Value.CONTENT_FILTER else -> Value._UNKNOWN } @@ -2513,6 +2514,7 @@ private constructor( fun known(): Known = when (this) { MAX_OUTPUT_TOKENS -> Known.MAX_OUTPUT_TOKENS + MAX_MESSAGES -> Known.MAX_MESSAGES CONTENT_FILTER -> Known.CONTENT_FILTER else -> throw OpenAIInvalidDataException("Unknown Reason: $value") } @@ -2951,7 +2953,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -7893,8 +7895,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseUsage.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseUsage.kt index 8d6dc888c..e5d774799 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseUsage.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseUsage.kt @@ -14,7 +14,6 @@ import com.openai.core.checkRequired import com.openai.errors.OpenAIInvalidDataException import java.util.Collections import java.util.Objects -import java.util.Optional import kotlin.jvm.optionals.getOrNull /** @@ -29,7 +28,6 @@ private constructor( private val outputTokens: JsonField, private val outputTokensDetails: JsonField, private val totalTokens: JsonField, - private val computeUnits: JsonField, private val additionalProperties: MutableMap, ) { @@ -50,16 +48,12 @@ private constructor( @JsonProperty("total_tokens") @ExcludeMissing totalTokens: JsonField = JsonMissing.of(), - @JsonProperty("compute_units") - @ExcludeMissing - computeUnits: JsonField = JsonMissing.of(), ) : this( inputTokens, inputTokensDetails, outputTokens, outputTokensDetails, totalTokens, - computeUnits, mutableMapOf(), ) @@ -105,14 +99,6 @@ private constructor( */ fun totalTokens(): Long = totalTokens.getRequired("total_tokens") - /** - * Compute units for the request. Currently null when available. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun computeUnits(): Optional = computeUnits.getOptional("compute_units") - /** * Returns the raw JSON value of [inputTokens]. * @@ -156,15 +142,6 @@ private constructor( */ @JsonProperty("total_tokens") @ExcludeMissing fun _totalTokens(): JsonField = totalTokens - /** - * Returns the raw JSON value of [computeUnits]. - * - * Unlike [computeUnits], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("compute_units") - @ExcludeMissing - fun _computeUnits(): JsonField = computeUnits - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -202,7 +179,6 @@ private constructor( private var outputTokens: JsonField? = null private var outputTokensDetails: JsonField? = null private var totalTokens: JsonField? = null - private var computeUnits: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -212,7 +188,6 @@ private constructor( outputTokens = betaResponseUsage.outputTokens outputTokensDetails = betaResponseUsage.outputTokensDetails totalTokens = betaResponseUsage.totalTokens - computeUnits = betaResponseUsage.computeUnits additionalProperties = betaResponseUsage.additionalProperties.toMutableMap() } @@ -282,28 +257,6 @@ private constructor( */ fun totalTokens(totalTokens: JsonField) = apply { this.totalTokens = totalTokens } - /** Compute units for the request. Currently null when available. */ - fun computeUnits(computeUnits: Long?) = computeUnits(JsonField.ofNullable(computeUnits)) - - /** - * Alias for [Builder.computeUnits]. - * - * This unboxed primitive overload exists for backwards compatibility. - */ - fun computeUnits(computeUnits: Long) = computeUnits(computeUnits as Long?) - - /** Alias for calling [Builder.computeUnits] with `computeUnits.orElse(null)`. */ - fun computeUnits(computeUnits: Optional) = computeUnits(computeUnits.getOrNull()) - - /** - * Sets [Builder.computeUnits] to an arbitrary JSON value. - * - * You should usually call [Builder.computeUnits] with a well-typed [Long] value instead. - * This method is primarily for setting the field to an undocumented or not yet supported - * value. - */ - fun computeUnits(computeUnits: JsonField) = apply { this.computeUnits = computeUnits } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -346,7 +299,6 @@ private constructor( checkRequired("outputTokens", outputTokens), checkRequired("outputTokensDetails", outputTokensDetails), checkRequired("totalTokens", totalTokens), - computeUnits, additionalProperties.toMutableMap(), ) } @@ -371,7 +323,6 @@ private constructor( outputTokens() outputTokensDetails().validate() totalTokens() - computeUnits() validated = true } @@ -394,8 +345,7 @@ private constructor( (inputTokensDetails.asKnown().getOrNull()?.validity() ?: 0) + (if (outputTokens.asKnown().isPresent) 1 else 0) + (outputTokensDetails.asKnown().getOrNull()?.validity() ?: 0) + - (if (totalTokens.asKnown().isPresent) 1 else 0) + - (if (computeUnits.asKnown().isPresent) 1 else 0) + (if (totalTokens.asKnown().isPresent) 1 else 0) /** A detailed breakdown of the input tokens. */ class InputTokensDetails @@ -815,7 +765,6 @@ private constructor( outputTokens == other.outputTokens && outputTokensDetails == other.outputTokensDetails && totalTokens == other.totalTokens && - computeUnits == other.computeUnits && additionalProperties == other.additionalProperties } @@ -826,7 +775,6 @@ private constructor( outputTokens, outputTokensDetails, totalTokens, - computeUnits, additionalProperties, ) } @@ -834,5 +782,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "BetaResponseUsage{inputTokens=$inputTokens, inputTokensDetails=$inputTokensDetails, outputTokens=$outputTokens, outputTokensDetails=$outputTokensDetails, totalTokens=$totalTokens, computeUnits=$computeUnits, additionalProperties=$additionalProperties}" + "BetaResponseUsage{inputTokens=$inputTokens, inputTokensDetails=$inputTokensDetails, outputTokens=$outputTokens, outputTokensDetails=$outputTokensDetails, totalTokens=$totalTokens, additionalProperties=$additionalProperties}" } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesClientEvent.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesClientEvent.kt index 73d4170ce..4d32506e9 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesClientEvent.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesClientEvent.kt @@ -606,9 +606,9 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the @@ -713,8 +713,6 @@ private constructor( promptCacheRetention.getOptional("prompt_cache_retention") /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -1583,7 +1581,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse * and compare available models. @@ -1806,8 +1804,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ @@ -3386,9 +3382,9 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ class Model @JsonCreator private constructor(private val value: JsonField) : Enum { @@ -6109,8 +6105,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCompactParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCompactParams.kt index 3ad08e786..69c751580 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCompactParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCompactParams.kt @@ -52,7 +52,7 @@ private constructor( fun betas(): Optional> = Optional.ofNullable(betas) /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -270,9 +270,9 @@ private constructor( fun body(body: Body) = apply { this.body = body.toBuilder() } /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: Model?) = apply { body.model(model) } @@ -676,9 +676,9 @@ private constructor( ) /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the @@ -898,7 +898,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse * and compare available models. @@ -1249,7 +1249,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCreateParams.kt index 85bc97b62..fe655bf59 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCreateParams.kt @@ -163,7 +163,7 @@ private constructor( fun metadata(): Optional = body.metadata() /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -265,8 +265,6 @@ private constructor( fun promptCacheRetention(): Optional = body.promptCacheRetention() /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -970,9 +968,9 @@ private constructor( fun metadata(metadata: JsonField) = apply { body.metadata(metadata) } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: Model) = apply { body.model(model) } @@ -1186,8 +1184,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ @@ -2094,9 +2090,9 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the @@ -2201,8 +2197,6 @@ private constructor( promptCacheRetention.getOptional("prompt_cache_retention") /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -3012,7 +3006,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse * and compare available models. @@ -3235,8 +3229,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ @@ -4808,7 +4800,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -7464,8 +7456,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt index 89486d908..eb1c03ab4 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt @@ -85,10 +85,10 @@ private constructor( fun messages(): List = body.messages() /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer to - * the [model guide](https://platform.openai.com/docs/models) to browse and compare available - * models. + * Model ID used to generate the response, like `gpt-5.6-sol` or `o3`. OpenAI offers a wide + * range of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -993,10 +993,10 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-5.6-sol` or `o3`. OpenAI offers a wide + * range of models with different capabilities, performance characteristics, and price + * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and + * compare available models. */ fun model(model: ChatModel) = apply { body.model(model) } @@ -2358,10 +2358,10 @@ private constructor( fun messages(): List = messages.getRequired("messages") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-5.6-sol` or `o3`. OpenAI offers a wide + * range of models with different capabilities, performance characteristics, and price + * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -3439,10 +3439,10 @@ private constructor( addMessage(ChatCompletionMessageParam.ofFunction(function)) /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide - * range of models with different capabilities, performance characteristics, and price - * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse - * and compare available models. + * Model ID used to generate the response, like `gpt-5.6-sol` or `o3`. OpenAI offers a + * wide range of models with different capabilities, performance characteristics, and + * price points. Refer to the [model guide](https://platform.openai.com/docs/models) to + * browse and compare available models. */ fun model(model: ChatModel) = model(JsonField.of(model)) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionUsage.kt b/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionUsage.kt index 54df5a3c0..652dfc2a6 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionUsage.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionUsage.kt @@ -25,7 +25,6 @@ private constructor( private val promptTokens: JsonField, private val totalTokens: JsonField, private val completionTokensDetails: JsonField, - private val computeUnits: JsonField, private val promptTokensDetails: JsonField, private val additionalProperties: MutableMap, ) { @@ -44,9 +43,6 @@ private constructor( @JsonProperty("completion_tokens_details") @ExcludeMissing completionTokensDetails: JsonField = JsonMissing.of(), - @JsonProperty("compute_units") - @ExcludeMissing - computeUnits: JsonField = JsonMissing.of(), @JsonProperty("prompt_tokens_details") @ExcludeMissing promptTokensDetails: JsonField = JsonMissing.of(), @@ -55,7 +51,6 @@ private constructor( promptTokens, totalTokens, completionTokensDetails, - computeUnits, promptTokensDetails, mutableMapOf(), ) @@ -93,14 +88,6 @@ private constructor( fun completionTokensDetails(): Optional = completionTokensDetails.getOptional("completion_tokens_details") - /** - * Compute units for the request. Currently null when available. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun computeUnits(): Optional = computeUnits.getOptional("compute_units") - /** * Breakdown of tokens used in the prompt. * @@ -146,15 +133,6 @@ private constructor( @ExcludeMissing fun _completionTokensDetails(): JsonField = completionTokensDetails - /** - * Returns the raw JSON value of [computeUnits]. - * - * Unlike [computeUnits], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("compute_units") - @ExcludeMissing - fun _computeUnits(): JsonField = computeUnits - /** * Returns the raw JSON value of [promptTokensDetails]. * @@ -199,7 +177,6 @@ private constructor( private var promptTokens: JsonField? = null private var totalTokens: JsonField? = null private var completionTokensDetails: JsonField = JsonMissing.of() - private var computeUnits: JsonField = JsonMissing.of() private var promptTokensDetails: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -209,7 +186,6 @@ private constructor( promptTokens = completionUsage.promptTokens totalTokens = completionUsage.totalTokens completionTokensDetails = completionUsage.completionTokensDetails - computeUnits = completionUsage.computeUnits promptTokensDetails = completionUsage.promptTokensDetails additionalProperties = completionUsage.additionalProperties.toMutableMap() } @@ -269,28 +245,6 @@ private constructor( this.completionTokensDetails = completionTokensDetails } - /** Compute units for the request. Currently null when available. */ - fun computeUnits(computeUnits: Long?) = computeUnits(JsonField.ofNullable(computeUnits)) - - /** - * Alias for [Builder.computeUnits]. - * - * This unboxed primitive overload exists for backwards compatibility. - */ - fun computeUnits(computeUnits: Long) = computeUnits(computeUnits as Long?) - - /** Alias for calling [Builder.computeUnits] with `computeUnits.orElse(null)`. */ - fun computeUnits(computeUnits: Optional) = computeUnits(computeUnits.getOrNull()) - - /** - * Sets [Builder.computeUnits] to an arbitrary JSON value. - * - * You should usually call [Builder.computeUnits] with a well-typed [Long] value instead. - * This method is primarily for setting the field to an undocumented or not yet supported - * value. - */ - fun computeUnits(computeUnits: JsonField) = apply { this.computeUnits = computeUnits } - /** Breakdown of tokens used in the prompt. */ fun promptTokensDetails(promptTokensDetails: PromptTokensDetails) = promptTokensDetails(JsonField.of(promptTokensDetails)) @@ -345,7 +299,6 @@ private constructor( checkRequired("promptTokens", promptTokens), checkRequired("totalTokens", totalTokens), completionTokensDetails, - computeUnits, promptTokensDetails, additionalProperties.toMutableMap(), ) @@ -370,7 +323,6 @@ private constructor( promptTokens() totalTokens() completionTokensDetails().ifPresent { it.validate() } - computeUnits() promptTokensDetails().ifPresent { it.validate() } validated = true } @@ -394,7 +346,6 @@ private constructor( (if (promptTokens.asKnown().isPresent) 1 else 0) + (if (totalTokens.asKnown().isPresent) 1 else 0) + (completionTokensDetails.asKnown().getOrNull()?.validity() ?: 0) + - (if (computeUnits.asKnown().isPresent) 1 else 0) + (promptTokensDetails.asKnown().getOrNull()?.validity() ?: 0) /** Breakdown of tokens used in a completion. */ @@ -1103,7 +1054,6 @@ private constructor( promptTokens == other.promptTokens && totalTokens == other.totalTokens && completionTokensDetails == other.completionTokensDetails && - computeUnits == other.computeUnits && promptTokensDetails == other.promptTokensDetails && additionalProperties == other.additionalProperties } @@ -1114,7 +1064,6 @@ private constructor( promptTokens, totalTokens, completionTokensDetails, - computeUnits, promptTokensDetails, additionalProperties, ) @@ -1123,5 +1072,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "CompletionUsage{completionTokens=$completionTokens, promptTokens=$promptTokens, totalTokens=$totalTokens, completionTokensDetails=$completionTokensDetails, computeUnits=$computeUnits, promptTokensDetails=$promptTokensDetails, additionalProperties=$additionalProperties}" + "CompletionUsage{completionTokens=$completionTokens, promptTokens=$promptTokens, totalTokens=$totalTokens, completionTokensDetails=$completionTokensDetails, promptTokensDetails=$promptTokensDetails, additionalProperties=$additionalProperties}" } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateResponse.kt index e81de5c2b..60443c6a8 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateResponse.kt @@ -40,7 +40,7 @@ import kotlin.jvm.optionals.getOrNull * done for your LLM integration. Like: * - Improve the quality of my chatbot * - See how well my chatbot handles customer support - * - Check if o4-mini is better at my usecase than gpt-4o + * - Check if o4-mini is better at my usecase than gpt-5.6-sol */ class EvalCreateResponse @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalListResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalListResponse.kt index ffc1fdb48..d3fea9973 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalListResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalListResponse.kt @@ -40,7 +40,7 @@ import kotlin.jvm.optionals.getOrNull * done for your LLM integration. Like: * - Improve the quality of my chatbot * - See how well my chatbot handles customer support - * - Check if o4-mini is better at my usecase than gpt-4o + * - Check if o4-mini is better at my usecase than gpt-5.6-sol */ class EvalListResponse @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveResponse.kt index 1d35278ed..fca5d26fa 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveResponse.kt @@ -40,7 +40,7 @@ import kotlin.jvm.optionals.getOrNull * done for your LLM integration. Like: * - Improve the quality of my chatbot * - See how well my chatbot handles customer support - * - Check if o4-mini is better at my usecase than gpt-4o + * - Check if o4-mini is better at my usecase than gpt-5.6-sol */ class EvalRetrieveResponse @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalUpdateResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalUpdateResponse.kt index e70575b32..3e94cbbcf 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalUpdateResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/EvalUpdateResponse.kt @@ -40,7 +40,7 @@ import kotlin.jvm.optionals.getOrNull * done for your LLM integration. Like: * - Improve the quality of my chatbot * - See how well my chatbot handles customer support - * - Check if o4-mini is better at my usecase than gpt-4o + * - Check if o4-mini is better at my usecase than gpt-5.6-sol */ class EvalUpdateResponse @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/CreateEvalCompletionsRunDataSource.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/CreateEvalCompletionsRunDataSource.kt index e4c541b6a..0b3628714 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/CreateEvalCompletionsRunDataSource.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/CreateEvalCompletionsRunDataSource.kt @@ -1613,7 +1613,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * An optional model to filter by (e.g., 'gpt-4o'). + * An optional model to filter by (e.g., 'gpt-5.6-sol'). * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1816,7 +1816,7 @@ private constructor( */ fun metadata(metadata: JsonField) = apply { this.metadata = metadata } - /** An optional model to filter by (e.g., 'gpt-4o'). */ + /** An optional model to filter by (e.g., 'gpt-5.6-sol'). */ fun model(model: String?) = model(JsonField.ofNullable(model)) /** Alias for calling [Builder.model] with `model.orElse(null)`. */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/Response.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/Response.kt index 1bd2a80c2..f64d8e003 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/Response.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/Response.kt @@ -255,7 +255,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -472,8 +472,6 @@ private constructor( promptCacheRetention.getOptional("prompt_cache_retention") /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -1086,9 +1084,9 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: ResponsesModel) = model(JsonField.of(model)) @@ -1861,8 +1859,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ @@ -2394,6 +2390,8 @@ private constructor( @JvmField val MAX_OUTPUT_TOKENS = of("max_output_tokens") + @JvmField val MAX_MESSAGES = of("max_messages") + @JvmField val CONTENT_FILTER = of("content_filter") @JvmStatic fun of(value: String) = Reason(JsonField.of(value)) @@ -2402,6 +2400,7 @@ private constructor( /** An enum containing [Reason]'s known values. */ enum class Known { MAX_OUTPUT_TOKENS, + MAX_MESSAGES, CONTENT_FILTER, } @@ -2416,6 +2415,7 @@ private constructor( */ enum class Value { MAX_OUTPUT_TOKENS, + MAX_MESSAGES, CONTENT_FILTER, /** * An enum member indicating that [Reason] was instantiated with an unknown value. @@ -2433,6 +2433,7 @@ private constructor( fun value(): Value = when (this) { MAX_OUTPUT_TOKENS -> Value.MAX_OUTPUT_TOKENS + MAX_MESSAGES -> Value.MAX_MESSAGES CONTENT_FILTER -> Value.CONTENT_FILTER else -> Value._UNKNOWN } @@ -2449,6 +2450,7 @@ private constructor( fun known(): Known = when (this) { MAX_OUTPUT_TOKENS -> Known.MAX_OUTPUT_TOKENS + MAX_MESSAGES -> Known.MAX_MESSAGES CONTENT_FILTER -> Known.CONTENT_FILTER else -> throw OpenAIInvalidDataException("Unknown Reason: $value") } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactParams.kt index 62c8ba274..24a1cac3e 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactParams.kt @@ -49,7 +49,7 @@ private constructor( ) : Params { /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -253,9 +253,9 @@ private constructor( fun body(body: Body) = apply { this.body = body.toBuilder() } /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: Model?) = apply { body.model(model) } @@ -649,9 +649,9 @@ private constructor( ) /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the @@ -871,7 +871,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse * and compare available models. @@ -1219,7 +1219,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-5` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt index 261ade367..d00cfddf4 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt @@ -165,7 +165,7 @@ private constructor( fun metadata(): Optional = body.metadata() /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -259,8 +259,6 @@ private constructor( fun promptCacheRetention(): Optional = body.promptCacheRetention() /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -941,9 +939,9 @@ private constructor( fun metadata(metadata: JsonField) = apply { body.metadata(metadata) } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: ResponsesModel) = apply { body.model(model) } @@ -1144,8 +1142,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ @@ -2053,9 +2049,9 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the @@ -2152,8 +2148,6 @@ private constructor( promptCacheRetention.getOptional("prompt_cache_retention") /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -2946,7 +2940,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://platform.openai.com/docs/models) to browse * and compare available models. @@ -3152,8 +3146,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseUsage.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseUsage.kt index 061b8cebb..be76e585b 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseUsage.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseUsage.kt @@ -14,7 +14,6 @@ import com.openai.core.checkRequired import com.openai.errors.OpenAIInvalidDataException import java.util.Collections import java.util.Objects -import java.util.Optional import kotlin.jvm.optionals.getOrNull /** @@ -29,7 +28,6 @@ private constructor( private val outputTokens: JsonField, private val outputTokensDetails: JsonField, private val totalTokens: JsonField, - private val computeUnits: JsonField, private val additionalProperties: MutableMap, ) { @@ -50,16 +48,12 @@ private constructor( @JsonProperty("total_tokens") @ExcludeMissing totalTokens: JsonField = JsonMissing.of(), - @JsonProperty("compute_units") - @ExcludeMissing - computeUnits: JsonField = JsonMissing.of(), ) : this( inputTokens, inputTokensDetails, outputTokens, outputTokensDetails, totalTokens, - computeUnits, mutableMapOf(), ) @@ -105,14 +99,6 @@ private constructor( */ fun totalTokens(): Long = totalTokens.getRequired("total_tokens") - /** - * Compute units for the request. Currently null when available. - * - * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun computeUnits(): Optional = computeUnits.getOptional("compute_units") - /** * Returns the raw JSON value of [inputTokens]. * @@ -156,15 +142,6 @@ private constructor( */ @JsonProperty("total_tokens") @ExcludeMissing fun _totalTokens(): JsonField = totalTokens - /** - * Returns the raw JSON value of [computeUnits]. - * - * Unlike [computeUnits], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("compute_units") - @ExcludeMissing - fun _computeUnits(): JsonField = computeUnits - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -202,7 +179,6 @@ private constructor( private var outputTokens: JsonField? = null private var outputTokensDetails: JsonField? = null private var totalTokens: JsonField? = null - private var computeUnits: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -212,7 +188,6 @@ private constructor( outputTokens = responseUsage.outputTokens outputTokensDetails = responseUsage.outputTokensDetails totalTokens = responseUsage.totalTokens - computeUnits = responseUsage.computeUnits additionalProperties = responseUsage.additionalProperties.toMutableMap() } @@ -282,28 +257,6 @@ private constructor( */ fun totalTokens(totalTokens: JsonField) = apply { this.totalTokens = totalTokens } - /** Compute units for the request. Currently null when available. */ - fun computeUnits(computeUnits: Long?) = computeUnits(JsonField.ofNullable(computeUnits)) - - /** - * Alias for [Builder.computeUnits]. - * - * This unboxed primitive overload exists for backwards compatibility. - */ - fun computeUnits(computeUnits: Long) = computeUnits(computeUnits as Long?) - - /** Alias for calling [Builder.computeUnits] with `computeUnits.orElse(null)`. */ - fun computeUnits(computeUnits: Optional) = computeUnits(computeUnits.getOrNull()) - - /** - * Sets [Builder.computeUnits] to an arbitrary JSON value. - * - * You should usually call [Builder.computeUnits] with a well-typed [Long] value instead. - * This method is primarily for setting the field to an undocumented or not yet supported - * value. - */ - fun computeUnits(computeUnits: JsonField) = apply { this.computeUnits = computeUnits } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -346,7 +299,6 @@ private constructor( checkRequired("outputTokens", outputTokens), checkRequired("outputTokensDetails", outputTokensDetails), checkRequired("totalTokens", totalTokens), - computeUnits, additionalProperties.toMutableMap(), ) } @@ -371,7 +323,6 @@ private constructor( outputTokens() outputTokensDetails().validate() totalTokens() - computeUnits() validated = true } @@ -394,8 +345,7 @@ private constructor( (inputTokensDetails.asKnown().getOrNull()?.validity() ?: 0) + (if (outputTokens.asKnown().isPresent) 1 else 0) + (outputTokensDetails.asKnown().getOrNull()?.validity() ?: 0) + - (if (totalTokens.asKnown().isPresent) 1 else 0) + - (if (computeUnits.asKnown().isPresent) 1 else 0) + (if (totalTokens.asKnown().isPresent) 1 else 0) /** A detailed breakdown of the input tokens. */ class InputTokensDetails @@ -815,7 +765,6 @@ private constructor( outputTokens == other.outputTokens && outputTokensDetails == other.outputTokensDetails && totalTokens == other.totalTokens && - computeUnits == other.computeUnits && additionalProperties == other.additionalProperties } @@ -826,7 +775,6 @@ private constructor( outputTokens, outputTokensDetails, totalTokens, - computeUnits, additionalProperties, ) } @@ -834,5 +782,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "ResponseUsage{inputTokens=$inputTokens, inputTokensDetails=$inputTokensDetails, outputTokens=$outputTokens, outputTokensDetails=$outputTokensDetails, totalTokens=$totalTokens, computeUnits=$computeUnits, additionalProperties=$additionalProperties}" + "ResponseUsage{inputTokens=$inputTokens, inputTokensDetails=$inputTokensDetails, outputTokens=$outputTokens, outputTokensDetails=$outputTokensDetails, totalTokens=$totalTokens, additionalProperties=$additionalProperties}" } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesClientEvent.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesClientEvent.kt index 03dbd4e47..f0156d879 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesClientEvent.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesClientEvent.kt @@ -313,7 +313,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://platform.openai.com/docs/models) to browse and compare available * models. @@ -411,8 +411,6 @@ private constructor( promptCacheRetention.getOptional("prompt_cache_retention") /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). * @@ -1239,9 +1237,9 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range - * of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://platform.openai.com/docs/models) to browse and compare + * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer + * to the [model guide](https://platform.openai.com/docs/models) to browse and compare * available models. */ fun model(model: ResponsesModel) = model(JsonField.of(model)) @@ -1439,8 +1437,6 @@ private constructor( } /** - * **gpt-5 and o-series models only** - * * Configuration options for * [reasoning models](https://platform.openai.com/docs/guides/reasoning). */ diff --git a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/usage/UsageCostsParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/usage/UsageCostsParamsTest.kt index 1830338b3..db62ca1a5 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/usage/UsageCostsParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/usage/UsageCostsParamsTest.kt @@ -17,6 +17,7 @@ internal class UsageCostsParamsTest { .endTime(0L) .addGroupBy(UsageCostsParams.GroupBy.PROJECT_ID) .limit(0L) + .addLineItem("string") .page("page") .addProjectId("string") .build() @@ -32,6 +33,7 @@ internal class UsageCostsParamsTest { .endTime(0L) .addGroupBy(UsageCostsParams.GroupBy.PROJECT_ID) .limit(0L) + .addLineItem("string") .page("page") .addProjectId("string") .build() @@ -47,6 +49,7 @@ internal class UsageCostsParamsTest { .put("end_time", "0") .put("group_by[]", "project_id") .put("limit", "0") + .put("line_items[]", "string") .put("page", "page") .put("project_ids[]", "string") .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/assistants/AssistantCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/assistants/AssistantCreateParamsTest.kt index 3cd6cc5bd..54a2e291a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/assistants/AssistantCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/assistants/AssistantCreateParamsTest.kt @@ -15,7 +15,7 @@ internal class AssistantCreateParamsTest { @Test fun create() { AssistantCreateParams.builder() - .model(ChatModel.GPT_4O) + .model(ChatModel.GPT_5) .description("description") .instructions("instructions") .metadata( @@ -63,7 +63,7 @@ internal class AssistantCreateParamsTest { fun body() { val params = AssistantCreateParams.builder() - .model(ChatModel.GPT_4O) + .model(ChatModel.GPT_5) .description("description") .instructions("instructions") .metadata( @@ -113,7 +113,7 @@ internal class AssistantCreateParamsTest { val body = params._body() - assertThat(body.model()).isEqualTo(ChatModel.GPT_4O) + assertThat(body.model()).isEqualTo(ChatModel.GPT_5) assertThat(body.description()).contains("description") assertThat(body.instructions()).contains("instructions") assertThat(body.metadata()) @@ -161,10 +161,10 @@ internal class AssistantCreateParamsTest { @Test fun bodyWithoutOptionalFields() { - val params = AssistantCreateParams.builder().model(ChatModel.GPT_4O).build() + val params = AssistantCreateParams.builder().model(ChatModel.GPT_5).build() val body = params._body() - assertThat(body.model()).isEqualTo(ChatModel.GPT_4O) + assertThat(body.model()).isEqualTo(ChatModel.GPT_5) } } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaCompactedResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaCompactedResponseTest.kt index 0d6ff45ac..5e2a38674 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaCompactedResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaCompactedResponseTest.kt @@ -69,7 +69,6 @@ internal class BetaCompactedResponseTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .build() @@ -132,7 +131,6 @@ internal class BetaCompactedResponseTest { BetaResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) } @@ -198,7 +196,6 @@ internal class BetaCompactedResponseTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCompletedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCompletedEventTest.kt index 2e365c673..a55442dfa 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCompletedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCompletedEventTest.kt @@ -35,7 +35,7 @@ internal class BetaResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -223,7 +223,6 @@ internal class BetaResponseCompletedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -255,7 +254,7 @@ internal class BetaResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -440,7 +439,6 @@ internal class BetaResponseCompletedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -477,7 +475,7 @@ internal class BetaResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -665,7 +663,6 @@ internal class BetaResponseCompletedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCreatedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCreatedEventTest.kt index 269dae7b4..fd3813c5b 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCreatedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCreatedEventTest.kt @@ -35,7 +35,7 @@ internal class BetaResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -223,7 +223,6 @@ internal class BetaResponseCreatedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -255,7 +254,7 @@ internal class BetaResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -440,7 +439,6 @@ internal class BetaResponseCreatedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -477,7 +475,7 @@ internal class BetaResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -665,7 +663,6 @@ internal class BetaResponseCreatedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFailedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFailedEventTest.kt index d1491a7e5..4b3020743 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFailedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFailedEventTest.kt @@ -35,7 +35,7 @@ internal class BetaResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -223,7 +223,6 @@ internal class BetaResponseFailedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -255,7 +254,7 @@ internal class BetaResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -440,7 +439,6 @@ internal class BetaResponseFailedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -477,7 +475,7 @@ internal class BetaResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -665,7 +663,6 @@ internal class BetaResponseFailedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInProgressEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInProgressEventTest.kt index 4cb6023d2..bf5810ed4 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInProgressEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInProgressEventTest.kt @@ -35,7 +35,7 @@ internal class BetaResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -223,7 +223,6 @@ internal class BetaResponseInProgressEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -255,7 +254,7 @@ internal class BetaResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -440,7 +439,6 @@ internal class BetaResponseInProgressEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -477,7 +475,7 @@ internal class BetaResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -665,7 +663,6 @@ internal class BetaResponseInProgressEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseIncompleteEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseIncompleteEventTest.kt index 7eb9265f1..de634f0c4 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseIncompleteEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseIncompleteEventTest.kt @@ -35,7 +35,7 @@ internal class BetaResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -223,7 +223,6 @@ internal class BetaResponseIncompleteEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -255,7 +254,7 @@ internal class BetaResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -440,7 +439,6 @@ internal class BetaResponseIncompleteEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -477,7 +475,7 @@ internal class BetaResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -665,7 +663,6 @@ internal class BetaResponseIncompleteEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseQueuedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseQueuedEventTest.kt index 0b2999a2a..76cb6781c 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseQueuedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseQueuedEventTest.kt @@ -35,7 +35,7 @@ internal class BetaResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -223,7 +223,6 @@ internal class BetaResponseQueuedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -255,7 +254,7 @@ internal class BetaResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -440,7 +439,6 @@ internal class BetaResponseQueuedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -477,7 +475,7 @@ internal class BetaResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -665,7 +663,6 @@ internal class BetaResponseQueuedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseStreamEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseStreamEventTest.kt index b61435da8..d96049361 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseStreamEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseStreamEventTest.kt @@ -962,7 +962,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1150,7 +1150,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1249,7 +1248,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1444,7 +1443,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1805,7 +1803,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1993,7 +1991,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -2092,7 +2089,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2287,7 +2284,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3528,7 +3524,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -3716,7 +3712,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3816,7 +3811,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4011,7 +4006,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4058,7 +4052,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4246,7 +4240,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4345,7 +4338,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4540,7 +4533,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4585,7 +4577,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4773,7 +4765,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4873,7 +4864,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5068,7 +5059,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -8300,7 +8290,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -8488,7 +8478,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -8587,7 +8576,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -8782,7 +8771,6 @@ internal class BetaResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseTest.kt index c82e20a88..125bce90b 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseTest.kt @@ -33,7 +33,7 @@ internal class BetaResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -216,7 +216,6 @@ internal class BetaResponseTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -245,7 +244,7 @@ internal class BetaResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(betaResponse.model()).isEqualTo(BetaResponse.Model.GPT_5_1) + assertThat(betaResponse.model()).isEqualTo(BetaResponse.Model.GPT_5_6_SOL) assertThat(betaResponse.output()) .containsExactly( BetaResponseOutputItem.ofMessage( @@ -433,7 +432,6 @@ internal class BetaResponseTest { BetaResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) assertThat(betaResponse.user()).contains("user-1234") @@ -463,7 +461,7 @@ internal class BetaResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -646,7 +644,6 @@ internal class BetaResponseTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseUsageTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseUsageTest.kt index 79ab4df20..b809a9e73 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseUsageTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseUsageTest.kt @@ -25,7 +25,6 @@ internal class BetaResponseUsageTest { BetaResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() assertThat(betaResponseUsage.inputTokens()).isEqualTo(0L) @@ -40,7 +39,6 @@ internal class BetaResponseUsageTest { assertThat(betaResponseUsage.outputTokensDetails()) .isEqualTo(BetaResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build()) assertThat(betaResponseUsage.totalTokens()).isEqualTo(0L) - assertThat(betaResponseUsage.computeUnits()).contains(0L) } @Test @@ -60,7 +58,6 @@ internal class BetaResponseUsageTest { BetaResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() val roundtrippedBetaResponseUsage = diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesClientEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesClientEventTest.kt index b1bea2ccc..2af3e6f2d 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesClientEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesClientEventTest.kt @@ -36,7 +36,7 @@ internal class BetaResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_5_1) + .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_5_6_SOL) .moderation( BetaResponsesClientEvent.ResponseCreate.Moderation.builder() .model("model") @@ -185,7 +185,7 @@ internal class BetaResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_5_1) + .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_5_6_SOL) .moderation( BetaResponsesClientEvent.ResponseCreate.Moderation.builder() .model("model") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesServerEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesServerEventTest.kt index 38bd4ce55..616f2cb84 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesServerEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesServerEventTest.kt @@ -1036,7 +1036,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1224,7 +1224,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1326,7 +1325,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1521,7 +1520,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1886,7 +1884,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2074,7 +2072,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -2175,7 +2172,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2370,7 +2367,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3535,7 +3531,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -3723,7 +3719,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3825,7 +3820,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4020,7 +4015,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4067,7 +4061,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4255,7 +4249,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4356,7 +4349,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4551,7 +4544,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4596,7 +4588,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4784,7 +4776,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4886,7 +4877,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5081,7 +5072,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -8375,7 +8365,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -8563,7 +8553,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -8664,7 +8653,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_5_1) + .model(BetaResponse.Model.GPT_5_6_SOL) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -8859,7 +8848,6 @@ internal class BetaResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCreateParamsTest.kt index a5593aeb9..be7b4e91b 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCreateParamsTest.kt @@ -32,7 +32,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -151,7 +151,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -288,7 +288,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -410,7 +410,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(body.model()).contains(ResponseCreateParams.Model.GPT_5_1) + assertThat(body.model()).contains(ResponseCreateParams.Model.GPT_5_6_SOL) assertThat(body.moderation()) .contains( ResponseCreateParams.Moderation.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionChunkTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionChunkTest.kt index 947770cff..d65822a5a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionChunkTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionChunkTest.kt @@ -184,7 +184,6 @@ internal class ChatCompletionChunkTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -367,7 +366,6 @@ internal class ChatCompletionChunkTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -555,7 +553,6 @@ internal class ChatCompletionChunkTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParamsTest.kt index c560bb0ce..7a41361b6 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParamsTest.kt @@ -20,7 +20,7 @@ internal class ChatCompletionCreateParamsTest { .addMessage( ChatCompletionDeveloperMessageParam.builder().content("string").name("name").build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) @@ -155,7 +155,7 @@ internal class ChatCompletionCreateParamsTest { .name("name") .build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) @@ -291,7 +291,7 @@ internal class ChatCompletionCreateParamsTest { .build() ) ) - assertThat(body.model()).isEqualTo(ChatModel.GPT_5_4) + assertThat(body.model()).isEqualTo(ChatModel.GPT_5_6_SOL) assertThat(body.audio()) .contains( ChatCompletionAudioParam.builder() @@ -451,7 +451,7 @@ internal class ChatCompletionCreateParamsTest { val params = ChatCompletionCreateParams.builder() .addDeveloperMessage("string") - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .build() val body = params._body() @@ -462,6 +462,6 @@ internal class ChatCompletionCreateParamsTest { ChatCompletionDeveloperMessageParam.builder().content("string").build() ) ) - assertThat(body.model()).isEqualTo(ChatModel.GPT_5_4) + assertThat(body.model()).isEqualTo(ChatModel.GPT_5_6_SOL) } } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionListPageResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionListPageResponseTest.kt index a9b3bf5d7..ed5d03a5a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionListPageResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionListPageResponseTest.kt @@ -225,7 +225,6 @@ internal class ChatCompletionListPageResponseTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -442,7 +441,6 @@ internal class ChatCompletionListPageResponseTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -676,7 +674,6 @@ internal class ChatCompletionListPageResponseTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionTest.kt index d6d094ccb..6c9625e09 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionTest.kt @@ -199,7 +199,6 @@ internal class ChatCompletionTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -396,7 +395,6 @@ internal class ChatCompletionTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -599,7 +597,6 @@ internal class ChatCompletionTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionTest.kt index e2c77066f..d8ace292a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionTest.kt @@ -51,7 +51,6 @@ internal class CompletionTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -104,7 +103,6 @@ internal class CompletionTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -160,7 +158,6 @@ internal class CompletionTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionUsageTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionUsageTest.kt index 1fcce92bc..b71a48eb4 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionUsageTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/completions/CompletionUsageTest.kt @@ -25,7 +25,6 @@ internal class CompletionUsageTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) @@ -50,7 +49,6 @@ internal class CompletionUsageTest { .textTokens(0L) .build() ) - assertThat(completionUsage.computeUnits()).contains(0L) assertThat(completionUsage.promptTokensDetails()) .contains( CompletionUsage.PromptTokensDetails.builder() @@ -80,7 +78,6 @@ internal class CompletionUsageTest { .textTokens(0L) .build() ) - .computeUnits(0L) .promptTokensDetails( CompletionUsage.PromptTokensDetails.builder() .audioTokens(0L) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/models/ModelRetrieveParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/models/ModelRetrieveParamsTest.kt index 9245f15e6..4579ec6d0 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/models/ModelRetrieveParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/models/ModelRetrieveParamsTest.kt @@ -9,14 +9,14 @@ internal class ModelRetrieveParamsTest { @Test fun create() { - ModelRetrieveParams.builder().model("gpt-4o-mini").build() + ModelRetrieveParams.builder().model("gpt-5.6-sol").build() } @Test fun pathParams() { - val params = ModelRetrieveParams.builder().model("gpt-4o-mini").build() + val params = ModelRetrieveParams.builder().model("gpt-5.6-sol").build() - assertThat(params._pathParam(0)).isEqualTo("gpt-4o-mini") + assertThat(params._pathParam(0)).isEqualTo("gpt-5.6-sol") // out-of-bound path param assertThat(params._pathParam(1)).isEqualTo("") } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/CompactedResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/CompactedResponseTest.kt index 17c47c754..79316596b 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/CompactedResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/CompactedResponseTest.kt @@ -62,7 +62,6 @@ internal class CompactedResponseTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .build() @@ -120,7 +119,6 @@ internal class CompactedResponseTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) } @@ -179,7 +177,6 @@ internal class CompactedResponseTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompletedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompletedEventTest.kt index 342150bce..2294668a5 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompletedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompletedEventTest.kt @@ -39,7 +39,7 @@ internal class ResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -219,7 +219,6 @@ internal class ResponseCompletedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -250,7 +249,7 @@ internal class ResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -428,7 +427,6 @@ internal class ResponseCompletedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -463,7 +461,7 @@ internal class ResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -643,7 +641,6 @@ internal class ResponseCompletedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreateParamsTest.kt index 3083041af..ddc3b036a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreateParamsTest.kt @@ -35,7 +35,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -147,7 +147,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -263,7 +263,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(body.model()).contains(ResponsesModel.ofChat(ChatModel.GPT_5_1)) + assertThat(body.model()).contains(ResponsesModel.ofChat(ChatModel.GPT_5_6_SOL)) assertThat(body.moderation()) .contains( ResponseCreateParams.Moderation.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreatedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreatedEventTest.kt index 0931a8e62..8622091ad 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreatedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreatedEventTest.kt @@ -39,7 +39,7 @@ internal class ResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -219,7 +219,6 @@ internal class ResponseCreatedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -250,7 +249,7 @@ internal class ResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -428,7 +427,6 @@ internal class ResponseCreatedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -463,7 +461,7 @@ internal class ResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -643,7 +641,6 @@ internal class ResponseCreatedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFailedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFailedEventTest.kt index 32c192e5f..24b3a6130 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFailedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFailedEventTest.kt @@ -39,7 +39,7 @@ internal class ResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -219,7 +219,6 @@ internal class ResponseFailedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -250,7 +249,7 @@ internal class ResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -428,7 +427,6 @@ internal class ResponseFailedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -463,7 +461,7 @@ internal class ResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -643,7 +641,6 @@ internal class ResponseFailedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInProgressEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInProgressEventTest.kt index 9381df42d..132ec4518 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInProgressEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInProgressEventTest.kt @@ -39,7 +39,7 @@ internal class ResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -219,7 +219,6 @@ internal class ResponseInProgressEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -250,7 +249,7 @@ internal class ResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -428,7 +427,6 @@ internal class ResponseInProgressEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -463,7 +461,7 @@ internal class ResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -643,7 +641,6 @@ internal class ResponseInProgressEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseIncompleteEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseIncompleteEventTest.kt index 614f90282..2218e2854 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseIncompleteEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseIncompleteEventTest.kt @@ -39,7 +39,7 @@ internal class ResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -219,7 +219,6 @@ internal class ResponseIncompleteEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -250,7 +249,7 @@ internal class ResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -428,7 +427,6 @@ internal class ResponseIncompleteEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -463,7 +461,7 @@ internal class ResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -643,7 +641,6 @@ internal class ResponseIncompleteEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseQueuedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseQueuedEventTest.kt index 141ae9428..b9141f0ea 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseQueuedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseQueuedEventTest.kt @@ -39,7 +39,7 @@ internal class ResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -219,7 +219,6 @@ internal class ResponseQueuedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -250,7 +249,7 @@ internal class ResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -428,7 +427,6 @@ internal class ResponseQueuedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -463,7 +461,7 @@ internal class ResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -643,7 +641,6 @@ internal class ResponseQueuedEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseStreamEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseStreamEventTest.kt index bef8af608..e57ad78b3 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseStreamEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseStreamEventTest.kt @@ -854,7 +854,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1034,7 +1034,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1132,7 +1131,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1321,7 +1320,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1657,7 +1655,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1837,7 +1835,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1935,7 +1932,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -2124,7 +2121,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3240,7 +3236,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3420,7 +3416,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3518,7 +3513,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3707,7 +3702,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3751,7 +3745,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3931,7 +3925,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4029,7 +4022,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4218,7 +4211,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4262,7 +4254,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4442,7 +4434,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4540,7 +4531,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4729,7 +4720,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -7625,7 +7615,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -7805,7 +7795,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -7903,7 +7892,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -8092,7 +8081,6 @@ internal class ResponseStreamEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseTest.kt index 8961cd7da..c47e632af 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseTest.kt @@ -38,7 +38,7 @@ internal class ResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -212,7 +212,6 @@ internal class ResponseTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -240,7 +239,7 @@ internal class ResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(response.model()).isEqualTo(ResponsesModel.ofChat(ChatModel.GPT_5_1)) + assertThat(response.model()).isEqualTo(ResponsesModel.ofChat(ChatModel.GPT_5_6_SOL)) assertThat(response.output()) .containsExactly( ResponseOutputItem.ofMessage( @@ -420,7 +419,6 @@ internal class ResponseTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) assertThat(response.user()).contains("user-1234") @@ -450,7 +448,7 @@ internal class ResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -624,7 +622,6 @@ internal class ResponseTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseUsageTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseUsageTest.kt index 9b3c56a93..4537707a4 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseUsageTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseUsageTest.kt @@ -25,7 +25,6 @@ internal class ResponseUsageTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() assertThat(responseUsage.inputTokens()).isEqualTo(0L) @@ -40,7 +39,6 @@ internal class ResponseUsageTest { assertThat(responseUsage.outputTokensDetails()) .isEqualTo(ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build()) assertThat(responseUsage.totalTokens()).isEqualTo(0L) - assertThat(responseUsage.computeUnits()).contains(0L) } @Test @@ -60,7 +58,6 @@ internal class ResponseUsageTest { ResponseUsage.OutputTokensDetails.builder().reasoningTokens(0L).build() ) .totalTokens(0L) - .computeUnits(0L) .build() val roundtrippedResponseUsage = diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesClientEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesClientEventTest.kt index 728e0d085..82b587f05 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesClientEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesClientEventTest.kt @@ -38,7 +38,7 @@ internal class ResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponsesClientEvent.Moderation.builder() .model("model") @@ -156,7 +156,8 @@ internal class ResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(responsesClientEvent.model()).contains(ResponsesModel.ofChat(ChatModel.GPT_5_1)) + assertThat(responsesClientEvent.model()) + .contains(ResponsesModel.ofChat(ChatModel.GPT_5_6_SOL)) assertThat(responsesClientEvent.moderation()) .contains( ResponsesClientEvent.Moderation.builder() @@ -280,7 +281,7 @@ internal class ResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponsesClientEvent.Moderation.builder() .model("model") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesServerEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesServerEventTest.kt index d55e611e6..714353bf6 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesServerEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesServerEventTest.kt @@ -918,7 +918,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1098,7 +1098,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1196,7 +1195,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1385,7 +1384,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -1724,7 +1722,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1904,7 +1902,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -2002,7 +1999,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -2191,7 +2188,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3231,7 +3227,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3411,7 +3407,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3509,7 +3504,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3698,7 +3693,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -3742,7 +3736,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3922,7 +3916,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4020,7 +4013,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4209,7 +4202,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4253,7 +4245,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4433,7 +4425,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -4531,7 +4522,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4720,7 +4711,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -7659,7 +7649,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -7839,7 +7829,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") @@ -7937,7 +7926,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -8126,7 +8115,6 @@ internal class ResponsesServerEventTest { .build() ) .totalTokens(0L) - .computeUnits(0L) .build() ) .user("user-1234") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/ServiceParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/ServiceParamsTest.kt index b139c3c8a..a34595455 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/ServiceParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/ServiceParamsTest.kt @@ -59,7 +59,7 @@ internal class ServiceParamsTest { .name("name") .build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/ModelServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/ModelServiceAsyncTest.kt index 20148afa0..6eb7c73ab 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/ModelServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/ModelServiceAsyncTest.kt @@ -20,7 +20,7 @@ internal class ModelServiceAsyncTest { .build() val modelServiceAsync = client.models() - val modelFuture = modelServiceAsync.retrieve("gpt-4o-mini") + val modelFuture = modelServiceAsync.retrieve("gpt-5.6-sol") val model = modelFuture.get() model.validate() diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncTest.kt index 44a576703..f44c6b33d 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncTest.kt @@ -55,7 +55,7 @@ internal class ResponseServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -189,7 +189,7 @@ internal class ResponseServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/UsageServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/UsageServiceAsyncTest.kt index 5dc1f884b..a890fa918 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/UsageServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/UsageServiceAsyncTest.kt @@ -158,6 +158,7 @@ internal class UsageServiceAsyncTest { .endTime(0L) .addGroupBy(UsageCostsParams.GroupBy.PROJECT_ID) .limit(0L) + .addLineItem("string") .page("page") .addProjectId("string") .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/AssistantServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/AssistantServiceAsyncTest.kt index 59f340ec0..5e77eaa87 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/AssistantServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/AssistantServiceAsyncTest.kt @@ -29,7 +29,7 @@ internal class AssistantServiceAsyncTest { val assistantFuture = assistantServiceAsync.create( AssistantCreateParams.builder() - .model(ChatModel.GPT_4O) + .model(ChatModel.GPT_5) .description("description") .instructions("instructions") .metadata( diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncTest.kt index c79b53cfe..c93f0ef77 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncTest.kt @@ -53,7 +53,7 @@ internal class ResponseServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -193,7 +193,7 @@ internal class ResponseServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncTest.kt index fc2a90f0a..eae703ea8 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncTest.kt @@ -43,7 +43,7 @@ internal class ChatCompletionServiceAsyncTest { .name("name") .build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) @@ -196,7 +196,7 @@ internal class ChatCompletionServiceAsyncTest { .name("name") .build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ModelServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ModelServiceTest.kt index 257c9cb9f..34d85753a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ModelServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ModelServiceTest.kt @@ -20,7 +20,7 @@ internal class ModelServiceTest { .build() val modelService = client.models() - val model = modelService.retrieve("gpt-4o-mini") + val model = modelService.retrieve("gpt-5.6-sol") model.validate() } diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceTest.kt index acc7de5e8..c593ca106 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceTest.kt @@ -55,7 +55,7 @@ internal class ResponseServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -188,7 +188,7 @@ internal class ResponseServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_5_1) + .model(ChatModel.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/UsageServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/UsageServiceTest.kt index bcd64f374..f211a97c1 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/UsageServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/UsageServiceTest.kt @@ -154,6 +154,7 @@ internal class UsageServiceTest { .endTime(0L) .addGroupBy(UsageCostsParams.GroupBy.PROJECT_ID) .limit(0L) + .addLineItem("string") .page("page") .addProjectId("string") .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/AssistantServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/AssistantServiceTest.kt index f4360d234..b803612f2 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/AssistantServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/AssistantServiceTest.kt @@ -29,7 +29,7 @@ internal class AssistantServiceTest { val assistant = assistantService.create( AssistantCreateParams.builder() - .model(ChatModel.GPT_4O) + .model(ChatModel.GPT_5) .description("description") .instructions("instructions") .metadata( diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceTest.kt index 4a91a4fb0..2db574874 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceTest.kt @@ -53,7 +53,7 @@ internal class ResponseServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -192,7 +192,7 @@ internal class ResponseServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_5_1) + .model(ResponseCreateParams.Model.GPT_5_6_SOL) .moderation( ResponseCreateParams.Moderation.builder() .model("model") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceTest.kt index ce465fac1..a28375bd3 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceTest.kt @@ -43,7 +43,7 @@ internal class ChatCompletionServiceTest { .name("name") .build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) @@ -195,7 +195,7 @@ internal class ChatCompletionServiceTest { .name("name") .build() ) - .model(ChatModel.GPT_5_4) + .model(ChatModel.GPT_5_6_SOL) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) diff --git a/openai-java-proguard-test/src/test/kotlin/com/openai/proguard/ProGuardCompatibilityTest.kt b/openai-java-proguard-test/src/test/kotlin/com/openai/proguard/ProGuardCompatibilityTest.kt index 903a0047e..7d684c5ff 100644 --- a/openai-java-proguard-test/src/test/kotlin/com/openai/proguard/ProGuardCompatibilityTest.kt +++ b/openai-java-proguard-test/src/test/kotlin/com/openai/proguard/ProGuardCompatibilityTest.kt @@ -4,7 +4,6 @@ import com.fasterxml.jackson.module.kotlin.jacksonTypeRef import com.openai.client.okhttp.OpenAIOkHttpClient import com.openai.core.JsonValue import com.openai.core.jsonMapper -import com.openai.models.beta.responses.BetaResponseUsage import com.openai.models.chat.completions.ChatCompletion import com.openai.models.chat.completions.ChatCompletionAudio import com.openai.models.chat.completions.ChatCompletionContentPart @@ -14,7 +13,6 @@ import com.openai.models.chat.completions.ChatCompletionMessageFunctionToolCall import com.openai.models.chat.completions.ChatCompletionModality import com.openai.models.chat.completions.ChatCompletionTokenLogprob import com.openai.models.completions.CompletionUsage -import com.openai.models.responses.ResponseUsage import kotlin.reflect.full.memberFunctions import kotlin.reflect.jvm.javaMethod import org.assertj.core.api.Assertions.assertThat @@ -292,35 +290,6 @@ internal class ProGuardCompatibilityTest { assertThat(roundtrippedChatCompletion).isEqualTo(chatCompletion) } - @Test - fun usageComputeUnitsRoundtrip() { - val jsonMapper = jsonMapper() - val models = - listOf( - CompletionUsage::class.java, - ResponseUsage::class.java, - BetaResponseUsage::class.java, - ) - val payloads = - listOf( - "{}", - """{"compute_units":null}""", - """{"compute_units":0}""", - """{"compute_units":42}""", - ) - - for (model in models) { - for (payload in payloads) { - val usage = jsonMapper.readValue(payload, model) - val serialized = jsonMapper.writeValueAsString(usage) - assertThat(jsonMapper.readTree(serialized)) - .describedAs("%s preserves %s", model.simpleName, payload) - .isEqualTo(jsonMapper.readTree(payload)) - assertThat(jsonMapper.readValue(serialized, model)).isEqualTo(usage) - } - } - } - @Test fun chatCompletionContentPartRoundtrip() { val jsonMapper = jsonMapper()