diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 1c0985aa0..9294c755b 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,7 +1,7 @@ schema_version: 1 -generation_id: 32fd93d9-29d7-4c70-8eba-c9caca0df449 -openapi_spec_hash: ac56c14f50f95ac18f62a859b81390d0 -openapi_transformed_spec_hash: 7ea9d7bdfdc1eaaf8bed0fca5844cdb3 +generation_id: 496324dc-3440-40af-ad9a-c7f4c92fa447 +openapi_spec_hash: 4c629fdf29c6b535b0ffc1fabf75f6b4 +openapi_transformed_spec_hash: cfa19810b4e23d78f0208bff3a06c1d7 config_hash: ba891e1481bb52b190c89120be41b261 -codegen_sha: 4c622a72b140f6757ddab29c7165941bf8a9de0f -codegen_hash: 9d12d1acabd7e245cfee13fbc2bd87ab967d9ef9fee49c1f507d10dc561f9988 +codegen_sha: 7a58ca5c1df6040e563d0f6c32009b43d4caebe4 +codegen_hash: 43c85d74f6da5fddbdf30abb5dc3ab05302977c3ecd4dfb95c76fd08d6150fe4 diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index 3f49be9ae..df05c14df 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -837,14 +837,14 @@ paths: -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F file="@/path/to/file/audio.mp3" \ - -F model="gpt-4o-transcribe" + -F model="gpt-transcribe" python: | from openai import OpenAI client = OpenAI() audio_file = open("speech.mp3", "rb") transcript = client.audio.transcriptions.create( - model="gpt-4o-transcribe", + model="gpt-transcribe", file=audio_file ) javascript: | @@ -856,7 +856,7 @@ paths: async function main() { const transcription = await openai.audio.transcriptions.create({ file: fs.createReadStream("audio.mp3"), - model: "gpt-4o-transcribe", + model: "gpt-transcribe", }); console.log(transcription.text); @@ -869,7 +869,7 @@ paths: string audioFilePath = "audio.mp3"; AudioClient client = new( - model: "gpt-4o-transcribe", + model: "gpt-transcribe", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -988,7 +988,7 @@ paths: -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F file="@/path/to/file/audio.mp3" \ - -F model="gpt-4o-mini-transcribe" \ + -F model="gpt-transcribe" \ -F stream=true python: | from openai import OpenAI @@ -997,7 +997,7 @@ paths: audio_file = open("speech.mp3", "rb") stream = client.audio.transcriptions.create( file=audio_file, - model="gpt-4o-mini-transcribe", + model="gpt-transcribe", stream=True ) @@ -1011,7 +1011,7 @@ paths: const stream = await openai.audio.transcriptions.create({ file: fs.createReadStream("audio.mp3"), - model: "gpt-4o-mini-transcribe", + model: "gpt-transcribe", stream: true, }); @@ -1019,69 +1019,69 @@ paths: console.log(event); } response: | - data: {"type":"transcript.text.delta","delta":"I","logprobs":[{"token":"I","logprob":-0.00007588794,"bytes":[73]}]} + data: {"type":"transcript.text.delta","delta":"I"} - data: {"type":"transcript.text.delta","delta":" see","logprobs":[{"token":" see","logprob":-3.1281633e-7,"bytes":[32,115,101,101]}]} + data: {"type":"transcript.text.delta","delta":" see"} - data: {"type":"transcript.text.delta","delta":" skies","logprobs":[{"token":" skies","logprob":-2.3392786e-6,"bytes":[32,115,107,105,101,115]}]} + data: {"type":"transcript.text.delta","delta":" skies"} - data: {"type":"transcript.text.delta","delta":" of","logprobs":[{"token":" of","logprob":-3.1281633e-7,"bytes":[32,111,102]}]} + data: {"type":"transcript.text.delta","delta":" of"} - data: {"type":"transcript.text.delta","delta":" blue","logprobs":[{"token":" blue","logprob":-1.0280384e-6,"bytes":[32,98,108,117,101]}]} + data: {"type":"transcript.text.delta","delta":" blue"} - data: {"type":"transcript.text.delta","delta":" and","logprobs":[{"token":" and","logprob":-0.0005108566,"bytes":[32,97,110,100]}]} + data: {"type":"transcript.text.delta","delta":" and"} - data: {"type":"transcript.text.delta","delta":" clouds","logprobs":[{"token":" clouds","logprob":-1.9361265e-7,"bytes":[32,99,108,111,117,100,115]}]} + data: {"type":"transcript.text.delta","delta":" clouds"} - data: {"type":"transcript.text.delta","delta":" of","logprobs":[{"token":" of","logprob":-1.9361265e-7,"bytes":[32,111,102]}]} + data: {"type":"transcript.text.delta","delta":" of"} - data: {"type":"transcript.text.delta","delta":" white","logprobs":[{"token":" white","logprob":-7.89631e-7,"bytes":[32,119,104,105,116,101]}]} + data: {"type":"transcript.text.delta","delta":" white"} - data: {"type":"transcript.text.delta","delta":",","logprobs":[{"token":",","logprob":-0.0014890312,"bytes":[44]}]} + data: {"type":"transcript.text.delta","delta":","} - data: {"type":"transcript.text.delta","delta":" the","logprobs":[{"token":" the","logprob":-0.0110956915,"bytes":[32,116,104,101]}]} + data: {"type":"transcript.text.delta","delta":" the"} - data: {"type":"transcript.text.delta","delta":" bright","logprobs":[{"token":" bright","logprob":0.0,"bytes":[32,98,114,105,103,104,116]}]} + data: {"type":"transcript.text.delta","delta":" bright"} - data: {"type":"transcript.text.delta","delta":" blessed","logprobs":[{"token":" blessed","logprob":-0.000045848617,"bytes":[32,98,108,101,115,115,101,100]}]} + data: {"type":"transcript.text.delta","delta":" blessed"} - data: {"type":"transcript.text.delta","delta":" days","logprobs":[{"token":" days","logprob":-0.000010802739,"bytes":[32,100,97,121,115]}]} + data: {"type":"transcript.text.delta","delta":" days"} - data: {"type":"transcript.text.delta","delta":",","logprobs":[{"token":",","logprob":-0.00001700133,"bytes":[44]}]} + data: {"type":"transcript.text.delta","delta":","} - data: {"type":"transcript.text.delta","delta":" the","logprobs":[{"token":" the","logprob":-0.0000118755715,"bytes":[32,116,104,101]}]} + data: {"type":"transcript.text.delta","delta":" the"} - data: {"type":"transcript.text.delta","delta":" dark","logprobs":[{"token":" dark","logprob":-5.5122365e-7,"bytes":[32,100,97,114,107]}]} + data: {"type":"transcript.text.delta","delta":" dark"} - data: {"type":"transcript.text.delta","delta":" sacred","logprobs":[{"token":" sacred","logprob":-5.4385737e-6,"bytes":[32,115,97,99,114,101,100]}]} + data: {"type":"transcript.text.delta","delta":" sacred"} - data: {"type":"transcript.text.delta","delta":" nights","logprobs":[{"token":" nights","logprob":-4.00813e-6,"bytes":[32,110,105,103,104,116,115]}]} + data: {"type":"transcript.text.delta","delta":" nights"} - data: {"type":"transcript.text.delta","delta":",","logprobs":[{"token":",","logprob":-0.0036910512,"bytes":[44]}]} + data: {"type":"transcript.text.delta","delta":","} - data: {"type":"transcript.text.delta","delta":" and","logprobs":[{"token":" and","logprob":-0.0031903093,"bytes":[32,97,110,100]}]} + data: {"type":"transcript.text.delta","delta":" and"} - data: {"type":"transcript.text.delta","delta":" I","logprobs":[{"token":" I","logprob":-1.504853e-6,"bytes":[32,73]}]} + data: {"type":"transcript.text.delta","delta":" I"} - data: {"type":"transcript.text.delta","delta":" think","logprobs":[{"token":" think","logprob":-4.3202e-7,"bytes":[32,116,104,105,110,107]}]} + data: {"type":"transcript.text.delta","delta":" think"} - data: {"type":"transcript.text.delta","delta":" to","logprobs":[{"token":" to","logprob":-1.9361265e-7,"bytes":[32,116,111]}]} + data: {"type":"transcript.text.delta","delta":" to"} - data: {"type":"transcript.text.delta","delta":" myself","logprobs":[{"token":" myself","logprob":-1.7432603e-6,"bytes":[32,109,121,115,101,108,102]}]} + data: {"type":"transcript.text.delta","delta":" myself"} - data: {"type":"transcript.text.delta","delta":",","logprobs":[{"token":",","logprob":-0.29254505,"bytes":[44]}]} + data: {"type":"transcript.text.delta","delta":","} - data: {"type":"transcript.text.delta","delta":" what","logprobs":[{"token":" what","logprob":-0.016815351,"bytes":[32,119,104,97,116]}]} + data: {"type":"transcript.text.delta","delta":" what"} - data: {"type":"transcript.text.delta","delta":" a","logprobs":[{"token":" a","logprob":-3.1281633e-7,"bytes":[32,97]}]} + data: {"type":"transcript.text.delta","delta":" a"} - data: {"type":"transcript.text.delta","delta":" wonderful","logprobs":[{"token":" wonderful","logprob":-2.1008714e-6,"bytes":[32,119,111,110,100,101,114,102,117,108]}]} + data: {"type":"transcript.text.delta","delta":" wonderful"} - data: {"type":"transcript.text.delta","delta":" world","logprobs":[{"token":" world","logprob":-8.180258e-6,"bytes":[32,119,111,114,108,100]}]} + data: {"type":"transcript.text.delta","delta":" world"} - data: {"type":"transcript.text.delta","delta":".","logprobs":[{"token":".","logprob":-0.014231676,"bytes":[46]}]} + data: {"type":"transcript.text.delta","delta":"."} - data: {"type":"transcript.text.done","text":"I see skies of blue and clouds of white, the bright blessed days, the dark sacred nights, and I think to myself, what a wonderful world.","logprobs":[{"token":"I","logprob":-0.00007588794,"bytes":[73]},{"token":" see","logprob":-3.1281633e-7,"bytes":[32,115,101,101]},{"token":" skies","logprob":-2.3392786e-6,"bytes":[32,115,107,105,101,115]},{"token":" of","logprob":-3.1281633e-7,"bytes":[32,111,102]},{"token":" blue","logprob":-1.0280384e-6,"bytes":[32,98,108,117,101]},{"token":" and","logprob":-0.0005108566,"bytes":[32,97,110,100]},{"token":" clouds","logprob":-1.9361265e-7,"bytes":[32,99,108,111,117,100,115]},{"token":" of","logprob":-1.9361265e-7,"bytes":[32,111,102]},{"token":" white","logprob":-7.89631e-7,"bytes":[32,119,104,105,116,101]},{"token":",","logprob":-0.0014890312,"bytes":[44]},{"token":" the","logprob":-0.0110956915,"bytes":[32,116,104,101]},{"token":" bright","logprob":0.0,"bytes":[32,98,114,105,103,104,116]},{"token":" blessed","logprob":-0.000045848617,"bytes":[32,98,108,101,115,115,101,100]},{"token":" days","logprob":-0.000010802739,"bytes":[32,100,97,121,115]},{"token":",","logprob":-0.00001700133,"bytes":[44]},{"token":" the","logprob":-0.0000118755715,"bytes":[32,116,104,101]},{"token":" dark","logprob":-5.5122365e-7,"bytes":[32,100,97,114,107]},{"token":" sacred","logprob":-5.4385737e-6,"bytes":[32,115,97,99,114,101,100]},{"token":" nights","logprob":-4.00813e-6,"bytes":[32,110,105,103,104,116,115]},{"token":",","logprob":-0.0036910512,"bytes":[44]},{"token":" and","logprob":-0.0031903093,"bytes":[32,97,110,100]},{"token":" I","logprob":-1.504853e-6,"bytes":[32,73]},{"token":" think","logprob":-4.3202e-7,"bytes":[32,116,104,105,110,107]},{"token":" to","logprob":-1.9361265e-7,"bytes":[32,116,111]},{"token":" myself","logprob":-1.7432603e-6,"bytes":[32,109,121,115,101,108,102]},{"token":",","logprob":-0.29254505,"bytes":[44]},{"token":" what","logprob":-0.016815351,"bytes":[32,119,104,97,116]},{"token":" a","logprob":-3.1281633e-7,"bytes":[32,97]},{"token":" wonderful","logprob":-2.1008714e-6,"bytes":[32,119,111,110,100,101,114,102,117,108]},{"token":" world","logprob":-8.180258e-6,"bytes":[32,119,111,114,108,100]},{"token":".","logprob":-0.014231676,"bytes":[46]}],"usage":{"input_tokens":14,"input_token_details":{"text_tokens":0,"audio_tokens":14},"output_tokens":45,"total_tokens":59}} + data: {"type":"transcript.text.done","text":"I see skies of blue and clouds of white, the bright blessed days, the dark sacred nights, and I think to myself, what a wonderful world.","languages":[{"code":"en"}],"usage":{"type":"tokens","input_tokens":14,"input_token_details":{"text_tokens":0,"audio_tokens":14},"output_tokens":45,"total_tokens":59}} - title: Logprobs request: curl: | @@ -2319,7 +2319,7 @@ paths: { "object": "chat.completion", "id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2", - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -2388,6 +2388,11 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateChatCompletionRequest' + example: + model: gpt-6.2-astra + messages: + - role: user + content: Say hello in one sentence. responses: '200': description: | @@ -2468,7 +2473,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "messages": [ { "role": "developer", @@ -2485,7 +2490,7 @@ paths: client = OpenAI() completion = client.chat.completions.create( - model="gpt-6-astra", + model="gpt-6.2-astra", messages=[ {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} @@ -2501,7 +2506,7 @@ paths: async function main() { const completion = await openai.chat.completions.create({ messages: [{ role: "developer", content: "You are a helpful assistant." }], - model: "gpt-6-astra", + model: "gpt-6.2-astra", store: true, }); @@ -2516,7 +2521,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-6-astra", + model: "gpt-6.2-astra", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2534,7 +2539,7 @@ paths: "id": "chatcmpl-B9MBs8CjcvOU2jLn4n570S5qMJKcT", "object": "chat.completion", "created": 1741569952, - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "choices": [ { "index": 0, @@ -2572,7 +2577,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "messages": [ { "role": "user", @@ -2598,7 +2603,7 @@ paths: client = OpenAI() response = client.chat.completions.create( - model="gpt-6-astra", + model="gpt-6.2-astra", messages=[ { "role": "user", @@ -2624,7 +2629,7 @@ paths: async function main() { const response = await openai.chat.completions.create({ - model: "gpt-6-astra", + model: "gpt-6.2-astra", messages: [ { role: "user", @@ -2650,7 +2655,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-6-astra", + model: "gpt-6.2-astra", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2671,7 +2676,7 @@ paths: "id": "chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG", "object": "chat.completion", "created": 1741570283, - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "choices": [ { "index": 0, @@ -2709,7 +2714,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "messages": [ { "role": "developer", @@ -2727,7 +2732,7 @@ paths: client = OpenAI() completion = client.chat.completions.create( - model="gpt-6-astra", + model="gpt-6.2-astra", messages=[ {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} @@ -2744,7 +2749,7 @@ paths: async function main() { const completion = await openai.chat.completions.create({ - model: "gpt-6-astra", + model: "gpt-6.2-astra", messages: [ {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} @@ -2767,7 +2772,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-6-astra", + model: "gpt-6.2-astra", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2787,13 +2792,13 @@ paths: } } response: |+ - data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6.2-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6.2-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]} : Intermediate chat completion chunks omitted. - data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6.2-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} data: [DONE] @@ -2804,7 +2809,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-6-astra", + "model": "gpt-5.6-terra", "messages": [ { "role": "user", @@ -2834,7 +2839,8 @@ paths: } } ], - "tool_choice": "auto" + "tool_choice": "auto", + "reasoning_effort": "none" }' python: | from openai import OpenAI @@ -2862,10 +2868,11 @@ paths: ] messages = [{"role": "user", "content": "What's the weather like in Boston today?"}] completion = client.chat.completions.create( - model="gpt-6-astra", + model="gpt-5.6-terra", messages=messages, tools=tools, - tool_choice="auto" + tool_choice="auto", + reasoning_effort="none" ) print(completion) @@ -2898,10 +2905,11 @@ paths: ]; const response = await openai.chat.completions.create({ - model: "gpt-6-astra", + model: "gpt-5.6-terra", messages: messages, tools: tools, tool_choice: "auto", + reasoning_effort: "none", }); console.log(response); @@ -2915,7 +2923,7 @@ paths: using OpenAI.Chat; ChatClient client = new( - model: "gpt-6-astra", + model: "gpt-5.6-terra", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); @@ -2952,6 +2960,7 @@ paths: getCurrentWeatherTool }, ToolChoice = ChatToolChoice.CreateAutoChoice(), + ReasoningEffortLevel = ChatReasoningEffortLevel.None, }; ChatCompletion completion = client.CompleteChat(messages, options); @@ -2960,7 +2969,7 @@ paths: "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1699896916, - "model": "gpt-6-astra", + "model": "gpt-5.6-terra", "choices": [ { "index": 0, @@ -3318,7 +3327,7 @@ paths: { "object": "chat.completion", "id": "chatcmpl-abc123", - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -3427,7 +3436,7 @@ paths: { "object": "chat.completion", "id": "chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2", - "model": "gpt-6-astra", + "model": "gpt-6.2-astra", "created": 1738960610, "request_id": "req_ded8ab984ec4bf840f37566c1011c417", "tool_choice": null, @@ -3719,9 +3728,7 @@ paths: object: type: string description: The object type, which is always "text_completion" - enum: - - text_completion - x-stainless-const: true + const: text_completion usage: anyOf: - $ref: '#/components/schemas/CompletionUsage' @@ -5165,7 +5172,7 @@ paths: "name": "Push Notification Summary Grader", "id": "Push Notification Summary Grader-9b876f24-4762-4be9-aff4-db7a9b31c673", "type": "label_model", - "model": "o3-mini", + "model": "gpt-4.1-mini-2025-04-14", "input": [ { "type": "message", @@ -5255,7 +5262,7 @@ paths: "testing_criteria": [ { "type": "label_model", - "model": "o3-mini", + "model": "gpt-4.1-mini-2025-04-14", "input": [ { "role": "developer", @@ -5291,7 +5298,7 @@ paths: testing_criteria=[ { "type": "label_model", - "model": "o3-mini", + "model": "gpt-4.1-mini-2025-04-14", "input": [ {"role": "developer", "content": "Classify the sentiment of the following statement as one of 'positive', 'neutral', or 'negative'"}, {"role": "user", "content": "Statement: {{item.input}}"} @@ -5317,7 +5324,7 @@ paths: testing_criteria: [ { type: "label_model", - model: "o3-mini", + model: "gpt-4.1-mini-2025-04-14", input: [ { role: "developer", content: "Classify the sentiment of the following statement as one of 'positive', 'neutral', or 'negative'" }, { role: "user", content: "Statement: {{item.input}}" } @@ -5358,7 +5365,7 @@ paths: { "name": "Example label grader", "type": "label_model", - "model": "o3-mini", + "model": "gpt-4.1-mini-2025-04-14", "input": [ { "type": "message", @@ -5793,8 +5800,8 @@ paths: "eval_id": "eval_67e0c726d560819083f19a957c4c640b", "report_url": "https://platform.openai.com/evaluations/eval_67e0c726d560819083f19a957c4c640b", "status": "completed", - "model": "o3-mini", - "name": "bulk_with_negative_examples_o3-mini", + "model": "gpt-4.1-mini-2025-04-14", + "name": "bulk_with_negative_examples_gpt-4.1-mini-2025-04-14", "created_at": 1742784467, "result_counts": { "total": 1, @@ -5804,7 +5811,7 @@ paths: }, "per_model_usage": [ { - "model_name": "o3-mini", + "model_name": "gpt-4.1-mini-2025-04-14", "invocation_count": 1, "prompt_tokens": 563, "completion_tokens": 874, @@ -5852,7 +5859,7 @@ paths: } ] }, - "model": "o3-mini" + "model": "gpt-4.1-mini-2025-04-14" }, "error": null, "metadata": {} @@ -5918,14 +5925,14 @@ paths: -X POST \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ - -d '{"name":"gpt-6-astra","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-6-astra","source":{"type":"file_content","content":[{"item":{"input":"Tech Company Launches Advanced Artificial Intelligence Platform","ground_truth":"Technology"}}]}}}' + -d '{"name":"gpt-4.1-mini-2025-04-14","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-4.1-mini-2025-04-14","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-6-astra", + name="gpt-4.1-mini-2025-04-14", data_source={ "type": "completions", "input_messages": { @@ -5944,7 +5951,7 @@ paths: "sampling_params": { "max_completions_tokens": 2048 }, - "model": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", "source": { "type": "file_content", "content": [ @@ -5967,7 +5974,7 @@ paths: const run = await openai.evals.runs.create( "eval_67e579652b548190aaa83ada4b125f47", { - name: "gpt-6-astra", + name: "gpt-4.1-mini-2025-04-14", data_source: { type: "completions", input_messages: { @@ -5986,7 +5993,7 @@ paths: sampling_params: { max_completions_tokens: 2048 }, - model: "gpt-6-astra", + model: "gpt-4.1-mini-2025-04-14", source: { type: "file_content", content: [ @@ -6009,8 +6016,8 @@ paths: "eval_id": "eval_67e579652b548190aaa83ada4b125f47", "report_url": "https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47&run_id=evalrun_67e57965b480819094274e3a32235e4c", "status": "queued", - "model": "gpt-6-astra", - "name": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", + "name": "gpt-4.1-mini-2025-04-14", "created_at": 1743092069, "result_counts": { "total": 0, @@ -6054,7 +6061,7 @@ paths: } ] }, - "model": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", "sampling_params": { "max_completions_tokens": 2048 } @@ -6139,8 +6146,8 @@ paths: "eval_id": "eval_67abd54d9b0081909a86353f6fb9317a", "report_url": "https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7", "status": "queued", - "model": "gpt-6-astra", - "name": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", + "name": "gpt-4.1-mini-2025-04-14", "created_at": 1743092069, "result_counts": { "total": 0, @@ -6268,7 +6275,7 @@ paths: } ] }, - "model": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", "sampling_params": { "max_completions_tokens": 2048 } @@ -6428,8 +6435,8 @@ paths: "eval_id": "eval_67abd54d9b0081909a86353f6fb9317a", "report_url": "https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7", "status": "canceled", - "model": "gpt-6-astra", - "name": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", + "name": "gpt-4.1-mini-2025-04-14", "created_at": 1743092069, "result_counts": { "total": 0, @@ -6557,7 +6564,7 @@ paths: } ] }, - "model": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", "sampling_params": { "max_completions_tokens": 2048 } @@ -6720,7 +6727,7 @@ paths: } ], "finish_reason": "stop", - "model": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", "usage": { "total_tokens": 325, "completion_tokens": 2, @@ -6867,7 +6874,7 @@ paths: } ], "finish_reason": "stop", - "model": "gpt-6-astra", + "model": "gpt-4.1-mini-2025-04-14", "usage": { "total_tokens": 325, "completion_tokens": 2, @@ -7375,7 +7382,7 @@ paths: ] } ], - "model": "gpt-5-mini", + "model": "gpt-4.1-mini-2025-04-14", "sampling_params": { "temperature": 1, "top_p": 1, @@ -7406,7 +7413,7 @@ paths: ], } ], - "model": "gpt-5-mini", + "model": "gpt-4.1-mini-2025-04-14", "sampling_params": {"temperature": 1, "top_p": 1, "seed": 42}, }, item={"reference_answer": "fuzzy wuzzy was a bear"}, @@ -7433,7 +7440,7 @@ paths: ], }, ], - model: "gpt-5-mini", + model: "gpt-4.1-mini-2025-04-14", sampling_params: { temperature: 1, top_p: 1, seed: 42 }, }, item: { reference_answer: "fuzzy wuzzy was a bear" }, @@ -7470,11 +7477,11 @@ paths: "completion_tokens": 134, "cached_tokens": 0 }, - "sampled_model_name": "gpt-5-mini" + "sampled_model_name": "gpt-4.1-mini-2025-04-14" }, "sub_rewards": {}, "model_grader_token_usage_per_model": { - "gpt-5-mini": { + "gpt-4.1-mini-2025-04-14": { "prompt_tokens": 190, "total_tokens": 324, "completion_tokens": 134, @@ -7509,7 +7516,7 @@ paths: ] } ], - "model": "gpt-5-mini", + "model": "gpt-4.1-mini-2025-04-14", "sampling_params": { "temperature": 0.2 } @@ -7693,7 +7700,7 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd/permissions \ + curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd/permissions \ -H "Authorization: Bearer $OPENAI_API_KEY" response: | { @@ -7733,7 +7740,7 @@ paths: required: true schema: type: string - example: ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd + example: ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd description: | The ID of the fine-tuned model checkpoint to create a permission for. requestBody: @@ -7772,7 +7779,7 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd/permissions \ + curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd/permissions \ -H "Authorization: Bearer $OPENAI_API_KEY" -d '{"project_ids": ["proj_abGMw1llN8IrBb6SvvY5A1iH"]}' response: | @@ -7808,7 +7815,7 @@ paths: required: true schema: type: string - example: ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd + example: ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd description: | The ID of the fine-tuned model checkpoint to delete a permission for. - in: path @@ -7849,7 +7856,7 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd/permissions/cp_zc4Q7MP6XxulcVzj4MZdwsAB \ + curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd/permissions/cp_zc4Q7MP6XxulcVzj4MZdwsAB \ -H "Authorization: Bearer $OPENAI_API_KEY" response: | { @@ -7907,7 +7914,7 @@ paths: -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ "training_file": "file-BK7bzQj3FfZFXr7DbL6xJwfo", - "model": "gpt-4o-mini" + "model": "gpt-4.1-mini-2025-04-14" }' python: | from openai import OpenAI @@ -7915,7 +7922,7 @@ paths: client.fine_tuning.jobs.create( training_file="file-abc123", - model="gpt-4o-mini" + model="gpt-4.1-mini-2025-04-14" ) javascript: | import OpenAI from "openai"; @@ -7939,7 +7946,7 @@ paths: -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ "training_file": "file-abc123", - "model": "gpt-4o-mini", + "model": "gpt-4.1-mini-2025-04-14", "method": { "type": "supervised", "supervised": { @@ -7957,7 +7964,7 @@ paths: client.fine_tuning.jobs.create( training_file="file-abc123", - model="gpt-4o-mini", + model="gpt-4.1-mini-2025-04-14", method={ "type": "supervised", "supervised": SupervisedMethod( @@ -7976,7 +7983,7 @@ paths: async function main() { const fineTune = await openai.fineTuning.jobs.create({ training_file: "file-abc123", - model: "gpt-4o-mini", + model: "gpt-4.1-mini-2025-04-14", method: { type: "supervised", supervised: { @@ -8000,7 +8007,7 @@ paths: -d '{ "training_file": "file-abc123", "validation_file": "file-abc123", - "model": "gpt-4o-mini", + "model": "gpt-4.1-mini-2025-04-14", "method": { "type": "dpo", "dpo": { @@ -8019,7 +8026,7 @@ paths: client.fine_tuning.jobs.create( training_file="file-abc", validation_file="file-123", - model="gpt-4o-mini", + model="gpt-4.1-mini-2025-04-14", method={ "type": "dpo", "dpo": DpoMethod( @@ -8027,7 +8034,7 @@ paths: ) } ) - - title: Reinforcement + - title: Reinforcement (historical) request: curl: | curl https://api.openai.com/v1/fine_tuning/jobs \ @@ -8053,7 +8060,34 @@ paths: } } }' - python: "from openai import OpenAI\nfrom openai.types.fine_tuning import ReinforcementMethod, ReinforcementHyperparameters\nfrom openai.types.graders import StringCheckGrader\n\nclient = OpenAI()\n\nclient.fine_tuning.jobs.create(\n training_file=\"file-abc\",\n validation_file=\"file-123\",\n model=\"o4-mini\",\n method={\n \"type\": \"reinforcement\",\n \"reinforcement\": ReinforcementMethod(\n grader=StringCheckGrader(\n name=\"Example string check grader\",\n type=\"string_check\",\n input=\"{{item.label}}\",\n operation=\"eq\",\n reference=\"{{sample.output_text}}\"\n ),\n hyperparameters=ReinforcementHyperparameters(\n reasoning_effort=\"medium\",\n )\n )\n }, \n seed=42,\n)\n" + python: | + from openai import OpenAI + from openai.types.fine_tuning import ReinforcementMethod, ReinforcementHyperparameters + from openai.types.graders import StringCheckGrader + + client = OpenAI() + + client.fine_tuning.jobs.create( + training_file="file-abc", + validation_file="file-123", + model="o4-mini", + method={ + "type": "reinforcement", + "reinforcement": ReinforcementMethod( + grader=StringCheckGrader( + name="Example string check grader", + type="string_check", + input="{{item.label}}", + operation="eq", + reference="{{sample.output_text}}" + ), + hyperparameters=ReinforcementHyperparameters( + reasoning_effort="medium", + ) + ) + }, + seed=42, + ) - title: Validation file request: curl: | @@ -8063,7 +8097,7 @@ paths: -d '{ "training_file": "file-abc123", "validation_file": "file-abc123", - "model": "gpt-4o-mini" + "model": "gpt-4.1-mini-2025-04-14" }' python: | from openai import OpenAI @@ -8072,7 +8106,7 @@ paths: client.fine_tuning.jobs.create( training_file="file-abc123", validation_file="file-def456", - model="gpt-4o-mini" + model="gpt-4.1-mini-2025-04-14" ) javascript: | import OpenAI from "openai"; @@ -8098,7 +8132,7 @@ paths: -d '{ "training_file": "file-abc123", "validation_file": "file-abc123", - "model": "gpt-4o-mini", + "model": "gpt-4.1-mini-2025-04-14", "integrations": [ { "type": "wandb", @@ -8199,7 +8233,7 @@ paths: { "object": "fine_tuning.job", "id": "ftjob-abc123", - "model": "gpt-4o-mini-2024-07-18", + "model": "gpt-4.1-mini-2025-04-14", "created_at": 1721764800, "fine_tuned_model": null, "organization_id": "org-123", @@ -8430,7 +8464,7 @@ paths: "object": "fine_tuning.job.checkpoint", "id": "ftckpt_zc4Q7MP6XxulcVzj4MZdwsAB", "created_at": 1721764867, - "fine_tuned_model_checkpoint": "ft:gpt-4o-mini-2024-07-18:my-org:custom-suffix:96olL566:ckpt-step-2000", + "fine_tuned_model_checkpoint": "ft:gpt-4.1-mini-2025-04-14:my-org:custom-suffix:96olL566:ckpt-step-2000", "metrics": { "full_valid_loss": 0.134, "full_valid_mean_token_accuracy": 0.874 @@ -8442,7 +8476,7 @@ paths: "object": "fine_tuning.job.checkpoint", "id": "ftckpt_enQCFmOTGj3syEpYVhBRLTSy", "created_at": 1721764800, - "fine_tuned_model_checkpoint": "ft:gpt-4o-mini-2024-07-18:my-org:custom-suffix:7q8mpxmy:ckpt-step-1000", + "fine_tuned_model_checkpoint": "ft:gpt-4.1-mini-2025-04-14:my-org:custom-suffix:7q8mpxmy:ckpt-step-1000", "metrics": { "full_valid_loss": 0.167, "full_valid_mean_token_accuracy": 0.781 @@ -8557,7 +8591,7 @@ paths: "id": "ft-event-tyiGuB72evQncpH87xe505Sv", "created_at": 1721764800, "level": "info", - "message": "New fine-tuned model created: ft:gpt-4o-mini:openai::7p4lURel", + "message": "New fine-tuned model created: ft:gpt-4.1-mini-2025-04-14:openai::7p4lURel", "data": null, "type": "message" } @@ -8707,6 +8741,11 @@ paths: multipart/form-data: schema: $ref: '#/components/schemas/CreateImageEditRequest' + example: + model: gpt-image-2.6-flare + prompt: Add a watercolor effect to this image + size: 1024x1024 + quality: high responses: '200': description: OK @@ -8755,7 +8794,7 @@ paths: -o >(jq -r '.data[0].b64_json' | base64 --decode > gift-basket.png) \ -X POST "https://api.openai.com/v1/images/edits" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ - -F "model=gpt-image-1.5" \ + -F "model=gpt-image-2.6-flare" \ -F "image[]=@body-lotion.png" \ -F "image[]=@bath-bomb.png" \ -F "image[]=@incense-kit.png" \ @@ -8773,7 +8812,7 @@ paths: """ result = client.images.edit( - model="gpt-image-1.5", + model="gpt-image-2.6-flare", image=[ open("body-lotion.png", "rb"), open("bath-bomb.png", "rb"), @@ -8811,7 +8850,7 @@ paths: ); const rsp = await client.images.edit({ - model: "gpt-image-1.5", + model: "gpt-image-2.6-flare", image: images, prompt: "Create a lovely gift basket with these four items in it", }); @@ -8825,7 +8864,7 @@ paths: curl: | curl -s -N -X POST "https://api.openai.com/v1/images/edits" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ - -F "model=gpt-image-1.5" \ + -F "model=gpt-image-2.6-flare" \ -F "image[]=@body-lotion.png" \ -F "image[]=@bath-bomb.png" \ -F "image[]=@incense-kit.png" \ @@ -8844,7 +8883,7 @@ paths: """ stream = client.images.edit( - model="gpt-image-1.5", + model="gpt-image-2.6-flare", image=[ open("body-lotion.png", "rb"), open("bath-bomb.png", "rb"), @@ -8879,7 +8918,7 @@ paths: ); const stream = await client.images.edit({ - model: "gpt-image-1.5", + model: "gpt-image-2.6-flare", image: images, prompt: "Create a lovely gift basket with these four items in it", stream: true, @@ -8908,6 +8947,9 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateImageRequest' + example: + model: gpt-image-2.6-flare + prompt: A cute baby sea otter responses: '200': description: OK @@ -8956,7 +8998,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-image-2.5-flare", + "model": "gpt-image-2.6-flare", "prompt": "A cute baby sea otter", "n": 1, "size": "1024x1024" @@ -8967,7 +9009,7 @@ paths: client = OpenAI() img = client.images.generate( - model="gpt-image-2.5-flare", + model="gpt-image-2.6-flare", prompt="A cute baby sea otter", n=1, size="1024x1024" @@ -8983,7 +9025,7 @@ paths: const client = new OpenAI(); const img = await client.images.generate({ - model: "gpt-image-2.5-flare", + model: "gpt-image-2.6-flare", prompt: "A cute baby sea otter", n: 1, size: "1024x1024" @@ -9016,7 +9058,7 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ - "model": "gpt-image-2.5-flare", + "model": "gpt-image-2.6-flare", "prompt": "A cute baby sea otter", "n": 1, "size": "1024x1024", @@ -9029,7 +9071,7 @@ paths: client = OpenAI() stream = client.images.generate( - model="gpt-image-2.5-flare", + model="gpt-image-2.6-flare", prompt="A cute baby sea otter", n=1, size="1024x1024", @@ -9044,7 +9086,7 @@ paths: const client = new OpenAI(); const stream = await client.images.generate({ - model: "gpt-image-2.5-flare", + model: "gpt-image-2.6-flare", prompt: "A cute baby sea otter", n: 1, size: "1024x1024", @@ -9616,7 +9658,7 @@ paths: required: true schema: type: string - example: gpt-6-astra + example: gpt-6.2-astra description: The ID of the model to use for this request responses: '200': @@ -9642,20 +9684,20 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/models/gpt-6-astra \ + curl https://api.openai.com/v1/models/gpt-6.2-astra \ -H "Authorization: Bearer $OPENAI_API_KEY" python: | from openai import OpenAI client = OpenAI() - client.models.retrieve("gpt-6-astra") + client.models.retrieve("gpt-6.2-astra") javascript: |- import OpenAI from "openai"; const openai = new OpenAI(); async function main() { - const model = await openai.models.retrieve("gpt-6-astra"); + const model = await openai.models.retrieve("gpt-6.2-astra"); console.log(model); } @@ -9675,7 +9717,7 @@ paths: Console.WriteLine(model.Value.Id); response: | { - "id": "gpt-6-astra", + "id": "gpt-6.2-astra", "object": "model", "created": 1686935002, "owned_by": "openai", @@ -9693,7 +9735,7 @@ paths: required: true schema: type: string - example: ft:gpt-4o-mini:acemeco:suffix:abc123 + example: ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123 description: The model to delete responses: '200': @@ -9719,15 +9761,15 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/models/ft:gpt-4o-mini:acemeco:suffix:abc123 \ + curl https://api.openai.com/v1/models/ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123 \ -X DELETE \ -H "Authorization: Bearer $OPENAI_API_KEY" python: | from openai import OpenAI client = OpenAI() - client.models.delete("ft:gpt-4o-mini:acemeco:suffix:abc123") - javascript: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const model = await openai.models.delete(\"ft:gpt-4o-mini:acemeco:suffix:abc123\");\n \n console.log(model);\n}\nmain();" + client.models.delete("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123") + javascript: "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n const model = await openai.models.delete(\"ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123\");\n \n console.log(model);\n}\nmain();" csharp: | using System; using System.ClientModel; @@ -9738,11 +9780,11 @@ paths: apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY") ); - ClientResult success = client.DeleteModel("ft:gpt-4o-mini:acemeco:suffix:abc123"); + ClientResult success = client.DeleteModel("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123"); Console.WriteLine(success); response: | { - "id": "ft:gpt-4o-mini:acemeco:suffix:abc123", + "id": "ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123", "object": "model", "deleted": true } @@ -10235,10 +10277,8 @@ paths: example: key_abc object: type: string - enum: - - organization.admin_api_key.deleted example: organization.admin_api_key.deleted - x-stainless-const: true + const: organization.admin_api_key.deleted deleted: type: boolean example: true @@ -11043,7 +11083,7 @@ paths: 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-6-astra, input_tokens`. + description: Return only costs for these exact line item names. Each value must match the complete `line_item` value, for example `gpt-6.2-astra, input_tokens`. required: false schema: type: array @@ -14164,8 +14204,8 @@ paths: "object": "project.model_permissions", "mode": "allow_list", "model_ids": [ - "gpt-6-astra", - "o3" + "gpt-6.2-astra", + "gpt-6.2-sol" ] } post: @@ -14232,7 +14272,7 @@ paths: -d '{ "mode": "deny_list", "model_ids": [ - "o3" + "gpt-6.2-sol" ] }' response: | @@ -14240,7 +14280,7 @@ paths: "object": "project.model_permissions", "mode": "deny_list", "model_ids": [ - "o3" + "gpt-6.2-sol" ] } delete: @@ -19561,7 +19601,7 @@ paths: curl -X POST https://api.openai.com/v1/realtime/calls \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -F "sdp=, private val object_: JsonValue, private val thresholdAmount: JsonField, + private val notificationChannel: JsonField, private val additionalProperties: MutableMap, ) { @@ -41,7 +45,18 @@ private constructor( @JsonProperty("threshold_amount") @ExcludeMissing thresholdAmount: JsonField = JsonMissing.of(), - ) : this(currency, enforcement, interval, object_, thresholdAmount, mutableMapOf()) + @JsonProperty("notification_channel") + @ExcludeMissing + notificationChannel: JsonField = JsonMissing.of(), + ) : this( + currency, + enforcement, + interval, + object_, + thresholdAmount, + notificationChannel, + mutableMapOf(), + ) /** * The currency for the threshold amount. Currently, only `USD` is supported. @@ -89,6 +104,15 @@ private constructor( */ fun thresholdAmount(): Long = thresholdAmount.getRequired("threshold_amount") + /** + * Email notifications sent when the hard spend limit is reached. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun notificationChannel(): Optional = + notificationChannel.getOptional("notification_channel") + /** * Returns the raw JSON value of [currency]. * @@ -121,6 +145,16 @@ private constructor( @ExcludeMissing fun _thresholdAmount(): JsonField = thresholdAmount + /** + * Returns the raw JSON value of [notificationChannel]. + * + * Unlike [notificationChannel], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("notification_channel") + @ExcludeMissing + fun _notificationChannel(): JsonField = notificationChannel + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -142,6 +176,7 @@ private constructor( "interval" to this.interval, "object" to this.object_, "threshold_amount" to this.thresholdAmount, + "notification_channel" to this.notificationChannel, ) /** @@ -182,6 +217,7 @@ private constructor( private var interval: JsonField? = null private var object_: JsonValue = JsonValue.from("project.spend_limit") private var thresholdAmount: JsonField? = null + private var notificationChannel: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -191,6 +227,7 @@ private constructor( interval = projectSpendLimit.interval object_ = projectSpendLimit.object_ thresholdAmount = projectSpendLimit.thresholdAmount + notificationChannel = projectSpendLimit.notificationChannel additionalProperties = projectSpendLimit.additionalProperties.toMutableMap() } @@ -279,6 +316,21 @@ private constructor( this.thresholdAmount = thresholdAmount } + /** Email notifications sent when the hard spend limit is reached. */ + fun notificationChannel(notificationChannel: NotificationChannel) = + notificationChannel(JsonField.of(notificationChannel)) + + /** + * Sets [Builder.notificationChannel] to an arbitrary JSON value. + * + * You should usually call [Builder.notificationChannel] with a well-typed + * [NotificationChannel] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun notificationChannel(notificationChannel: JsonField) = apply { + this.notificationChannel = notificationChannel + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -320,6 +372,7 @@ private constructor( checkRequired("interval", interval), object_, checkRequired("thresholdAmount", thresholdAmount), + notificationChannel, additionalProperties.toMutableMap(), ) } @@ -348,6 +401,7 @@ private constructor( } } thresholdAmount() + notificationChannel().ifPresent { it.validate() } validated = true } @@ -370,7 +424,8 @@ private constructor( (enforcement.asKnown().getOrNull()?.validity() ?: 0) + (if (interval.asKnown().isPresent) 1 else 0) + object_.let { if (it == JsonValue.from("project.spend_limit")) 1 else 0 } + - (if (thresholdAmount.asKnown().isPresent) 1 else 0) + (if (thresholdAmount.asKnown().isPresent) 1 else 0) + + (notificationChannel.asKnown().getOrNull()?.validity() ?: 0) /** The currency for the threshold amount. Currently, only `USD` is supported. */ class Currency @JsonCreator private constructor(private val value: JsonField) : Enum { @@ -966,6 +1021,298 @@ private constructor( override fun toString() = value.toString() } + /** Email notifications sent when the hard spend limit is reached. */ + class NotificationChannel + @JsonCreator(mode = JsonCreator.Mode.DISABLED) + private constructor( + private val recipients: JsonField>, + private val type: JsonValue, + private val subjectPrefix: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("recipients") + @ExcludeMissing + recipients: JsonField> = JsonMissing.of(), + @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), + @JsonProperty("subject_prefix") + @ExcludeMissing + subjectPrefix: JsonField = JsonMissing.of(), + ) : this(recipients, type, subjectPrefix, mutableMapOf()) + + /** + * @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). + */ + fun recipients(): List = recipients.getRequired("recipients") + + /** + * Expected to always return the following: + * ```java + * JsonValue.from("email") + * ``` + * + * However, this method can be useful for debugging and logging (e.g. if the server + * responded with an unexpected value). + */ + @JsonProperty("type") @ExcludeMissing fun _type(): JsonValue = type + + /** + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun subjectPrefix(): Optional = subjectPrefix.getOptional("subject_prefix") + + /** + * Returns the raw JSON value of [recipients]. + * + * Unlike [recipients], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("recipients") + @ExcludeMissing + fun _recipients(): JsonField> = recipients + + /** + * Returns the raw JSON value of [subjectPrefix]. + * + * Unlike [subjectPrefix], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("subject_prefix") + @ExcludeMissing + fun _subjectPrefix(): JsonField = subjectPrefix + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + /** + * Returns an immutable snapshot of all present JSON properties, including declared and + * additional properties. + * + * Keys use their JSON names. Declared properties take precedence over additional properties + * with the same name. Missing properties are omitted, while explicit nulls and unrecognized + * values are preserved. + */ + fun _allProperties(): Map = + collectAllProperties( + additionalProperties, + "recipients" to this.recipients, + "type" to this.type, + "subject_prefix" to this.subjectPrefix, + ) + + /** + * Returns the legacy additional-properties view. + * + * @deprecated Use [_allProperties] to access both declared and additional JSON properties. + * This accessor retains its legacy additional-properties behavior. + */ + @Deprecated("Use _allProperties() to access both declared and additional JSON properties.") + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** + * Returns a mutable builder for constructing an instance of [NotificationChannel]. + * + * The following fields are required: + * ```java + * .recipients() + * ``` + */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [NotificationChannel]. */ + class Builder internal constructor() { + + private var recipients: JsonField>? = null + private var type: JsonValue = JsonValue.from("email") + private var subjectPrefix: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = mutableMapOf() + + @JvmSynthetic + internal fun from(notificationChannel: NotificationChannel) = apply { + recipients = notificationChannel.recipients.map { it.toMutableList() } + type = notificationChannel.type + subjectPrefix = notificationChannel.subjectPrefix + additionalProperties = notificationChannel.additionalProperties.toMutableMap() + } + + fun recipients(recipients: List) = recipients(JsonField.of(recipients)) + + /** + * Sets [Builder.recipients] to an arbitrary JSON value. + * + * You should usually call [Builder.recipients] with a well-typed `List` value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun recipients(recipients: JsonField>) = apply { + this.recipients = recipients.map { it.toMutableList() } + } + + /** + * Adds a single [String] to [recipients]. + * + * @throws IllegalStateException if the field was previously set to a non-list. + */ + fun addRecipient(recipient: String) = apply { + recipients = + (recipients ?: JsonField.of(mutableListOf())).also { + checkKnown("recipients", it).add(recipient) + } + } + + /** + * Sets the field to an arbitrary JSON value. + * + * It is usually unnecessary to call this method because the field defaults to the + * following: + * ```java + * JsonValue.from("email") + * ``` + * + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun type(type: JsonValue) = apply { this.type = type } + + fun subjectPrefix(subjectPrefix: String?) = + subjectPrefix(JsonField.ofNullable(subjectPrefix)) + + /** Alias for calling [Builder.subjectPrefix] with `subjectPrefix.orElse(null)`. */ + fun subjectPrefix(subjectPrefix: Optional) = + subjectPrefix(subjectPrefix.getOrNull()) + + /** + * Sets [Builder.subjectPrefix] to an arbitrary JSON value. + * + * You should usually call [Builder.subjectPrefix] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun subjectPrefix(subjectPrefix: JsonField) = apply { + this.subjectPrefix = subjectPrefix + } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [NotificationChannel]. + * + * Further updates to this [Builder] will not mutate the returned instance. + * + * The following fields are required: + * ```java + * .recipients() + * ``` + * + * @throws IllegalStateException if any required field is unset. + */ + fun build(): NotificationChannel = + NotificationChannel( + checkRequired("recipients", recipients).map { it.toImmutable() }, + type, + subjectPrefix, + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + /** + * Validates that the types of all values in this object match their expected types + * recursively. + * + * This method is _not_ forwards compatible with new types from the API for existing fields. + * + * @throws OpenAIInvalidDataException if any value type in this object doesn't match its + * expected type. + */ + fun validate(): NotificationChannel = apply { + if (validated) { + return@apply + } + + recipients() + _type().let { + if (it != JsonValue.from("email")) { + throw OpenAIInvalidDataException("'type' is invalid, received $it") + } + } + subjectPrefix() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: OpenAIInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = + (recipients.asKnown().getOrNull()?.size ?: 0) + + type.let { if (it == JsonValue.from("email")) 1 else 0 } + + (if (subjectPrefix.asKnown().isPresent) 1 else 0) + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is NotificationChannel && + recipients == other.recipients && + type == other.type && + subjectPrefix == other.subjectPrefix && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { + Objects.hash(recipients, type, subjectPrefix, additionalProperties) + } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "NotificationChannel{recipients=$recipients, type=$type, subjectPrefix=$subjectPrefix, additionalProperties=$additionalProperties}" + } + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -977,6 +1324,7 @@ private constructor( interval == other.interval && object_ == other.object_ && thresholdAmount == other.thresholdAmount && + notificationChannel == other.notificationChannel && additionalProperties == other.additionalProperties } @@ -987,6 +1335,7 @@ private constructor( interval, object_, thresholdAmount, + notificationChannel, additionalProperties, ) } @@ -994,5 +1343,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "ProjectSpendLimit{currency=$currency, enforcement=$enforcement, interval=$interval, object_=$object_, thresholdAmount=$thresholdAmount, additionalProperties=$additionalProperties}" + "ProjectSpendLimit{currency=$currency, enforcement=$enforcement, interval=$interval, object_=$object_, thresholdAmount=$thresholdAmount, notificationChannel=$notificationChannel, additionalProperties=$additionalProperties}" } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParams.kt index 8e585a103..bf543e311 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParams.kt @@ -12,10 +12,12 @@ import com.openai.core.JsonField import com.openai.core.JsonMissing import com.openai.core.JsonValue import com.openai.core.Params +import com.openai.core.checkKnown import com.openai.core.checkRequired import com.openai.core.collectAllProperties import com.openai.core.http.Headers import com.openai.core.http.QueryParams +import com.openai.core.toImmutable import com.openai.errors.OpenAIInvalidDataException import java.util.Collections import java.util.Objects @@ -58,6 +60,15 @@ private constructor( */ fun thresholdAmount(): Long = body.thresholdAmount() + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun notificationChannel(): Optional = body.notificationChannel() + /** * Returns the raw JSON value of [currency]. * @@ -79,6 +90,14 @@ private constructor( */ fun _thresholdAmount(): JsonField = body._thresholdAmount() + /** + * Returns the raw JSON value of [notificationChannel]. + * + * Unlike [notificationChannel], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _notificationChannel(): JsonField = body._notificationChannel() + fun _additionalBodyProperties(): Map = body._additionalProperties() /** Additional headers to send with the request. */ @@ -133,6 +152,7 @@ private constructor( * - [currency] * - [interval] * - [thresholdAmount] + * - [notificationChannel] */ fun body(body: Body) = apply { this.body = body.toBuilder() } @@ -177,6 +197,31 @@ private constructor( body.thresholdAmount(thresholdAmount) } + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + */ + fun notificationChannel(notificationChannel: NotificationChannel?) = apply { + body.notificationChannel(notificationChannel) + } + + /** + * Alias for calling [Builder.notificationChannel] with `notificationChannel.orElse(null)`. + */ + fun notificationChannel(notificationChannel: Optional) = + notificationChannel(notificationChannel.getOrNull()) + + /** + * Sets [Builder.notificationChannel] to an arbitrary JSON value. + * + * You should usually call [Builder.notificationChannel] with a well-typed + * [NotificationChannel] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun notificationChannel(notificationChannel: JsonField) = apply { + body.notificationChannel(notificationChannel) + } + fun additionalBodyProperties(additionalBodyProperties: Map) = apply { body.additionalProperties(additionalBodyProperties) } @@ -336,6 +381,7 @@ private constructor( private val currency: JsonField, private val interval: JsonField, private val thresholdAmount: JsonField, + private val notificationChannel: JsonField, private val additionalProperties: MutableMap, ) { @@ -350,7 +396,10 @@ private constructor( @JsonProperty("threshold_amount") @ExcludeMissing thresholdAmount: JsonField = JsonMissing.of(), - ) : this(currency, interval, thresholdAmount, mutableMapOf()) + @JsonProperty("notification_channel") + @ExcludeMissing + notificationChannel: JsonField = JsonMissing.of(), + ) : this(currency, interval, thresholdAmount, notificationChannel, mutableMapOf()) /** * The currency for the threshold amount. Currently, only `USD` is supported. @@ -377,6 +426,16 @@ private constructor( */ fun thresholdAmount(): Long = thresholdAmount.getRequired("threshold_amount") + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun notificationChannel(): Optional = + notificationChannel.getOptional("notification_channel") + /** * Returns the raw JSON value of [currency]. * @@ -401,6 +460,16 @@ private constructor( @ExcludeMissing fun _thresholdAmount(): JsonField = thresholdAmount + /** + * Returns the raw JSON value of [notificationChannel]. + * + * Unlike [notificationChannel], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("notification_channel") + @ExcludeMissing + fun _notificationChannel(): JsonField = notificationChannel + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -420,6 +489,7 @@ private constructor( "currency" to this.currency, "interval" to this.interval, "threshold_amount" to this.thresholdAmount, + "notification_channel" to this.notificationChannel, ) /** @@ -457,6 +527,7 @@ private constructor( private var currency: JsonField? = null private var interval: JsonField? = null private var thresholdAmount: JsonField? = null + private var notificationChannel: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -464,6 +535,7 @@ private constructor( currency = body.currency interval = body.interval thresholdAmount = body.thresholdAmount + notificationChannel = body.notificationChannel additionalProperties = body.additionalProperties.toMutableMap() } @@ -509,6 +581,31 @@ private constructor( this.thresholdAmount = thresholdAmount } + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep + * the current settings, or send null to reset to owner-only notifications. + */ + fun notificationChannel(notificationChannel: NotificationChannel?) = + notificationChannel(JsonField.ofNullable(notificationChannel)) + + /** + * Alias for calling [Builder.notificationChannel] with + * `notificationChannel.orElse(null)`. + */ + fun notificationChannel(notificationChannel: Optional) = + notificationChannel(notificationChannel.getOrNull()) + + /** + * Sets [Builder.notificationChannel] to an arbitrary JSON value. + * + * You should usually call [Builder.notificationChannel] with a well-typed + * [NotificationChannel] value instead. This method is primarily for setting the field + * to an undocumented or not yet supported value. + */ + fun notificationChannel(notificationChannel: JsonField) = apply { + this.notificationChannel = notificationChannel + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -547,6 +644,7 @@ private constructor( checkRequired("currency", currency), checkRequired("interval", interval), checkRequired("thresholdAmount", thresholdAmount), + notificationChannel, additionalProperties.toMutableMap(), ) } @@ -570,6 +668,7 @@ private constructor( currency().validate() interval().validate() thresholdAmount() + notificationChannel().ifPresent { it.validate() } validated = true } @@ -591,7 +690,8 @@ private constructor( internal fun validity(): Int = (currency.asKnown().getOrNull()?.validity() ?: 0) + (interval.asKnown().getOrNull()?.validity() ?: 0) + - (if (thresholdAmount.asKnown().isPresent) 1 else 0) + (if (thresholdAmount.asKnown().isPresent) 1 else 0) + + (notificationChannel.asKnown().getOrNull()?.validity() ?: 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -602,17 +702,24 @@ private constructor( currency == other.currency && interval == other.interval && thresholdAmount == other.thresholdAmount && + notificationChannel == other.notificationChannel && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(currency, interval, thresholdAmount, additionalProperties) + Objects.hash( + currency, + interval, + thresholdAmount, + notificationChannel, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "Body{currency=$currency, interval=$interval, thresholdAmount=$thresholdAmount, additionalProperties=$additionalProperties}" + "Body{currency=$currency, interval=$interval, thresholdAmount=$thresholdAmount, notificationChannel=$notificationChannel, additionalProperties=$additionalProperties}" } /** The currency for the threshold amount. Currently, only `USD` is supported. */ @@ -876,6 +983,296 @@ private constructor( override fun toString() = value.toString() } + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + */ + class NotificationChannel + @JsonCreator(mode = JsonCreator.Mode.DISABLED) + private constructor( + private val type: JsonValue, + private val recipients: JsonField>, + private val subjectPrefix: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), + @JsonProperty("recipients") + @ExcludeMissing + recipients: JsonField> = JsonMissing.of(), + @JsonProperty("subject_prefix") + @ExcludeMissing + subjectPrefix: JsonField = JsonMissing.of(), + ) : this(type, recipients, subjectPrefix, mutableMapOf()) + + /** + * Expected to always return the following: + * ```java + * JsonValue.from("email") + * ``` + * + * However, this method can be useful for debugging and logging (e.g. if the server + * responded with an unexpected value). + */ + @JsonProperty("type") @ExcludeMissing fun _type(): JsonValue = type + + /** + * Additional email recipients. Omit to keep them unchanged; send [] to clear them. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun recipients(): Optional> = recipients.getOptional("recipients") + + /** + * Email subject prefix. Omit to keep it unchanged; send null or an empty string to clear + * it. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun subjectPrefix(): Optional = subjectPrefix.getOptional("subject_prefix") + + /** + * Returns the raw JSON value of [recipients]. + * + * Unlike [recipients], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("recipients") + @ExcludeMissing + fun _recipients(): JsonField> = recipients + + /** + * Returns the raw JSON value of [subjectPrefix]. + * + * Unlike [subjectPrefix], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("subject_prefix") + @ExcludeMissing + fun _subjectPrefix(): JsonField = subjectPrefix + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + /** + * Returns an immutable snapshot of all present JSON properties, including declared and + * additional properties. + * + * Keys use their JSON names. Declared properties take precedence over additional properties + * with the same name. Missing properties are omitted, while explicit nulls and unrecognized + * values are preserved. + */ + fun _allProperties(): Map = + collectAllProperties( + additionalProperties, + "type" to this.type, + "recipients" to this.recipients, + "subject_prefix" to this.subjectPrefix, + ) + + /** + * Returns the legacy additional-properties view. + * + * @deprecated Use [_allProperties] to access both declared and additional JSON properties. + * This accessor retains its legacy additional-properties behavior. + */ + @Deprecated("Use _allProperties() to access both declared and additional JSON properties.") + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** Returns a mutable builder for constructing an instance of [NotificationChannel]. */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [NotificationChannel]. */ + class Builder internal constructor() { + + private var type: JsonValue = JsonValue.from("email") + private var recipients: JsonField>? = null + private var subjectPrefix: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = mutableMapOf() + + @JvmSynthetic + internal fun from(notificationChannel: NotificationChannel) = apply { + type = notificationChannel.type + recipients = notificationChannel.recipients.map { it.toMutableList() } + subjectPrefix = notificationChannel.subjectPrefix + additionalProperties = notificationChannel.additionalProperties.toMutableMap() + } + + /** + * Sets the field to an arbitrary JSON value. + * + * It is usually unnecessary to call this method because the field defaults to the + * following: + * ```java + * JsonValue.from("email") + * ``` + * + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun type(type: JsonValue) = apply { this.type = type } + + /** Additional email recipients. Omit to keep them unchanged; send [] to clear them. */ + fun recipients(recipients: List) = recipients(JsonField.of(recipients)) + + /** + * Sets [Builder.recipients] to an arbitrary JSON value. + * + * You should usually call [Builder.recipients] with a well-typed `List` value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun recipients(recipients: JsonField>) = apply { + this.recipients = recipients.map { it.toMutableList() } + } + + /** + * Adds a single [String] to [recipients]. + * + * @throws IllegalStateException if the field was previously set to a non-list. + */ + fun addRecipient(recipient: String) = apply { + recipients = + (recipients?.takeUnless { it.isMissing() } ?: JsonField.of(mutableListOf())) + .also { checkKnown("recipients", it).add(recipient) } + } + + /** + * Email subject prefix. Omit to keep it unchanged; send null or an empty string to + * clear it. + */ + fun subjectPrefix(subjectPrefix: String?) = + subjectPrefix(JsonField.ofNullable(subjectPrefix)) + + /** Alias for calling [Builder.subjectPrefix] with `subjectPrefix.orElse(null)`. */ + fun subjectPrefix(subjectPrefix: Optional) = + subjectPrefix(subjectPrefix.getOrNull()) + + /** + * Sets [Builder.subjectPrefix] to an arbitrary JSON value. + * + * You should usually call [Builder.subjectPrefix] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun subjectPrefix(subjectPrefix: JsonField) = apply { + this.subjectPrefix = subjectPrefix + } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [NotificationChannel]. + * + * Further updates to this [Builder] will not mutate the returned instance. + */ + fun build(): NotificationChannel = + NotificationChannel( + type, + (recipients ?: JsonMissing.of()).map { it.toImmutable() }, + subjectPrefix, + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + /** + * Validates that the types of all values in this object match their expected types + * recursively. + * + * This method is _not_ forwards compatible with new types from the API for existing fields. + * + * @throws OpenAIInvalidDataException if any value type in this object doesn't match its + * expected type. + */ + fun validate(): NotificationChannel = apply { + if (validated) { + return@apply + } + + _type().let { + if (it != JsonValue.from("email")) { + throw OpenAIInvalidDataException("'type' is invalid, received $it") + } + } + recipients() + subjectPrefix() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: OpenAIInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = + type.let { if (it == JsonValue.from("email")) 1 else 0 } + + (recipients.asKnown().getOrNull()?.size ?: 0) + + (if (subjectPrefix.asKnown().isPresent) 1 else 0) + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is NotificationChannel && + type == other.type && + recipients == other.recipients && + subjectPrefix == other.subjectPrefix && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { + Objects.hash(type, recipients, subjectPrefix, additionalProperties) + } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "NotificationChannel{type=$type, recipients=$recipients, subjectPrefix=$subjectPrefix, additionalProperties=$additionalProperties}" + } + override fun equals(other: Any?): Boolean { if (this === other) { return true diff --git a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimit.kt b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimit.kt index b1e1da6f6..b9baedb55 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimit.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimit.kt @@ -11,11 +11,14 @@ import com.openai.core.ExcludeMissing import com.openai.core.JsonField import com.openai.core.JsonMissing import com.openai.core.JsonValue +import com.openai.core.checkKnown import com.openai.core.checkRequired import com.openai.core.collectAllProperties +import com.openai.core.toImmutable import com.openai.errors.OpenAIInvalidDataException import java.util.Collections import java.util.Objects +import java.util.Optional import kotlin.jvm.optionals.getOrNull /** Represents a hard spend limit configured at the organization level. */ @@ -27,6 +30,7 @@ private constructor( private val interval: JsonField, private val object_: JsonValue, private val thresholdAmount: JsonField, + private val notificationChannel: JsonField, private val additionalProperties: MutableMap, ) { @@ -41,7 +45,18 @@ private constructor( @JsonProperty("threshold_amount") @ExcludeMissing thresholdAmount: JsonField = JsonMissing.of(), - ) : this(currency, enforcement, interval, object_, thresholdAmount, mutableMapOf()) + @JsonProperty("notification_channel") + @ExcludeMissing + notificationChannel: JsonField = JsonMissing.of(), + ) : this( + currency, + enforcement, + interval, + object_, + thresholdAmount, + notificationChannel, + mutableMapOf(), + ) /** * The currency for the threshold amount. Currently, only `USD` is supported. @@ -89,6 +104,15 @@ private constructor( */ fun thresholdAmount(): Long = thresholdAmount.getRequired("threshold_amount") + /** + * Email notifications sent when the hard spend limit is reached. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun notificationChannel(): Optional = + notificationChannel.getOptional("notification_channel") + /** * Returns the raw JSON value of [currency]. * @@ -121,6 +145,16 @@ private constructor( @ExcludeMissing fun _thresholdAmount(): JsonField = thresholdAmount + /** + * Returns the raw JSON value of [notificationChannel]. + * + * Unlike [notificationChannel], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("notification_channel") + @ExcludeMissing + fun _notificationChannel(): JsonField = notificationChannel + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -142,6 +176,7 @@ private constructor( "interval" to this.interval, "object" to this.object_, "threshold_amount" to this.thresholdAmount, + "notification_channel" to this.notificationChannel, ) /** @@ -182,6 +217,7 @@ private constructor( private var interval: JsonField? = null private var object_: JsonValue = JsonValue.from("organization.spend_limit") private var thresholdAmount: JsonField? = null + private var notificationChannel: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -191,6 +227,7 @@ private constructor( interval = organizationSpendLimit.interval object_ = organizationSpendLimit.object_ thresholdAmount = organizationSpendLimit.thresholdAmount + notificationChannel = organizationSpendLimit.notificationChannel additionalProperties = organizationSpendLimit.additionalProperties.toMutableMap() } @@ -279,6 +316,21 @@ private constructor( this.thresholdAmount = thresholdAmount } + /** Email notifications sent when the hard spend limit is reached. */ + fun notificationChannel(notificationChannel: NotificationChannel) = + notificationChannel(JsonField.of(notificationChannel)) + + /** + * Sets [Builder.notificationChannel] to an arbitrary JSON value. + * + * You should usually call [Builder.notificationChannel] with a well-typed + * [NotificationChannel] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun notificationChannel(notificationChannel: JsonField) = apply { + this.notificationChannel = notificationChannel + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -320,6 +372,7 @@ private constructor( checkRequired("interval", interval), object_, checkRequired("thresholdAmount", thresholdAmount), + notificationChannel, additionalProperties.toMutableMap(), ) } @@ -348,6 +401,7 @@ private constructor( } } thresholdAmount() + notificationChannel().ifPresent { it.validate() } validated = true } @@ -370,7 +424,8 @@ private constructor( (enforcement.asKnown().getOrNull()?.validity() ?: 0) + (if (interval.asKnown().isPresent) 1 else 0) + object_.let { if (it == JsonValue.from("organization.spend_limit")) 1 else 0 } + - (if (thresholdAmount.asKnown().isPresent) 1 else 0) + (if (thresholdAmount.asKnown().isPresent) 1 else 0) + + (notificationChannel.asKnown().getOrNull()?.validity() ?: 0) /** The currency for the threshold amount. Currently, only `USD` is supported. */ class Currency @JsonCreator private constructor(private val value: JsonField) : Enum { @@ -966,6 +1021,298 @@ private constructor( override fun toString() = value.toString() } + /** Email notifications sent when the hard spend limit is reached. */ + class NotificationChannel + @JsonCreator(mode = JsonCreator.Mode.DISABLED) + private constructor( + private val recipients: JsonField>, + private val type: JsonValue, + private val subjectPrefix: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("recipients") + @ExcludeMissing + recipients: JsonField> = JsonMissing.of(), + @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), + @JsonProperty("subject_prefix") + @ExcludeMissing + subjectPrefix: JsonField = JsonMissing.of(), + ) : this(recipients, type, subjectPrefix, mutableMapOf()) + + /** + * @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). + */ + fun recipients(): List = recipients.getRequired("recipients") + + /** + * Expected to always return the following: + * ```java + * JsonValue.from("email") + * ``` + * + * However, this method can be useful for debugging and logging (e.g. if the server + * responded with an unexpected value). + */ + @JsonProperty("type") @ExcludeMissing fun _type(): JsonValue = type + + /** + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun subjectPrefix(): Optional = subjectPrefix.getOptional("subject_prefix") + + /** + * Returns the raw JSON value of [recipients]. + * + * Unlike [recipients], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("recipients") + @ExcludeMissing + fun _recipients(): JsonField> = recipients + + /** + * Returns the raw JSON value of [subjectPrefix]. + * + * Unlike [subjectPrefix], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("subject_prefix") + @ExcludeMissing + fun _subjectPrefix(): JsonField = subjectPrefix + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + /** + * Returns an immutable snapshot of all present JSON properties, including declared and + * additional properties. + * + * Keys use their JSON names. Declared properties take precedence over additional properties + * with the same name. Missing properties are omitted, while explicit nulls and unrecognized + * values are preserved. + */ + fun _allProperties(): Map = + collectAllProperties( + additionalProperties, + "recipients" to this.recipients, + "type" to this.type, + "subject_prefix" to this.subjectPrefix, + ) + + /** + * Returns the legacy additional-properties view. + * + * @deprecated Use [_allProperties] to access both declared and additional JSON properties. + * This accessor retains its legacy additional-properties behavior. + */ + @Deprecated("Use _allProperties() to access both declared and additional JSON properties.") + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** + * Returns a mutable builder for constructing an instance of [NotificationChannel]. + * + * The following fields are required: + * ```java + * .recipients() + * ``` + */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [NotificationChannel]. */ + class Builder internal constructor() { + + private var recipients: JsonField>? = null + private var type: JsonValue = JsonValue.from("email") + private var subjectPrefix: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = mutableMapOf() + + @JvmSynthetic + internal fun from(notificationChannel: NotificationChannel) = apply { + recipients = notificationChannel.recipients.map { it.toMutableList() } + type = notificationChannel.type + subjectPrefix = notificationChannel.subjectPrefix + additionalProperties = notificationChannel.additionalProperties.toMutableMap() + } + + fun recipients(recipients: List) = recipients(JsonField.of(recipients)) + + /** + * Sets [Builder.recipients] to an arbitrary JSON value. + * + * You should usually call [Builder.recipients] with a well-typed `List` value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun recipients(recipients: JsonField>) = apply { + this.recipients = recipients.map { it.toMutableList() } + } + + /** + * Adds a single [String] to [recipients]. + * + * @throws IllegalStateException if the field was previously set to a non-list. + */ + fun addRecipient(recipient: String) = apply { + recipients = + (recipients ?: JsonField.of(mutableListOf())).also { + checkKnown("recipients", it).add(recipient) + } + } + + /** + * Sets the field to an arbitrary JSON value. + * + * It is usually unnecessary to call this method because the field defaults to the + * following: + * ```java + * JsonValue.from("email") + * ``` + * + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun type(type: JsonValue) = apply { this.type = type } + + fun subjectPrefix(subjectPrefix: String?) = + subjectPrefix(JsonField.ofNullable(subjectPrefix)) + + /** Alias for calling [Builder.subjectPrefix] with `subjectPrefix.orElse(null)`. */ + fun subjectPrefix(subjectPrefix: Optional) = + subjectPrefix(subjectPrefix.getOrNull()) + + /** + * Sets [Builder.subjectPrefix] to an arbitrary JSON value. + * + * You should usually call [Builder.subjectPrefix] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun subjectPrefix(subjectPrefix: JsonField) = apply { + this.subjectPrefix = subjectPrefix + } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [NotificationChannel]. + * + * Further updates to this [Builder] will not mutate the returned instance. + * + * The following fields are required: + * ```java + * .recipients() + * ``` + * + * @throws IllegalStateException if any required field is unset. + */ + fun build(): NotificationChannel = + NotificationChannel( + checkRequired("recipients", recipients).map { it.toImmutable() }, + type, + subjectPrefix, + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + /** + * Validates that the types of all values in this object match their expected types + * recursively. + * + * This method is _not_ forwards compatible with new types from the API for existing fields. + * + * @throws OpenAIInvalidDataException if any value type in this object doesn't match its + * expected type. + */ + fun validate(): NotificationChannel = apply { + if (validated) { + return@apply + } + + recipients() + _type().let { + if (it != JsonValue.from("email")) { + throw OpenAIInvalidDataException("'type' is invalid, received $it") + } + } + subjectPrefix() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: OpenAIInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = + (recipients.asKnown().getOrNull()?.size ?: 0) + + type.let { if (it == JsonValue.from("email")) 1 else 0 } + + (if (subjectPrefix.asKnown().isPresent) 1 else 0) + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is NotificationChannel && + recipients == other.recipients && + type == other.type && + subjectPrefix == other.subjectPrefix && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { + Objects.hash(recipients, type, subjectPrefix, additionalProperties) + } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "NotificationChannel{recipients=$recipients, type=$type, subjectPrefix=$subjectPrefix, additionalProperties=$additionalProperties}" + } + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -977,6 +1324,7 @@ private constructor( interval == other.interval && object_ == other.object_ && thresholdAmount == other.thresholdAmount && + notificationChannel == other.notificationChannel && additionalProperties == other.additionalProperties } @@ -987,6 +1335,7 @@ private constructor( interval, object_, thresholdAmount, + notificationChannel, additionalProperties, ) } @@ -994,5 +1343,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "OrganizationSpendLimit{currency=$currency, enforcement=$enforcement, interval=$interval, object_=$object_, thresholdAmount=$thresholdAmount, additionalProperties=$additionalProperties}" + "OrganizationSpendLimit{currency=$currency, enforcement=$enforcement, interval=$interval, object_=$object_, thresholdAmount=$thresholdAmount, notificationChannel=$notificationChannel, additionalProperties=$additionalProperties}" } diff --git a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParams.kt index b7248e54a..5bb93d562 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParams.kt @@ -12,13 +12,16 @@ import com.openai.core.JsonField import com.openai.core.JsonMissing import com.openai.core.JsonValue import com.openai.core.Params +import com.openai.core.checkKnown import com.openai.core.checkRequired import com.openai.core.collectAllProperties import com.openai.core.http.Headers import com.openai.core.http.QueryParams +import com.openai.core.toImmutable import com.openai.errors.OpenAIInvalidDataException import java.util.Collections import java.util.Objects +import java.util.Optional import kotlin.jvm.optionals.getOrNull /** Create or replace the organization's hard spend limit. */ @@ -54,6 +57,15 @@ private constructor( */ fun thresholdAmount(): Long = body.thresholdAmount() + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun notificationChannel(): Optional = body.notificationChannel() + /** * Returns the raw JSON value of [currency]. * @@ -75,6 +87,14 @@ private constructor( */ fun _thresholdAmount(): JsonField = body._thresholdAmount() + /** + * Returns the raw JSON value of [notificationChannel]. + * + * Unlike [notificationChannel], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _notificationChannel(): JsonField = body._notificationChannel() + fun _additionalBodyProperties(): Map = body._additionalProperties() /** Additional headers to send with the request. */ @@ -122,6 +142,7 @@ private constructor( * - [currency] * - [interval] * - [thresholdAmount] + * - [notificationChannel] */ fun body(body: Body) = apply { this.body = body.toBuilder() } @@ -166,6 +187,31 @@ private constructor( body.thresholdAmount(thresholdAmount) } + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + */ + fun notificationChannel(notificationChannel: NotificationChannel?) = apply { + body.notificationChannel(notificationChannel) + } + + /** + * Alias for calling [Builder.notificationChannel] with `notificationChannel.orElse(null)`. + */ + fun notificationChannel(notificationChannel: Optional) = + notificationChannel(notificationChannel.getOrNull()) + + /** + * Sets [Builder.notificationChannel] to an arbitrary JSON value. + * + * You should usually call [Builder.notificationChannel] with a well-typed + * [NotificationChannel] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun notificationChannel(notificationChannel: JsonField) = apply { + body.notificationChannel(notificationChannel) + } + fun additionalBodyProperties(additionalBodyProperties: Map) = apply { body.additionalProperties(additionalBodyProperties) } @@ -318,6 +364,7 @@ private constructor( private val currency: JsonField, private val interval: JsonField, private val thresholdAmount: JsonField, + private val notificationChannel: JsonField, private val additionalProperties: MutableMap, ) { @@ -332,7 +379,10 @@ private constructor( @JsonProperty("threshold_amount") @ExcludeMissing thresholdAmount: JsonField = JsonMissing.of(), - ) : this(currency, interval, thresholdAmount, mutableMapOf()) + @JsonProperty("notification_channel") + @ExcludeMissing + notificationChannel: JsonField = JsonMissing.of(), + ) : this(currency, interval, thresholdAmount, notificationChannel, mutableMapOf()) /** * The currency for the threshold amount. Currently, only `USD` is supported. @@ -359,6 +409,16 @@ private constructor( */ fun thresholdAmount(): Long = thresholdAmount.getRequired("threshold_amount") + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun notificationChannel(): Optional = + notificationChannel.getOptional("notification_channel") + /** * Returns the raw JSON value of [currency]. * @@ -383,6 +443,16 @@ private constructor( @ExcludeMissing fun _thresholdAmount(): JsonField = thresholdAmount + /** + * Returns the raw JSON value of [notificationChannel]. + * + * Unlike [notificationChannel], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("notification_channel") + @ExcludeMissing + fun _notificationChannel(): JsonField = notificationChannel + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -402,6 +472,7 @@ private constructor( "currency" to this.currency, "interval" to this.interval, "threshold_amount" to this.thresholdAmount, + "notification_channel" to this.notificationChannel, ) /** @@ -439,6 +510,7 @@ private constructor( private var currency: JsonField? = null private var interval: JsonField? = null private var thresholdAmount: JsonField? = null + private var notificationChannel: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -446,6 +518,7 @@ private constructor( currency = body.currency interval = body.interval thresholdAmount = body.thresholdAmount + notificationChannel = body.notificationChannel additionalProperties = body.additionalProperties.toMutableMap() } @@ -491,6 +564,31 @@ private constructor( this.thresholdAmount = thresholdAmount } + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep + * the current settings, or send null to reset to owner-only notifications. + */ + fun notificationChannel(notificationChannel: NotificationChannel?) = + notificationChannel(JsonField.ofNullable(notificationChannel)) + + /** + * Alias for calling [Builder.notificationChannel] with + * `notificationChannel.orElse(null)`. + */ + fun notificationChannel(notificationChannel: Optional) = + notificationChannel(notificationChannel.getOrNull()) + + /** + * Sets [Builder.notificationChannel] to an arbitrary JSON value. + * + * You should usually call [Builder.notificationChannel] with a well-typed + * [NotificationChannel] value instead. This method is primarily for setting the field + * to an undocumented or not yet supported value. + */ + fun notificationChannel(notificationChannel: JsonField) = apply { + this.notificationChannel = notificationChannel + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -529,6 +627,7 @@ private constructor( checkRequired("currency", currency), checkRequired("interval", interval), checkRequired("thresholdAmount", thresholdAmount), + notificationChannel, additionalProperties.toMutableMap(), ) } @@ -552,6 +651,7 @@ private constructor( currency().validate() interval().validate() thresholdAmount() + notificationChannel().ifPresent { it.validate() } validated = true } @@ -573,7 +673,8 @@ private constructor( internal fun validity(): Int = (currency.asKnown().getOrNull()?.validity() ?: 0) + (interval.asKnown().getOrNull()?.validity() ?: 0) + - (if (thresholdAmount.asKnown().isPresent) 1 else 0) + (if (thresholdAmount.asKnown().isPresent) 1 else 0) + + (notificationChannel.asKnown().getOrNull()?.validity() ?: 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -584,17 +685,24 @@ private constructor( currency == other.currency && interval == other.interval && thresholdAmount == other.thresholdAmount && + notificationChannel == other.notificationChannel && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(currency, interval, thresholdAmount, additionalProperties) + Objects.hash( + currency, + interval, + thresholdAmount, + notificationChannel, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "Body{currency=$currency, interval=$interval, thresholdAmount=$thresholdAmount, additionalProperties=$additionalProperties}" + "Body{currency=$currency, interval=$interval, thresholdAmount=$thresholdAmount, notificationChannel=$notificationChannel, additionalProperties=$additionalProperties}" } /** The currency for the threshold amount. Currently, only `USD` is supported. */ @@ -858,6 +966,296 @@ private constructor( override fun toString() = value.toString() } + /** + * Configure email notifications when the spend limit is reached. Leave this out to keep the + * current settings, or send null to reset to owner-only notifications. + */ + class NotificationChannel + @JsonCreator(mode = JsonCreator.Mode.DISABLED) + private constructor( + private val type: JsonValue, + private val recipients: JsonField>, + private val subjectPrefix: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("type") @ExcludeMissing type: JsonValue = JsonMissing.of(), + @JsonProperty("recipients") + @ExcludeMissing + recipients: JsonField> = JsonMissing.of(), + @JsonProperty("subject_prefix") + @ExcludeMissing + subjectPrefix: JsonField = JsonMissing.of(), + ) : this(type, recipients, subjectPrefix, mutableMapOf()) + + /** + * Expected to always return the following: + * ```java + * JsonValue.from("email") + * ``` + * + * However, this method can be useful for debugging and logging (e.g. if the server + * responded with an unexpected value). + */ + @JsonProperty("type") @ExcludeMissing fun _type(): JsonValue = type + + /** + * Additional email recipients. Omit to keep them unchanged; send [] to clear them. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun recipients(): Optional> = recipients.getOptional("recipients") + + /** + * Email subject prefix. Omit to keep it unchanged; send null or an empty string to clear + * it. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun subjectPrefix(): Optional = subjectPrefix.getOptional("subject_prefix") + + /** + * Returns the raw JSON value of [recipients]. + * + * Unlike [recipients], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("recipients") + @ExcludeMissing + fun _recipients(): JsonField> = recipients + + /** + * Returns the raw JSON value of [subjectPrefix]. + * + * Unlike [subjectPrefix], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("subject_prefix") + @ExcludeMissing + fun _subjectPrefix(): JsonField = subjectPrefix + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + /** + * Returns an immutable snapshot of all present JSON properties, including declared and + * additional properties. + * + * Keys use their JSON names. Declared properties take precedence over additional properties + * with the same name. Missing properties are omitted, while explicit nulls and unrecognized + * values are preserved. + */ + fun _allProperties(): Map = + collectAllProperties( + additionalProperties, + "type" to this.type, + "recipients" to this.recipients, + "subject_prefix" to this.subjectPrefix, + ) + + /** + * Returns the legacy additional-properties view. + * + * @deprecated Use [_allProperties] to access both declared and additional JSON properties. + * This accessor retains its legacy additional-properties behavior. + */ + @Deprecated("Use _allProperties() to access both declared and additional JSON properties.") + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** Returns a mutable builder for constructing an instance of [NotificationChannel]. */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [NotificationChannel]. */ + class Builder internal constructor() { + + private var type: JsonValue = JsonValue.from("email") + private var recipients: JsonField>? = null + private var subjectPrefix: JsonField = JsonMissing.of() + private var additionalProperties: MutableMap = mutableMapOf() + + @JvmSynthetic + internal fun from(notificationChannel: NotificationChannel) = apply { + type = notificationChannel.type + recipients = notificationChannel.recipients.map { it.toMutableList() } + subjectPrefix = notificationChannel.subjectPrefix + additionalProperties = notificationChannel.additionalProperties.toMutableMap() + } + + /** + * Sets the field to an arbitrary JSON value. + * + * It is usually unnecessary to call this method because the field defaults to the + * following: + * ```java + * JsonValue.from("email") + * ``` + * + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun type(type: JsonValue) = apply { this.type = type } + + /** Additional email recipients. Omit to keep them unchanged; send [] to clear them. */ + fun recipients(recipients: List) = recipients(JsonField.of(recipients)) + + /** + * Sets [Builder.recipients] to an arbitrary JSON value. + * + * You should usually call [Builder.recipients] with a well-typed `List` value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun recipients(recipients: JsonField>) = apply { + this.recipients = recipients.map { it.toMutableList() } + } + + /** + * Adds a single [String] to [recipients]. + * + * @throws IllegalStateException if the field was previously set to a non-list. + */ + fun addRecipient(recipient: String) = apply { + recipients = + (recipients?.takeUnless { it.isMissing() } ?: JsonField.of(mutableListOf())) + .also { checkKnown("recipients", it).add(recipient) } + } + + /** + * Email subject prefix. Omit to keep it unchanged; send null or an empty string to + * clear it. + */ + fun subjectPrefix(subjectPrefix: String?) = + subjectPrefix(JsonField.ofNullable(subjectPrefix)) + + /** Alias for calling [Builder.subjectPrefix] with `subjectPrefix.orElse(null)`. */ + fun subjectPrefix(subjectPrefix: Optional) = + subjectPrefix(subjectPrefix.getOrNull()) + + /** + * Sets [Builder.subjectPrefix] to an arbitrary JSON value. + * + * You should usually call [Builder.subjectPrefix] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun subjectPrefix(subjectPrefix: JsonField) = apply { + this.subjectPrefix = subjectPrefix + } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [NotificationChannel]. + * + * Further updates to this [Builder] will not mutate the returned instance. + */ + fun build(): NotificationChannel = + NotificationChannel( + type, + (recipients ?: JsonMissing.of()).map { it.toImmutable() }, + subjectPrefix, + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + /** + * Validates that the types of all values in this object match their expected types + * recursively. + * + * This method is _not_ forwards compatible with new types from the API for existing fields. + * + * @throws OpenAIInvalidDataException if any value type in this object doesn't match its + * expected type. + */ + fun validate(): NotificationChannel = apply { + if (validated) { + return@apply + } + + _type().let { + if (it != JsonValue.from("email")) { + throw OpenAIInvalidDataException("'type' is invalid, received $it") + } + } + recipients() + subjectPrefix() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: OpenAIInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = + type.let { if (it == JsonValue.from("email")) 1 else 0 } + + (recipients.asKnown().getOrNull()?.size ?: 0) + + (if (subjectPrefix.asKnown().isPresent) 1 else 0) + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is NotificationChannel && + type == other.type && + recipients == other.recipients && + subjectPrefix == other.subjectPrefix && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { + Objects.hash(type, recipients, subjectPrefix, additionalProperties) + } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "NotificationChannel{type=$type, recipients=$recipients, subjectPrefix=$subjectPrefix, additionalProperties=$additionalProperties}" + } + override fun equals(other: Any?): Boolean { if (this === other) { return true 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 c8f7205ce..9a9dcdf40 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 @@ -61,7 +61,7 @@ private constructor( /** * Return only costs for these exact line item names. Each value must match the complete - * `line_item` value, for example `gpt-6-astra, input_tokens`. + * `line_item` value, for example `gpt-6.2-astra, input_tokens`. */ fun lineItems(): Optional> = Optional.ofNullable(lineItems) @@ -206,7 +206,7 @@ private constructor( /** * Return only costs for these exact line item names. Each value must match the complete - * `line_item` value, for example `gpt-6-astra, input_tokens`. + * `line_item` value, for example `gpt-6.2-astra, input_tokens`. */ fun lineItems(lineItems: List?) = apply { this.lineItems = lineItems?.toMutableList() 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 7ea925886..4d6fb60f1 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,10 +269,10 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide range of models - * with different capabilities, performance characteristics, and price points. Refer to the - * [model guide](https://developers.openai.com/api/docs/models) to browse and compare available - * models. + * Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer to + * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare + * available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -815,7 +815,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/automations/AutomationTargetParam.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/automations/AutomationTargetParam.kt index 2618c5649..42299f1b2 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/automations/AutomationTargetParam.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/automations/AutomationTargetParam.kt @@ -852,7 +852,7 @@ private constructor( /** * Tools available to the agent. Omit to inherit, or pass null to clear them. The - * resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. + * resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8 JSON. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1170,7 +1170,7 @@ private constructor( /** * Tools available to the agent. Omit to inherit, or pass null to clear them. The - * resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. + * resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8 JSON. */ fun tools(tools: List?) = tools(JsonField.ofNullable(tools)) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/SessionCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/SessionCreateParams.kt index 9112d9897..66753413b 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/SessionCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/SessionCreateParams.kt @@ -1408,7 +1408,7 @@ private constructor( /** * Tools available to the agent. Omit to inherit, or pass null to clear them. The resolved - * tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. + * tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8 JSON. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -1714,7 +1714,7 @@ private constructor( /** * Tools available to the agent. Omit to inherit, or pass null to clear them. The - * resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON. + * resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8 JSON. */ fun tools(tools: List?) = tools(JsonField.ofNullable(tools)) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/traces/TraceListParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/traces/TraceListParams.kt index 7b3306d70..4c07c70d4 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/traces/TraceListParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/traces/TraceListParams.kt @@ -16,8 +16,9 @@ import kotlin.jvm.optionals.getOrNull /** * Lists published root-turn traces as OTLP JSON, ordered by turn creation time and ID. Unpublished * traces are skipped. Each page returns data available when read; it does not wait for late traces. - * Trace reads and the JSON response are limited to 16 MiB per request. If the limit is exceeded, - * request fewer traces. + * Pages may contain fewer traces than requested to fit the 16 MiB response limit. When `has_more` + * is true, pass `last_id` as `after` to continue. If the first trace exceeds 16 MiB before + * conversion or cannot fit on a page by itself, the API returns a `trace_too_large` error. */ class TraceListParams private constructor( diff --git a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaCompactedResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaCompactedResponse.kt index 50a65a9c4..a63d85b73 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaCompactedResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaCompactedResponse.kt @@ -30,6 +30,8 @@ private constructor( private val output: JsonField>, private val usage: JsonField, private val image: JsonField, + private val safetyIdentifier: JsonField, + private val serviceTier: JsonField, private val additionalProperties: MutableMap, ) { @@ -45,7 +47,23 @@ private constructor( @ExcludeMissing usage: JsonField = JsonMissing.of(), @JsonProperty("image") @ExcludeMissing image: JsonField = JsonMissing.of(), - ) : this(id, createdAt, object_, output, usage, image, mutableMapOf()) + @JsonProperty("safety_identifier") + @ExcludeMissing + safetyIdentifier: JsonField = JsonMissing.of(), + @JsonProperty("service_tier") + @ExcludeMissing + serviceTier: JsonField = JsonMissing.of(), + ) : this( + id, + createdAt, + object_, + output, + usage, + image, + safetyIdentifier, + serviceTier, + mutableMapOf(), + ) /** * The unique identifier for the compacted response. @@ -99,6 +117,22 @@ private constructor( */ fun image(): Optional = image.getOptional("image") + /** + * A stable identifier that was used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = safetyIdentifier.getOptional("safety_identifier") + + /** + * The service tier used for compaction, when reported. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun serviceTier(): Optional = serviceTier.getOptional("service_tier") + /** * Returns the raw JSON value of [id]. * @@ -136,6 +170,25 @@ private constructor( */ @JsonProperty("image") @ExcludeMissing fun _image(): JsonField = image + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("safety_identifier") + @ExcludeMissing + fun _safetyIdentifier(): JsonField = safetyIdentifier + + /** + * Returns the raw JSON value of [serviceTier]. + * + * Unlike [serviceTier], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("service_tier") + @ExcludeMissing + fun _serviceTier(): JsonField = serviceTier + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -158,6 +211,8 @@ private constructor( "output" to this.output, "usage" to this.usage, "image" to this.image, + "safety_identifier" to this.safetyIdentifier, + "service_tier" to this.serviceTier, ) /** @@ -199,6 +254,8 @@ private constructor( private var output: JsonField>? = null private var usage: JsonField? = null private var image: JsonField = JsonMissing.of() + private var safetyIdentifier: JsonField = JsonMissing.of() + private var serviceTier: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -209,6 +266,8 @@ private constructor( output = betaCompactedResponse.output.map { it.toMutableList() } usage = betaCompactedResponse.usage image = betaCompactedResponse.image + safetyIdentifier = betaCompactedResponse.safetyIdentifier + serviceTier = betaCompactedResponse.serviceTier additionalProperties = betaCompactedResponse.additionalProperties.toMutableMap() } @@ -496,6 +555,37 @@ private constructor( */ fun image(image: JsonField) = apply { this.image = image } + /** A stable identifier that was used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = + safetyIdentifier(JsonField.ofNullable(safetyIdentifier)) + + /** Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + this.safetyIdentifier = safetyIdentifier + } + + /** The service tier used for compaction, when reported. */ + fun serviceTier(serviceTier: String) = serviceTier(JsonField.of(serviceTier)) + + /** + * Sets [Builder.serviceTier] to an arbitrary JSON value. + * + * You should usually call [Builder.serviceTier] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. + */ + fun serviceTier(serviceTier: JsonField) = apply { this.serviceTier = serviceTier } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -538,6 +628,8 @@ private constructor( checkRequired("output", output).map { it.toImmutable() }, checkRequired("usage", usage), image, + safetyIdentifier, + serviceTier, additionalProperties.toMutableMap(), ) } @@ -567,6 +659,8 @@ private constructor( output().forEach { it.validate() } usage().validate() image().ifPresent { it.validate() } + safetyIdentifier() + serviceTier() validated = true } @@ -590,7 +684,9 @@ private constructor( object_.let { if (it == JsonValue.from("response.compaction")) 1 else 0 } + (output.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) + (usage.asKnown().getOrNull()?.validity() ?: 0) + - (image.asKnown().getOrNull()?.validity() ?: 0) + (image.asKnown().getOrNull()?.validity() ?: 0) + + (if (safetyIdentifier.asKnown().isPresent) 1 else 0) + + (if (serviceTier.asKnown().isPresent) 1 else 0) class Image @JsonCreator(mode = JsonCreator.Mode.DISABLED) @@ -948,15 +1044,27 @@ private constructor( output == other.output && usage == other.usage && image == other.image && + safetyIdentifier == other.safetyIdentifier && + serviceTier == other.serviceTier && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(id, createdAt, object_, output, usage, image, additionalProperties) + Objects.hash( + id, + createdAt, + object_, + output, + usage, + image, + safetyIdentifier, + serviceTier, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "BetaCompactedResponse{id=$id, createdAt=$createdAt, object_=$object_, output=$output, usage=$usage, image=$image, additionalProperties=$additionalProperties}" + "BetaCompactedResponse{id=$id, createdAt=$createdAt, object_=$object_, output=$output, usage=$usage, image=$image, safetyIdentifier=$safetyIdentifier, serviceTier=$serviceTier, additionalProperties=$additionalProperties}" } 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 ea31168a7..f5b968441 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 @@ -286,7 +286,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. @@ -1281,10 +1281,10 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: Model) = model(JsonField.of(model)) @@ -3650,7 +3650,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. 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 fbb626138..ce1e04c6b 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 @@ -805,10 +805,10 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -1946,7 +1946,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to * browse and compare available models. @@ -4939,10 +4939,10 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ class Model @JsonCreator private constructor(private val value: JsonField) : Enum { 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 c49b98c54..2647c13cc 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 @@ -53,7 +53,7 @@ private constructor( fun betas(): Optional> = Optional.ofNullable(betas) /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. @@ -133,6 +133,14 @@ private constructor( @Deprecated("deprecated") fun promptCacheRetention(): Optional = body.promptCacheRetention() + /** + * A stable identifier used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = body.safetyIdentifier() + /** * Specifies the processing type used for serving the request. - If set to 'auto', then the * request will be processed with the service tier configured in the Project settings. Unless @@ -214,6 +222,14 @@ private constructor( @Deprecated("deprecated") fun _promptCacheRetention(): JsonField = body._promptCacheRetention() + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _safetyIdentifier(): JsonField = body._safetyIdentifier() + /** * Returns the raw JSON value of [serviceTier]. * @@ -287,10 +303,10 @@ private constructor( fun body(body: Body) = apply { this.body = body.toBuilder() } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: Model?) = apply { body.model(model) } @@ -477,6 +493,26 @@ private constructor( body.promptCacheRetention(promptCacheRetention) } + /** A stable identifier used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = apply { + body.safetyIdentifier(safetyIdentifier) + } + + /** Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + body.safetyIdentifier(safetyIdentifier) + } + /** * Specifies the processing type used for serving the request. - If set to 'auto', then the * request will be processed with the service tier configured in the Project settings. @@ -671,6 +707,7 @@ private constructor( private val promptCacheKey: JsonField, private val promptCacheOptions: JsonField, private val promptCacheRetention: JsonField, + private val safetyIdentifier: JsonField, private val serviceTier: JsonField, private val additionalProperties: MutableMap, ) { @@ -695,6 +732,9 @@ private constructor( @JsonProperty("prompt_cache_retention") @ExcludeMissing promptCacheRetention: JsonField = JsonMissing.of(), + @JsonProperty("safety_identifier") + @ExcludeMissing + safetyIdentifier: JsonField = JsonMissing.of(), @JsonProperty("service_tier") @ExcludeMissing serviceTier: JsonField = JsonMissing.of(), @@ -707,15 +747,16 @@ private constructor( promptCacheKey, promptCacheOptions, promptCacheRetention, + safetyIdentifier, serviceTier, mutableMapOf(), ) /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -797,6 +838,14 @@ private constructor( fun promptCacheRetention(): Optional = promptCacheRetention.getOptional("prompt_cache_retention") + /** + * A stable identifier used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = safetyIdentifier.getOptional("safety_identifier") + /** * Specifies the processing type used for serving the request. - If set to 'auto', then the * request will be processed with the service tier configured in the Project settings. @@ -892,6 +941,16 @@ private constructor( @ExcludeMissing fun _promptCacheRetention(): JsonField = promptCacheRetention + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("safety_identifier") + @ExcludeMissing + fun _safetyIdentifier(): JsonField = safetyIdentifier + /** * Returns the raw JSON value of [serviceTier]. * @@ -925,6 +984,7 @@ private constructor( "prompt_cache_key" to this.promptCacheKey, "prompt_cache_options" to this.promptCacheOptions, "prompt_cache_retention" to this.promptCacheRetention, + "safety_identifier" to this.safetyIdentifier, "service_tier" to this.serviceTier, ) @@ -966,6 +1026,7 @@ private constructor( private var promptCacheKey: JsonField = JsonMissing.of() private var promptCacheOptions: JsonField = JsonMissing.of() private var promptCacheRetention: JsonField = JsonMissing.of() + private var safetyIdentifier: JsonField = JsonMissing.of() private var serviceTier: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -979,12 +1040,13 @@ private constructor( promptCacheKey = body.promptCacheKey promptCacheOptions = body.promptCacheOptions promptCacheRetention = body.promptCacheRetention + safetyIdentifier = body.safetyIdentifier serviceTier = body.serviceTier additionalProperties = body.additionalProperties.toMutableMap() } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to * browse and compare available models. @@ -1180,6 +1242,27 @@ private constructor( this.promptCacheRetention = promptCacheRetention } + /** A stable identifier used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = + safetyIdentifier(JsonField.ofNullable(safetyIdentifier)) + + /** + * Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. + */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + this.safetyIdentifier = safetyIdentifier + } + /** * Specifies the processing type used for serving the request. - If set to 'auto', then * the request will be processed with the service tier configured in the Project @@ -1256,6 +1339,7 @@ private constructor( promptCacheKey, promptCacheOptions, promptCacheRetention, + safetyIdentifier, serviceTier, additionalProperties.toMutableMap(), ) @@ -1285,6 +1369,7 @@ private constructor( promptCacheKey() promptCacheOptions().ifPresent { it.validate() } promptCacheRetention().ifPresent { it.validate() } + safetyIdentifier() serviceTier().ifPresent { it.validate() } validated = true } @@ -1313,6 +1398,7 @@ private constructor( (if (promptCacheKey.asKnown().isPresent) 1 else 0) + (promptCacheOptions.asKnown().getOrNull()?.validity() ?: 0) + (promptCacheRetention.asKnown().getOrNull()?.validity() ?: 0) + + (if (safetyIdentifier.asKnown().isPresent) 1 else 0) + (serviceTier.asKnown().getOrNull()?.validity() ?: 0) override fun equals(other: Any?): Boolean { @@ -1329,6 +1415,7 @@ private constructor( promptCacheKey == other.promptCacheKey && promptCacheOptions == other.promptCacheOptions && promptCacheRetention == other.promptCacheRetention && + safetyIdentifier == other.safetyIdentifier && serviceTier == other.serviceTier && additionalProperties == other.additionalProperties } @@ -1343,6 +1430,7 @@ private constructor( promptCacheKey, promptCacheOptions, promptCacheRetention, + safetyIdentifier, serviceTier, additionalProperties, ) @@ -1351,11 +1439,11 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Body{model=$model, image=$image, input=$input, instructions=$instructions, previousResponseId=$previousResponseId, promptCacheKey=$promptCacheKey, promptCacheOptions=$promptCacheOptions, promptCacheRetention=$promptCacheRetention, serviceTier=$serviceTier, additionalProperties=$additionalProperties}" + "Body{model=$model, image=$image, input=$input, instructions=$instructions, previousResponseId=$previousResponseId, promptCacheKey=$promptCacheKey, promptCacheOptions=$promptCacheOptions, promptCacheRetention=$promptCacheRetention, safetyIdentifier=$safetyIdentifier, serviceTier=$serviceTier, additionalProperties=$additionalProperties}" } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/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 0abb71f1e..d10b6ebb5 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 @@ -188,7 +188,7 @@ private constructor( fun metadata(): Optional = body.metadata() /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. @@ -1065,10 +1065,10 @@ private constructor( fun metadata(metadata: JsonField) = apply { body.metadata(metadata) } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: Model) = apply { body.model(model) } @@ -2233,10 +2233,10 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -3286,7 +3286,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to * browse and compare available models. @@ -6240,7 +6240,7 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. 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 9476e8f06..2f46e4fc6 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-6-astra` or `o3`. OpenAI offers a wide - * range of models with different capabilities, performance characteristics, and price points. - * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and - * compare available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of + * models with different capabilities, performance characteristics, and price points. Refer to + * the [model guide](https://developers.openai.com/api/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). @@ -391,7 +391,7 @@ private constructor( fun serviceTier(): Optional = body.serviceTier() /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text will * not contain the stop sequence. @@ -995,10 +995,10 @@ private constructor( } /** - * Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI offers a wide - * range of models with different capabilities, performance characteristics, and price - * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to - * browse and compare available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: ChatModel) = apply { body.model(model) } @@ -1701,7 +1701,7 @@ private constructor( } /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text * will not contain the stop sequence. @@ -2361,10 +2361,10 @@ private constructor( fun messages(): List = messages.getRequired("messages") /** - * Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI offers a wide - * range of models with different capabilities, performance characteristics, and price - * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to - * browse and compare available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/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). @@ -2678,7 +2678,7 @@ private constructor( fun serviceTier(): Optional = serviceTier.getOptional("service_tier") /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text * will not contain the stop sequence. @@ -3498,11 +3498,10 @@ private constructor( addMessage(ChatCompletionMessageParam.ofFunction(function)) /** - * Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI offers a - * wide range of models with different capabilities, performance characteristics, and - * price points. Refer to the - * [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide + * range of models with different capabilities, performance characteristics, and price + * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to + * browse and compare available models. */ fun model(model: ChatModel) = model(JsonField.of(model)) @@ -4209,7 +4208,7 @@ private constructor( } /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned * text will not contain the stop sequence. @@ -8195,7 +8194,7 @@ private constructor( } /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text will * not contain the stop sequence. diff --git a/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionCreateParams.kt index c1d3a82f3..b031d1c7b 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionCreateParams.kt @@ -190,7 +190,7 @@ private constructor( fun seed(): Optional = body.seed() /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text will * not contain the stop sequence. @@ -747,7 +747,7 @@ private constructor( fun seed(seed: JsonField) = apply { body.seed(seed) } /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text * will not contain the stop sequence. @@ -1243,7 +1243,7 @@ private constructor( fun seed(): Optional = seed.getOptional("seed") /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text * will not contain the stop sequence. @@ -1881,7 +1881,7 @@ private constructor( fun seed(seed: JsonField) = apply { this.seed = seed } /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned * text will not contain the stop sequence. @@ -2766,7 +2766,7 @@ private constructor( } /** - * Not supported with latest reasoning models `o3` and `o4-mini`. + * Not supported with reasoning models `o3` and `o4-mini`. * * Up to 4 sequences where the API will stop generating further tokens. The returned text will * not contain the stop sequence. diff --git a/openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationCreateParams.kt index ec5dd4715..edbf12f3b 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationCreateParams.kt @@ -66,6 +66,14 @@ private constructor( */ fun metadata(): Optional = body.metadata() + /** + * A stable identifier used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = body.safetyIdentifier() + /** * Returns the raw JSON value of [items]. * @@ -80,6 +88,14 @@ private constructor( */ fun _metadata(): JsonField = body._metadata() + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _safetyIdentifier(): JsonField = body._safetyIdentifier() + fun _additionalBodyProperties(): Map = body._additionalProperties() /** Additional headers to send with the request. */ @@ -119,6 +135,7 @@ private constructor( * Otherwise, it's more convenient to use the top-level setters instead: * - [items] * - [metadata] + * - [safetyIdentifier] */ fun body(body: Body) = apply { this.body = body.toBuilder() } @@ -453,6 +470,26 @@ private constructor( */ fun metadata(metadata: JsonField) = apply { body.metadata(metadata) } + /** A stable identifier used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = apply { + body.safetyIdentifier(safetyIdentifier) + } + + /** Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + body.safetyIdentifier(safetyIdentifier) + } + fun additionalBodyProperties(additionalBodyProperties: Map) = apply { body.additionalProperties(additionalBodyProperties) } @@ -594,6 +631,7 @@ private constructor( private constructor( private val items: JsonField>, private val metadata: JsonField, + private val safetyIdentifier: JsonField, private val additionalProperties: MutableMap, ) { @@ -605,7 +643,10 @@ private constructor( @JsonProperty("metadata") @ExcludeMissing metadata: JsonField = JsonMissing.of(), - ) : this(items, metadata, mutableMapOf()) + @JsonProperty("safety_identifier") + @ExcludeMissing + safetyIdentifier: JsonField = JsonMissing.of(), + ) : this(items, metadata, safetyIdentifier, mutableMapOf()) /** * Initial items to include in the conversation context. You may add up to 20 items at a @@ -628,6 +669,14 @@ private constructor( */ fun metadata(): Optional = metadata.getOptional("metadata") + /** + * A stable identifier used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = safetyIdentifier.getOptional("safety_identifier") + /** * Returns the raw JSON value of [items]. * @@ -644,6 +693,16 @@ private constructor( */ @JsonProperty("metadata") @ExcludeMissing fun _metadata(): JsonField = metadata + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("safety_identifier") + @ExcludeMissing + fun _safetyIdentifier(): JsonField = safetyIdentifier + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -662,6 +721,7 @@ private constructor( additionalProperties, "items" to this.items, "metadata" to this.metadata, + "safety_identifier" to this.safetyIdentifier, ) /** @@ -689,12 +749,14 @@ private constructor( private var items: JsonField>? = null private var metadata: JsonField = JsonMissing.of() + private var safetyIdentifier: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(body: Body) = apply { items = body.items.map { it.toMutableList() } metadata = body.metadata + safetyIdentifier = body.safetyIdentifier additionalProperties = body.additionalProperties.toMutableMap() } @@ -1049,6 +1111,27 @@ private constructor( */ fun metadata(metadata: JsonField) = apply { this.metadata = metadata } + /** A stable identifier used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = + safetyIdentifier(JsonField.ofNullable(safetyIdentifier)) + + /** + * Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. + */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + this.safetyIdentifier = safetyIdentifier + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -1077,6 +1160,7 @@ private constructor( Body( (items ?: JsonMissing.of()).map { it.toImmutable() }, metadata, + safetyIdentifier, additionalProperties.toMutableMap(), ) } @@ -1099,6 +1183,7 @@ private constructor( items().ifPresent { it.forEach { it.validate() } } metadata().ifPresent { it.validate() } + safetyIdentifier() validated = true } @@ -1119,7 +1204,8 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (items.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) + - (metadata.asKnown().getOrNull()?.validity() ?: 0) + (metadata.asKnown().getOrNull()?.validity() ?: 0) + + (if (safetyIdentifier.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -1129,15 +1215,18 @@ private constructor( return other is Body && items == other.items && metadata == other.metadata && + safetyIdentifier == other.safetyIdentifier && additionalProperties == other.additionalProperties } - private val hashCode: Int by lazy { Objects.hash(items, metadata, additionalProperties) } + private val hashCode: Int by lazy { + Objects.hash(items, metadata, safetyIdentifier, additionalProperties) + } override fun hashCode(): Int = hashCode override fun toString() = - "Body{items=$items, metadata=$metadata, additionalProperties=$additionalProperties}" + "Body{items=$items, metadata=$metadata, safetyIdentifier=$safetyIdentifier, 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 9eb40b2ab..dd71ca29b 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 @@ -42,7 +42,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-6-astra + * - Compare how different models perform on the same task */ 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 4dffe0723..41506a681 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 @@ -42,7 +42,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-6-astra + * - Compare how different models perform on the same task */ 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 d1de00517..b9654be36 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 @@ -42,7 +42,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-6-astra + * - Compare how different models perform on the same task */ 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 8d92f201b..ce6148a9e 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 @@ -42,7 +42,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-6-astra + * - Compare how different models perform on the same task */ 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 54873f227..ef94e6a18 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 @@ -93,7 +93,7 @@ private constructor( fun inputMessages(): Optional = inputMessages.getOptional("input_messages") /** - * The name of the model to use for generating completions (e.g. "o3-mini"). + * The model to use to sample outputs with the Chat Completions API. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -324,7 +324,7 @@ private constructor( InputMessages.ItemReference.builder().itemReference(itemReference).build() ) - /** The name of the model to use for generating completions (e.g. "o3-mini"). */ + /** The model to use to sample outputs with the Chat Completions API. */ fun model(model: String) = model(JsonField.of(model)) /** @@ -1755,7 +1755,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * An optional model to filter by (e.g., 'gpt-6-astra'). + * An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14'). * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1985,7 +1985,7 @@ private constructor( */ fun metadata(metadata: JsonField) = apply { this.metadata = metadata } - /** An optional model to filter by (e.g., 'gpt-6-astra'). */ + /** An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14'). */ 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/evals/runs/RunCancelResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCancelResponse.kt index dc2e47c3d..07b23cf07 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCancelResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCancelResponse.kt @@ -1305,7 +1305,7 @@ private constructor( inputMessages.getOptional("input_messages") /** - * The name of the model to use for generating completions (e.g. "o3-mini"). + * The model to use to sample outputs with the Responses API. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1537,7 +1537,7 @@ private constructor( InputMessages.ItemReference.builder().itemReference(itemReference).build() ) - /** The name of the model to use for generating completions (e.g. "o3-mini"). */ + /** The model to use to sample outputs with the Responses API. */ fun model(model: String) = model(JsonField.of(model)) /** diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt index 46a5c7c39..47d131eca 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt @@ -1058,7 +1058,7 @@ private constructor( inputMessages.getOptional("input_messages") /** - * The name of the model to use for generating completions (e.g. "o3-mini"). + * The model to use to sample outputs with the Responses API. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1300,7 +1300,7 @@ private constructor( InputMessages.ItemReference.builder().itemReference(itemReference).build() ) - /** The name of the model to use for generating completions (e.g. "o3-mini"). */ + /** The model to use to sample outputs with the Responses API. */ fun model(model: String) = model(JsonField.of(model)) /** diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt index aef8f508d..f3a1701fd 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt @@ -1305,7 +1305,7 @@ private constructor( inputMessages.getOptional("input_messages") /** - * The name of the model to use for generating completions (e.g. "o3-mini"). + * The model to use to sample outputs with the Responses API. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1537,7 +1537,7 @@ private constructor( InputMessages.ItemReference.builder().itemReference(itemReference).build() ) - /** The name of the model to use for generating completions (e.g. "o3-mini"). */ + /** The model to use to sample outputs with the Responses API. */ fun model(model: String) = model(JsonField.of(model)) /** diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt index f23d9f2f9..b47f81f2e 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt @@ -1305,7 +1305,7 @@ private constructor( inputMessages.getOptional("input_messages") /** - * The name of the model to use for generating completions (e.g. "o3-mini"). + * The model to use to sample outputs with the Responses API. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1537,7 +1537,7 @@ private constructor( InputMessages.ItemReference.builder().itemReference(itemReference).build() ) - /** The name of the model to use for generating completions (e.g. "o3-mini"). */ + /** The model to use to sample outputs with the Responses API. */ fun model(model: String) = model(JsonField.of(model)) /** diff --git a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveResponse.kt index f019f9187..0d8939405 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveResponse.kt @@ -1305,7 +1305,7 @@ private constructor( inputMessages.getOptional("input_messages") /** - * The name of the model to use for generating completions (e.g. "o3-mini"). + * The model to use to sample outputs with the Responses API. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1537,7 +1537,7 @@ private constructor( InputMessages.ItemReference.builder().itemReference(itemReference).build() ) - /** The name of the model to use for generating completions (e.g. "o3-mini"). */ + /** The model to use to sample outputs with the Responses API. */ fun model(model: String) = model(JsonField.of(model)) /** diff --git a/openai-java-core/src/main/kotlin/com/openai/models/finetuning/jobs/JobCreateParams.kt b/openai-java-core/src/main/kotlin/com/openai/models/finetuning/jobs/JobCreateParams.kt index 218e06a46..b049ca1b2 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/finetuning/jobs/JobCreateParams.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/finetuning/jobs/JobCreateParams.kt @@ -138,7 +138,7 @@ private constructor( * A string of up to 64 characters that will be added to your fine-tuned model name. * * For example, a `suffix` of "custom-model-name" would produce a model name like - * `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`. + * `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -444,7 +444,7 @@ private constructor( * A string of up to 64 characters that will be added to your fine-tuned model name. * * For example, a `suffix` of "custom-model-name" would produce a model name like - * `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`. + * `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`. */ fun suffix(suffix: String?) = apply { body.suffix(suffix) } @@ -767,7 +767,7 @@ private constructor( * A string of up to 64 characters that will be added to your fine-tuned model name. * * For example, a `suffix` of "custom-model-name" would produce a model name like - * `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`. + * `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -1123,7 +1123,7 @@ private constructor( * A string of up to 64 characters that will be added to your fine-tuned model name. * * For example, a `suffix` of "custom-model-name" would produce a model name like - * `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`. + * `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`. */ fun suffix(suffix: String?) = suffix(JsonField.ofNullable(suffix)) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/live/MediaSessionConfig.kt b/openai-java-core/src/main/kotlin/com/openai/models/live/MediaSessionConfig.kt index 80776702e..11b525cfe 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/live/MediaSessionConfig.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/live/MediaSessionConfig.kt @@ -133,9 +133,9 @@ private constructor( fun delegation(): Optional = delegation.getOptional("delegation") /** - * Whole seconds of inactivity after which a Live WebRTC session with a speech wake policy - * pauses inference. The connection and conversation history are retained. Omit to keep - * inference active until the session ends. + * Whole seconds of inactivity after which a Live WebRTC or SIP session with a speech wake + * policy pauses inference. The connection and conversation history are retained. Omit to keep + * inference active after the first wake until the session ends. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -194,8 +194,7 @@ private constructor( fun triggers(): Optional> = triggers.getOptional("triggers") /** - * Inference starts when the Live WebRTC session connects. After an idle pause, microphone - * speech resumes inference. + * Starts inference when microphone speech is detected. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -483,9 +482,9 @@ private constructor( delegation(Delegation.Decisions.builder().decisions(decisions).build()) /** - * Whole seconds of inactivity after which a Live WebRTC session with a speech wake policy - * pauses inference. The connection and conversation history are retained. Omit to keep - * inference active until the session ends. + * Whole seconds of inactivity after which a Live WebRTC or SIP session with a speech wake + * policy pauses inference. The connection and conversation history are retained. Omit to + * keep inference active after the first wake until the session ends. */ fun idleTimeoutS(idleTimeoutS: Long) = idleTimeoutS(JsonField.of(idleTimeoutS)) @@ -662,10 +661,7 @@ private constructor( } } - /** - * Inference starts when the Live WebRTC session connects. After an idle pause, microphone - * speech resumes inference. - */ + /** Starts inference when microphone speech is detected. */ fun wakePolicy(wakePolicy: WakePolicy) = wakePolicy(JsonField.of(wakePolicy)) /** @@ -2406,10 +2402,7 @@ private constructor( } } - /** - * Inference starts when the Live WebRTC session connects. After an idle pause, microphone - * speech resumes inference. - */ + /** Starts inference when microphone speech is detected. */ class WakePolicy @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( @@ -2440,9 +2433,9 @@ private constructor( @JsonProperty("type") @ExcludeMissing fun _type(): JsonValue = type /** - * The speech detection threshold for resuming paused inference, from 0 to 1 inclusive. - * Defaults to 0.5. Higher values require stronger evidence of speech. This setting is - * independent of active turn detection. + * The speech detection threshold for the first wake and each later wake, from 0 to 1 + * inclusive. Defaults to 0.5. Higher values require stronger evidence of speech. This + * setting is independent of active turn detection. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -2528,9 +2521,9 @@ private constructor( fun type(type: JsonValue) = apply { this.type = type } /** - * The speech detection threshold for resuming paused inference, from 0 to 1 inclusive. - * Defaults to 0.5. Higher values require stronger evidence of speech. This setting is - * independent of active turn detection. + * The speech detection threshold for the first wake and each later wake, from 0 to 1 + * inclusive. Defaults to 0.5. Higher values require stronger evidence of speech. This + * setting is independent of active turn detection. */ fun vadThreshold(vadThreshold: Double) = vadThreshold(JsonField.of(vadThreshold)) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/live/ServerEvent.kt b/openai-java-core/src/main/kotlin/com/openai/models/live/ServerEvent.kt index f29ac8bdc..6e56b0481 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/live/ServerEvent.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/live/ServerEvent.kt @@ -84,8 +84,9 @@ private constructor( fun sessionUpdated(): Optional = Optional.ofNullable(sessionUpdated) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun sessionResumed(): Optional = Optional.ofNullable(sessionResumed) @@ -339,8 +340,9 @@ private constructor( fun asSessionUpdated(): SessionUpdatedEvent = sessionUpdated.getOrThrow("sessionUpdated") /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun asSessionResumed(): SessionResumed = sessionResumed.getOrThrow("sessionResumed") @@ -1103,9 +1105,9 @@ private constructor( ServerEvent(sessionUpdated = sessionUpdated) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC - * session. Delivered to the sideband and, when permitted by its event settings, the data - * channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ @JvmStatic fun ofSessionResumed(sessionResumed: SessionResumed) = @@ -1350,9 +1352,9 @@ private constructor( unknown(JsonValue.from(sessionUpdated)) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC - * session. Delivered to the sideband and, when permitted by its event settings, the data - * channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun visitSessionResumed(sessionResumed: SessionResumed): T = unknown(JsonValue.from(sessionResumed)) @@ -1793,8 +1795,9 @@ private constructor( } /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ class SessionResumed @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/live/forks/ForkServerEvent.kt b/openai-java-core/src/main/kotlin/com/openai/models/live/forks/ForkServerEvent.kt index 807dcab5d..4da5cd97b 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/live/forks/ForkServerEvent.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/live/forks/ForkServerEvent.kt @@ -105,8 +105,9 @@ private constructor( fun sessionUpdated(): Optional = Optional.ofNullable(sessionUpdated) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun sessionResumed(): Optional = Optional.ofNullable(sessionResumed) @@ -360,8 +361,9 @@ private constructor( fun asSessionUpdated(): SessionUpdatedEvent = sessionUpdated.getOrThrow("sessionUpdated") /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun asSessionResumed(): SessionResumed = sessionResumed.getOrThrow("sessionResumed") @@ -1127,9 +1129,9 @@ private constructor( ForkServerEvent(sessionUpdated = sessionUpdated) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC - * session. Delivered to the sideband and, when permitted by its event settings, the data - * channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ @JvmStatic fun ofSessionResumed(sessionResumed: SessionResumed) = @@ -1376,9 +1378,9 @@ private constructor( unknown(JsonValue.from(sessionUpdated)) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC - * session. Delivered to the sideband and, when permitted by its event settings, the data - * channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun visitSessionResumed(sessionResumed: SessionResumed): T = unknown(JsonValue.from(sessionResumed)) @@ -1822,8 +1824,9 @@ private constructor( } /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ class SessionResumed @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/live/sideband/SidebandServerEvent.kt b/openai-java-core/src/main/kotlin/com/openai/models/live/sideband/SidebandServerEvent.kt index 7c24ee244..8145918a2 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/live/sideband/SidebandServerEvent.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/live/sideband/SidebandServerEvent.kt @@ -103,8 +103,9 @@ private constructor( fun sessionUpdated(): Optional = Optional.ofNullable(sessionUpdated) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun sessionResumed(): Optional = Optional.ofNullable(sessionResumed) @@ -358,8 +359,9 @@ private constructor( fun asSessionUpdated(): SessionUpdatedEvent = sessionUpdated.getOrThrow("sessionUpdated") /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun asSessionResumed(): SessionResumed = sessionResumed.getOrThrow("sessionResumed") @@ -1125,9 +1127,9 @@ private constructor( SidebandServerEvent(sessionUpdated = sessionUpdated) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC - * session. Delivered to the sideband and, when permitted by its event settings, the data - * channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ @JvmStatic fun ofSessionResumed(sessionResumed: SessionResumed) = @@ -1375,9 +1377,9 @@ private constructor( unknown(JsonValue.from(sessionUpdated)) /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC - * session. Delivered to the sideband and, when permitted by its event settings, the data - * channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ fun visitSessionResumed(sessionResumed: SessionResumed): T = unknown(JsonValue.from(sessionResumed)) @@ -1822,8 +1824,9 @@ private constructor( } /** - * Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. - * Delivered to the sideband and, when permitted by its event settings, the data channel. + * Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This + * occurs on the first wake and after each later wake. Delivered to the sideband and, when + * permitted by its event settings, the data channel. */ class SessionResumed @JsonCreator(mode = JsonCreator.Mode.DISABLED) diff --git a/openai-java-core/src/main/kotlin/com/openai/models/responses/CompactedResponse.kt b/openai-java-core/src/main/kotlin/com/openai/models/responses/CompactedResponse.kt index 219d8fb82..9235505d4 100644 --- a/openai-java-core/src/main/kotlin/com/openai/models/responses/CompactedResponse.kt +++ b/openai-java-core/src/main/kotlin/com/openai/models/responses/CompactedResponse.kt @@ -30,6 +30,8 @@ private constructor( private val output: JsonField>, private val usage: JsonField, private val image: JsonField, + private val safetyIdentifier: JsonField, + private val serviceTier: JsonField, private val additionalProperties: MutableMap, ) { @@ -43,7 +45,23 @@ private constructor( output: JsonField> = JsonMissing.of(), @JsonProperty("usage") @ExcludeMissing usage: JsonField = JsonMissing.of(), @JsonProperty("image") @ExcludeMissing image: JsonField = JsonMissing.of(), - ) : this(id, createdAt, object_, output, usage, image, mutableMapOf()) + @JsonProperty("safety_identifier") + @ExcludeMissing + safetyIdentifier: JsonField = JsonMissing.of(), + @JsonProperty("service_tier") + @ExcludeMissing + serviceTier: JsonField = JsonMissing.of(), + ) : this( + id, + createdAt, + object_, + output, + usage, + image, + safetyIdentifier, + serviceTier, + mutableMapOf(), + ) /** * The unique identifier for the compacted response. @@ -97,6 +115,22 @@ private constructor( */ fun image(): Optional = image.getOptional("image") + /** + * A stable identifier that was used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = safetyIdentifier.getOptional("safety_identifier") + + /** + * The service tier used for compaction, when reported. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun serviceTier(): Optional = serviceTier.getOptional("service_tier") + /** * Returns the raw JSON value of [id]. * @@ -134,6 +168,25 @@ private constructor( */ @JsonProperty("image") @ExcludeMissing fun _image(): JsonField = image + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("safety_identifier") + @ExcludeMissing + fun _safetyIdentifier(): JsonField = safetyIdentifier + + /** + * Returns the raw JSON value of [serviceTier]. + * + * Unlike [serviceTier], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("service_tier") + @ExcludeMissing + fun _serviceTier(): JsonField = serviceTier + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -156,6 +209,8 @@ private constructor( "output" to this.output, "usage" to this.usage, "image" to this.image, + "safety_identifier" to this.safetyIdentifier, + "service_tier" to this.serviceTier, ) /** @@ -197,6 +252,8 @@ private constructor( private var output: JsonField>? = null private var usage: JsonField? = null private var image: JsonField = JsonMissing.of() + private var safetyIdentifier: JsonField = JsonMissing.of() + private var serviceTier: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -207,6 +264,8 @@ private constructor( output = compactedResponse.output.map { it.toMutableList() } usage = compactedResponse.usage image = compactedResponse.image + safetyIdentifier = compactedResponse.safetyIdentifier + serviceTier = compactedResponse.serviceTier additionalProperties = compactedResponse.additionalProperties.toMutableMap() } @@ -461,6 +520,37 @@ private constructor( */ fun image(image: JsonField) = apply { this.image = image } + /** A stable identifier that was used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = + safetyIdentifier(JsonField.ofNullable(safetyIdentifier)) + + /** Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + this.safetyIdentifier = safetyIdentifier + } + + /** The service tier used for compaction, when reported. */ + fun serviceTier(serviceTier: String) = serviceTier(JsonField.of(serviceTier)) + + /** + * Sets [Builder.serviceTier] to an arbitrary JSON value. + * + * You should usually call [Builder.serviceTier] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. + */ + fun serviceTier(serviceTier: JsonField) = apply { this.serviceTier = serviceTier } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -503,6 +593,8 @@ private constructor( checkRequired("output", output).map { it.toImmutable() }, checkRequired("usage", usage), image, + safetyIdentifier, + serviceTier, additionalProperties.toMutableMap(), ) } @@ -532,6 +624,8 @@ private constructor( output().forEach { it.validate() } usage().validate() image().ifPresent { it.validate() } + safetyIdentifier() + serviceTier() validated = true } @@ -555,7 +649,9 @@ private constructor( object_.let { if (it == JsonValue.from("response.compaction")) 1 else 0 } + (output.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) + (usage.asKnown().getOrNull()?.validity() ?: 0) + - (image.asKnown().getOrNull()?.validity() ?: 0) + (image.asKnown().getOrNull()?.validity() ?: 0) + + (if (safetyIdentifier.asKnown().isPresent) 1 else 0) + + (if (serviceTier.asKnown().isPresent) 1 else 0) class Image @JsonCreator(mode = JsonCreator.Mode.DISABLED) @@ -913,15 +1009,27 @@ private constructor( output == other.output && usage == other.usage && image == other.image && + safetyIdentifier == other.safetyIdentifier && + serviceTier == other.serviceTier && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(id, createdAt, object_, output, usage, image, additionalProperties) + Objects.hash( + id, + createdAt, + object_, + output, + usage, + image, + safetyIdentifier, + serviceTier, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "CompactedResponse{id=$id, createdAt=$createdAt, object_=$object_, output=$output, usage=$usage, image=$image, additionalProperties=$additionalProperties}" + "CompactedResponse{id=$id, createdAt=$createdAt, object_=$object_, output=$output, usage=$usage, image=$image, safetyIdentifier=$safetyIdentifier, serviceTier=$serviceTier, additionalProperties=$additionalProperties}" } 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 c9fb8f0ee..39e422f50 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 @@ -285,7 +285,7 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. @@ -1280,10 +1280,10 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: ResponsesModel) = model(JsonField.of(model)) 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 ceeb6ce96..b24c8e3eb 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 @@ -50,7 +50,7 @@ private constructor( ) : Params { /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. @@ -130,6 +130,14 @@ private constructor( @Deprecated("deprecated") fun promptCacheRetention(): Optional = body.promptCacheRetention() + /** + * A stable identifier used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = body.safetyIdentifier() + /** * Specifies the processing type used for serving the request. - If set to 'auto', then the * request will be processed with the service tier configured in the Project settings. Unless @@ -211,6 +219,14 @@ private constructor( @Deprecated("deprecated") fun _promptCacheRetention(): JsonField = body._promptCacheRetention() + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + fun _safetyIdentifier(): JsonField = body._safetyIdentifier() + /** * Returns the raw JSON value of [serviceTier]. * @@ -270,10 +286,10 @@ private constructor( fun body(body: Body) = apply { this.body = body.toBuilder() } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: Model?) = apply { body.model(model) } @@ -457,6 +473,26 @@ private constructor( body.promptCacheRetention(promptCacheRetention) } + /** A stable identifier used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = apply { + body.safetyIdentifier(safetyIdentifier) + } + + /** Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + body.safetyIdentifier(safetyIdentifier) + } + /** * Specifies the processing type used for serving the request. - If set to 'auto', then the * request will be processed with the service tier configured in the Project settings. @@ -644,6 +680,7 @@ private constructor( private val promptCacheKey: JsonField, private val promptCacheOptions: JsonField, private val promptCacheRetention: JsonField, + private val safetyIdentifier: JsonField, private val serviceTier: JsonField, private val additionalProperties: MutableMap, ) { @@ -668,6 +705,9 @@ private constructor( @JsonProperty("prompt_cache_retention") @ExcludeMissing promptCacheRetention: JsonField = JsonMissing.of(), + @JsonProperty("safety_identifier") + @ExcludeMissing + safetyIdentifier: JsonField = JsonMissing.of(), @JsonProperty("service_tier") @ExcludeMissing serviceTier: JsonField = JsonMissing.of(), @@ -680,15 +720,16 @@ private constructor( promptCacheKey, promptCacheOptions, promptCacheRetention, + safetyIdentifier, serviceTier, mutableMapOf(), ) /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -770,6 +811,14 @@ private constructor( fun promptCacheRetention(): Optional = promptCacheRetention.getOptional("prompt_cache_retention") + /** + * A stable identifier used for safety monitoring and abuse detection. + * + * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun safetyIdentifier(): Optional = safetyIdentifier.getOptional("safety_identifier") + /** * Specifies the processing type used for serving the request. - If set to 'auto', then the * request will be processed with the service tier configured in the Project settings. @@ -865,6 +914,16 @@ private constructor( @ExcludeMissing fun _promptCacheRetention(): JsonField = promptCacheRetention + /** + * Returns the raw JSON value of [safetyIdentifier]. + * + * Unlike [safetyIdentifier], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("safety_identifier") + @ExcludeMissing + fun _safetyIdentifier(): JsonField = safetyIdentifier + /** * Returns the raw JSON value of [serviceTier]. * @@ -898,6 +957,7 @@ private constructor( "prompt_cache_key" to this.promptCacheKey, "prompt_cache_options" to this.promptCacheOptions, "prompt_cache_retention" to this.promptCacheRetention, + "safety_identifier" to this.safetyIdentifier, "service_tier" to this.serviceTier, ) @@ -939,6 +999,7 @@ private constructor( private var promptCacheKey: JsonField = JsonMissing.of() private var promptCacheOptions: JsonField = JsonMissing.of() private var promptCacheRetention: JsonField = JsonMissing.of() + private var safetyIdentifier: JsonField = JsonMissing.of() private var serviceTier: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -952,12 +1013,13 @@ private constructor( promptCacheKey = body.promptCacheKey promptCacheOptions = body.promptCacheOptions promptCacheRetention = body.promptCacheRetention + safetyIdentifier = body.safetyIdentifier serviceTier = body.serviceTier additionalProperties = body.additionalProperties.toMutableMap() } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to * browse and compare available models. @@ -1150,6 +1212,27 @@ private constructor( this.promptCacheRetention = promptCacheRetention } + /** A stable identifier used for safety monitoring and abuse detection. */ + fun safetyIdentifier(safetyIdentifier: String?) = + safetyIdentifier(JsonField.ofNullable(safetyIdentifier)) + + /** + * Alias for calling [Builder.safetyIdentifier] with `safetyIdentifier.orElse(null)`. + */ + fun safetyIdentifier(safetyIdentifier: Optional) = + safetyIdentifier(safetyIdentifier.getOrNull()) + + /** + * Sets [Builder.safetyIdentifier] to an arbitrary JSON value. + * + * You should usually call [Builder.safetyIdentifier] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun safetyIdentifier(safetyIdentifier: JsonField) = apply { + this.safetyIdentifier = safetyIdentifier + } + /** * Specifies the processing type used for serving the request. - If set to 'auto', then * the request will be processed with the service tier configured in the Project @@ -1226,6 +1309,7 @@ private constructor( promptCacheKey, promptCacheOptions, promptCacheRetention, + safetyIdentifier, serviceTier, additionalProperties.toMutableMap(), ) @@ -1255,6 +1339,7 @@ private constructor( promptCacheKey() promptCacheOptions().ifPresent { it.validate() } promptCacheRetention().ifPresent { it.validate() } + safetyIdentifier() serviceTier().ifPresent { it.validate() } validated = true } @@ -1283,6 +1368,7 @@ private constructor( (if (promptCacheKey.asKnown().isPresent) 1 else 0) + (promptCacheOptions.asKnown().getOrNull()?.validity() ?: 0) + (promptCacheRetention.asKnown().getOrNull()?.validity() ?: 0) + + (if (safetyIdentifier.asKnown().isPresent) 1 else 0) + (serviceTier.asKnown().getOrNull()?.validity() ?: 0) override fun equals(other: Any?): Boolean { @@ -1299,6 +1385,7 @@ private constructor( promptCacheKey == other.promptCacheKey && promptCacheOptions == other.promptCacheOptions && promptCacheRetention == other.promptCacheRetention && + safetyIdentifier == other.safetyIdentifier && serviceTier == other.serviceTier && additionalProperties == other.additionalProperties } @@ -1313,6 +1400,7 @@ private constructor( promptCacheKey, promptCacheOptions, promptCacheRetention, + safetyIdentifier, serviceTier, additionalProperties, ) @@ -1321,11 +1409,11 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Body{model=$model, image=$image, input=$input, instructions=$instructions, previousResponseId=$previousResponseId, promptCacheKey=$promptCacheKey, promptCacheOptions=$promptCacheOptions, promptCacheRetention=$promptCacheRetention, serviceTier=$serviceTier, additionalProperties=$additionalProperties}" + "Body{model=$model, image=$image, input=$input, instructions=$instructions, previousResponseId=$previousResponseId, promptCacheKey=$promptCacheKey, promptCacheOptions=$promptCacheOptions, promptCacheRetention=$promptCacheRetention, safetyIdentifier=$safetyIdentifier, serviceTier=$serviceTier, additionalProperties=$additionalProperties}" } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/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 96f75709d..476bf754a 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 @@ -191,7 +191,7 @@ private constructor( fun metadata(): Optional = body.metadata() /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range of * models with different capabilities, performance characteristics, and price points. Refer to * the [model guide](https://developers.openai.com/api/docs/models) to browse and compare * available models. @@ -1037,10 +1037,10 @@ private constructor( fun metadata(metadata: JsonField) = apply { body.metadata(metadata) } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. */ fun model(model: ResponsesModel) = apply { body.model(model) } @@ -2210,10 +2210,10 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -3237,7 +3237,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to * browse and compare available models. 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 5db8fcea6..c6e8d2b2d 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 @@ -749,10 +749,10 @@ private constructor( fun metadata(): Optional = metadata.getOptional("metadata") /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of - * models with different capabilities, performance characteristics, and price points. Refer - * to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare - * available models. + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide range + * of models with different capabilities, performance characteristics, and price points. + * Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and + * compare available models. * * @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -1864,7 +1864,7 @@ private constructor( fun metadata(metadata: JsonField) = apply { this.metadata = metadata } /** - * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide + * Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a wide * range of models with different capabilities, performance characteristics, and price * points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to * browse and compare available models. diff --git a/openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/sessions/TraceServiceAsync.kt b/openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/sessions/TraceServiceAsync.kt index a26873171..9b4438914 100644 --- a/openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/sessions/TraceServiceAsync.kt +++ b/openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/sessions/TraceServiceAsync.kt @@ -27,8 +27,10 @@ interface TraceServiceAsync { /** * Lists published root-turn traces as OTLP JSON, ordered by turn creation time and ID. * Unpublished traces are skipped. Each page returns data available when read; it does not wait - * for late traces. Trace reads and the JSON response are limited to 16 MiB per request. If the - * limit is exceeded, request fewer traces. + * for late traces. Pages may contain fewer traces than requested to fit the 16 MiB response + * limit. When `has_more` is true, pass `last_id` as `after` to continue. If the first trace + * exceeds 16 MiB before conversion or cannot fit on a page by itself, the API returns a + * `trace_too_large` error. */ fun list(sessionId: String): CompletableFuture = list(sessionId, TraceListParams.none()) diff --git a/openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/sessions/TraceService.kt b/openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/sessions/TraceService.kt index 1f1bc3344..0de3e7b56 100644 --- a/openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/sessions/TraceService.kt +++ b/openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/sessions/TraceService.kt @@ -27,8 +27,10 @@ interface TraceService { /** * Lists published root-turn traces as OTLP JSON, ordered by turn creation time and ID. * Unpublished traces are skipped. Each page returns data available when read; it does not wait - * for late traces. Trace reads and the JSON response are limited to 16 MiB per request. If the - * limit is exceeded, request fewer traces. + * for late traces. Pages may contain fewer traces than requested to fit the 16 MiB response + * limit. When `has_more` is true, pass `last_id` as `after` to continue. If the first trace + * exceeds 16 MiB before conversion or cannot fit on a page by itself, the API returns a + * `trace_too_large` error. */ fun list(sessionId: String): TraceListPage = list(sessionId, TraceListParams.none()) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimitTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimitTest.kt index 3ac8ddad7..2c8cfe2b0 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimitTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimitTest.kt @@ -21,6 +21,12 @@ internal class ProjectSpendLimitTest { ) .interval(ProjectSpendLimit.Interval.MONTH) .thresholdAmount(0L) + .notificationChannel( + ProjectSpendLimit.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() assertThat(projectSpendLimit.currency()).isEqualTo(ProjectSpendLimit.Currency.USD) @@ -32,6 +38,13 @@ internal class ProjectSpendLimitTest { ) assertThat(projectSpendLimit.interval()).isEqualTo(ProjectSpendLimit.Interval.MONTH) assertThat(projectSpendLimit.thresholdAmount()).isEqualTo(0L) + assertThat(projectSpendLimit.notificationChannel()) + .contains( + ProjectSpendLimit.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) val jsonMapper = jsonMapper() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParamsTest.kt index c5fceaf08..0bf54373e 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParamsTest.kt @@ -14,6 +14,12 @@ internal class SpendLimitUpdateParamsTest { .currency(SpendLimitUpdateParams.Currency.USD) .interval(SpendLimitUpdateParams.Interval.MONTH) .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() } @@ -34,6 +40,36 @@ internal class SpendLimitUpdateParamsTest { @Test fun body() { + val params = + SpendLimitUpdateParams.builder() + .projectId("proj_123") + .currency(SpendLimitUpdateParams.Currency.USD) + .interval(SpendLimitUpdateParams.Interval.MONTH) + .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) + .build() + + val body = params._body() + + assertThat(body.currency()).isEqualTo(SpendLimitUpdateParams.Currency.USD) + assertThat(body.interval()).isEqualTo(SpendLimitUpdateParams.Interval.MONTH) + assertThat(body.thresholdAmount()).isEqualTo(1L) + assertThat(body.notificationChannel()) + .contains( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) + } + + @Test + fun bodyWithoutOptionalFields() { val params = SpendLimitUpdateParams.builder() .projectId("proj_123") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimitTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimitTest.kt index 920096d8c..55cb94fe0 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimitTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimitTest.kt @@ -21,6 +21,12 @@ internal class OrganizationSpendLimitTest { ) .interval(OrganizationSpendLimit.Interval.MONTH) .thresholdAmount(0L) + .notificationChannel( + OrganizationSpendLimit.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() assertThat(organizationSpendLimit.currency()).isEqualTo(OrganizationSpendLimit.Currency.USD) @@ -33,6 +39,13 @@ internal class OrganizationSpendLimitTest { assertThat(organizationSpendLimit.interval()) .isEqualTo(OrganizationSpendLimit.Interval.MONTH) assertThat(organizationSpendLimit.thresholdAmount()).isEqualTo(0L) + assertThat(organizationSpendLimit.notificationChannel()) + .contains( + OrganizationSpendLimit.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) val jsonMapper = jsonMapper() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParamsTest.kt index d0d0ce03d..17b069d57 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParamsTest.kt @@ -13,11 +13,46 @@ internal class SpendLimitUpdateParamsTest { .currency(SpendLimitUpdateParams.Currency.USD) .interval(SpendLimitUpdateParams.Interval.MONTH) .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() } @Test fun body() { + val params = + SpendLimitUpdateParams.builder() + .currency(SpendLimitUpdateParams.Currency.USD) + .interval(SpendLimitUpdateParams.Interval.MONTH) + .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) + .build() + + val body = params._body() + + assertThat(body.currency()).isEqualTo(SpendLimitUpdateParams.Currency.USD) + assertThat(body.interval()).isEqualTo(SpendLimitUpdateParams.Interval.MONTH) + assertThat(body.thresholdAmount()).isEqualTo(1L) + assertThat(body.notificationChannel()) + .contains( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) + } + + @Test + fun bodyWithoutOptionalFields() { val params = SpendLimitUpdateParams.builder() .currency(SpendLimitUpdateParams.Currency.USD) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParamsTest.kt index 02f28d414..da9022e6a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParamsTest.kt @@ -15,7 +15,7 @@ internal class TranscriptionCreateParamsTest { fun create() { TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .chunkingStrategyAuto() .addInclude(TranscriptionInclude.LOGPROBS) .addKeyword("string") @@ -35,7 +35,7 @@ internal class TranscriptionCreateParamsTest { val params = TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .chunkingStrategyAuto() .addInclude(TranscriptionInclude.LOGPROBS) .addKeyword("string") @@ -62,7 +62,7 @@ internal class TranscriptionCreateParamsTest { .isEqualTo( mapOf( "file" to MultipartField.of("Example data".byteInputStream()), - "model" to MultipartField.of(AudioModel.GPT_4O_TRANSCRIBE), + "model" to MultipartField.of(AudioModel.GPT_TRANSCRIBE), "chunking_strategy" to MultipartField.of(TranscriptionCreateParams.ChunkingStrategy.ofAuto()), "include" to MultipartField.of(listOf(TranscriptionInclude.LOGPROBS)), @@ -90,7 +90,7 @@ internal class TranscriptionCreateParamsTest { val params = TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .build() val body = params._body() @@ -106,7 +106,7 @@ internal class TranscriptionCreateParamsTest { .isEqualTo( mapOf( "file" to MultipartField.of("Example data".byteInputStream()), - "model" to MultipartField.of(AudioModel.GPT_4O_TRANSCRIBE), + "model" to MultipartField.of(AudioModel.GPT_TRANSCRIBE), ) .mapValues { (_, field) -> field.map { (it as? ByteArray)?.inputStream() ?: it } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialUpdateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialUpdateParamsTest.kt index 1f7194621..f682be64e 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialUpdateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialUpdateParamsTest.kt @@ -2,6 +2,7 @@ package com.openai.models.beta.agents.vaults.credentials +import com.openai.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test @@ -29,7 +30,11 @@ internal class CredentialUpdateParamsTest { ) .build() ) - .metadata(CredentialUpdateParams.Metadata.builder().build()) + .metadata( + CredentialUpdateParams.Metadata.builder() + .putAdditionalProperty("environment", JsonValue.from("staging")) + .build() + ) .build() } @@ -70,7 +75,11 @@ internal class CredentialUpdateParamsTest { ) .build() ) - .metadata(CredentialUpdateParams.Metadata.builder().build()) + .metadata( + CredentialUpdateParams.Metadata.builder() + .putAdditionalProperty("environment", JsonValue.from("staging")) + .build() + ) .build() val body = params._body() @@ -95,7 +104,12 @@ internal class CredentialUpdateParamsTest { .build() ) ) - assertThat(body.metadata()).contains(CredentialUpdateParams.Metadata.builder().build()) + assertThat(body.metadata()) + .contains( + CredentialUpdateParams.Metadata.builder() + .putAdditionalProperty("environment", JsonValue.from("staging")) + .build() + ) } @Test 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 72252d00c..1480c5680 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 @@ -83,6 +83,8 @@ internal class BetaCompactedResponseTest { .contextCompression(BetaCompactedResponse.Image.ContextCompression.ENABLED) .build() ) + .safetyIdentifier("safety_identifier") + .serviceTier("service_tier") .build() assertThat(betaCompactedResponse.id()).isEqualTo("id") @@ -158,6 +160,8 @@ internal class BetaCompactedResponseTest { .contextCompression(BetaCompactedResponse.Image.ContextCompression.ENABLED) .build() ) + assertThat(betaCompactedResponse.safetyIdentifier()).contains("safety_identifier") + assertThat(betaCompactedResponse.serviceTier()).contains("service_tier") val jsonMapper = jsonMapper() 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 aee004789..4a3a33ea8 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 @@ -57,7 +57,7 @@ internal class BetaResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -369,7 +369,7 @@ internal class BetaResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 fa0027811..7b233c9de 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 @@ -57,7 +57,7 @@ internal class BetaResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -369,7 +369,7 @@ internal class BetaResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 edb0a16a9..65a37736d 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 @@ -57,7 +57,7 @@ internal class BetaResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -369,7 +369,7 @@ internal class BetaResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 ac4300c41..7da2d696e 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 @@ -57,7 +57,7 @@ internal class BetaResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -369,7 +369,7 @@ internal class BetaResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 0946e4e08..9eaa36ce4 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 @@ -57,7 +57,7 @@ internal class BetaResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -369,7 +369,7 @@ internal class BetaResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 129e5c2d6..18843c956 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 @@ -57,7 +57,7 @@ internal class BetaResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -369,7 +369,7 @@ internal class BetaResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 594859029..19a9f6880 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 @@ -1098,7 +1098,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1478,7 +1478,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2131,7 +2131,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2511,7 +2511,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4051,7 +4051,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4432,7 +4432,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4769,7 +4769,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5149,7 +5149,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5484,7 +5484,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5865,7 +5865,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -9415,7 +9415,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -9795,7 +9795,7 @@ internal class BetaResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") 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 c5ef447b3..1844c17a6 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 @@ -56,7 +56,7 @@ internal class BetaResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -350,7 +350,7 @@ internal class BetaResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(betaResponse.model()).isEqualTo(BetaResponse.Model.GPT_6_ASTRA) + assertThat(betaResponse.model()).isEqualTo(BetaResponse.Model.GPT_6_2_ASTRA) assertThat(betaResponse.output()) .containsExactly( BetaResponseOutputItem.ofMessage( 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 37c0a91c1..7e884f827 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 @@ -61,7 +61,7 @@ internal class BetaResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_6_ASTRA) + .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_6_2_ASTRA) .moderation( BetaResponsesClientEvent.ResponseCreate.Moderation.builder() .model("model") @@ -241,7 +241,7 @@ internal class BetaResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_6_ASTRA) + .model(BetaResponsesClientEvent.ResponseCreate.Model.GPT_6_2_ASTRA) .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 c18110f88..8b8068a35 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 @@ -1204,7 +1204,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -1590,7 +1590,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2253,7 +2253,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -2638,7 +2638,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4131,7 +4131,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4517,7 +4517,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -4854,7 +4854,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5239,7 +5239,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5574,7 +5574,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -5960,7 +5960,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -9656,7 +9656,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") @@ -10041,7 +10041,7 @@ internal class BetaResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(BetaResponse.Model.GPT_6_ASTRA) + .model(BetaResponse.Model.GPT_6_2_ASTRA) .addOutput( BetaResponseOutputMessage.builder() .id("id") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCompactParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCompactParamsTest.kt index c81c38458..fdd70a86c 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCompactParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCompactParamsTest.kt @@ -29,6 +29,7 @@ internal class ResponseCompactParamsTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() } @@ -55,6 +56,7 @@ internal class ResponseCompactParamsTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() @@ -96,6 +98,7 @@ internal class ResponseCompactParamsTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() @@ -121,6 +124,7 @@ internal class ResponseCompactParamsTest { ) assertThat(body.promptCacheRetention()) .contains(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + assertThat(body.safetyIdentifier()).contains("safety_identifier") assertThat(body.serviceTier()).contains(ResponseCompactParams.ServiceTier.AUTO) } 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 b68b01f80..f172c6b69 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 @@ -41,7 +41,7 @@ internal class ResponseCreateParamsTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -50,7 +50,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -181,7 +181,7 @@ internal class ResponseCreateParamsTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -190,7 +190,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -339,7 +339,7 @@ internal class ResponseCreateParamsTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -348,7 +348,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -484,7 +484,12 @@ internal class ResponseCreateParamsTest { ) assertThat(body.include().getOrNull()) .containsExactly(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - assertThat(body.input()).contains(ResponseCreateParams.Input.ofText("string")) + assertThat(body.input()) + .contains( + ResponseCreateParams.Input.ofText( + "Write a one-sentence bedtime story about a unicorn." + ) + ) assertThat(body.instructions()).contains("instructions") assertThat(body.maxOutputTokens()).contains(16L) assertThat(body.maxToolCalls()).contains(0L) @@ -494,7 +499,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(body.model()).contains(ResponseCreateParams.Model.GPT_6_ASTRA) + assertThat(body.model()).contains(ResponseCreateParams.Model.GPT_6_2_ASTRA) 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 d9ef84d9e..8c7cafb58 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 @@ -92,7 +92,7 @@ internal class ChatCompletionChunkTest { .build() ) .created(1694268190L) - .model("gpt-6-astra") + .model("gpt-6.2-astra") .moderation( ChatCompletionChunk.Moderation.builder() .input( @@ -280,7 +280,7 @@ internal class ChatCompletionChunkTest { .build() ) assertThat(chatCompletionChunk.created()).isEqualTo(1694268190L) - assertThat(chatCompletionChunk.model()).isEqualTo("gpt-6-astra") + assertThat(chatCompletionChunk.model()).isEqualTo("gpt-6.2-astra") assertThat(chatCompletionChunk.moderation()) .contains( ChatCompletionChunk.Moderation.builder() 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 b9b6b5f08..c780b112b 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 @@ -18,9 +18,12 @@ internal class ChatCompletionCreateParamsTest { fun create() { ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder().content("string").name("name").build() + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") + .name("name") + .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) @@ -150,12 +153,12 @@ internal class ChatCompletionCreateParamsTest { val params = ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) @@ -284,14 +287,14 @@ internal class ChatCompletionCreateParamsTest { assertThat(body.messages()) .containsExactly( - ChatCompletionMessageParam.ofDeveloper( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionMessageParam.ofUser( + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) ) - assertThat(body.model()).isEqualTo(ChatModel.GPT_6_ASTRA) + assertThat(body.model()).isEqualTo(ChatModel.GPT_6_2_ASTRA) assertThat(body.audio()) .contains( ChatCompletionAudioParam.builder() @@ -450,18 +453,24 @@ internal class ChatCompletionCreateParamsTest { fun bodyWithoutOptionalFields() { val params = ChatCompletionCreateParams.builder() - .addDeveloperMessage("string") - .model(ChatModel.GPT_6_ASTRA) + .addMessage( + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") + .build() + ) + .model(ChatModel.GPT_6_2_ASTRA) .build() val body = params._body() assertThat(body.messages()) .containsExactly( - ChatCompletionMessageParam.ofDeveloper( - ChatCompletionDeveloperMessageParam.builder().content("string").build() + ChatCompletionMessageParam.ofUser( + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") + .build() ) ) - assertThat(body.model()).isEqualTo(ChatModel.GPT_6_ASTRA) + assertThat(body.model()).isEqualTo(ChatModel.GPT_6_2_ASTRA) } } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/conversations/ConversationCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/conversations/ConversationCreateParamsTest.kt index d4ff2e7e7..f2c42746a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/conversations/ConversationCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/conversations/ConversationCreateParamsTest.kt @@ -27,6 +27,7 @@ internal class ConversationCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) + .safetyIdentifier("safety_identifier") .build() } @@ -47,6 +48,7 @@ internal class ConversationCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) + .safetyIdentifier("safety_identifier") .build() val body = params._body() @@ -68,6 +70,7 @@ internal class ConversationCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) + assertThat(body.safetyIdentifier()).contains("safety_identifier") } @Test diff --git a/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionCreateParamsTest.kt index 9ab4aea66..b5b5cda27 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionCreateParamsTest.kt @@ -10,7 +10,7 @@ internal class PermissionCreateParamsTest { @Test fun create() { PermissionCreateParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .addProjectId("string") .build() } @@ -19,11 +19,12 @@ internal class PermissionCreateParamsTest { fun pathParams() { val params = PermissionCreateParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .addProjectId("string") .build() - assertThat(params._pathParam(0)).isEqualTo("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + assertThat(params._pathParam(0)) + .isEqualTo("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") // out-of-bound path param assertThat(params._pathParam(1)).isEqualTo("") } @@ -32,7 +33,7 @@ internal class PermissionCreateParamsTest { fun body() { val params = PermissionCreateParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .addProjectId("string") .build() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionDeleteParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionDeleteParamsTest.kt index 4aeac586f..5ac5202af 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionDeleteParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionDeleteParamsTest.kt @@ -10,7 +10,7 @@ internal class PermissionDeleteParamsTest { @Test fun create() { PermissionDeleteParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .permissionId("cp_zc4Q7MP6XxulcVzj4MZdwsAB") .build() } @@ -19,11 +19,12 @@ internal class PermissionDeleteParamsTest { fun pathParams() { val params = PermissionDeleteParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .permissionId("cp_zc4Q7MP6XxulcVzj4MZdwsAB") .build() - assertThat(params._pathParam(0)).isEqualTo("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + assertThat(params._pathParam(0)) + .isEqualTo("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") assertThat(params._pathParam(1)).isEqualTo("cp_zc4Q7MP6XxulcVzj4MZdwsAB") // out-of-bound path param assertThat(params._pathParam(2)).isEqualTo("") diff --git a/openai-java-core/src/test/kotlin/com/openai/models/finetuning/jobs/JobCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/finetuning/jobs/JobCreateParamsTest.kt index 58ffb9969..36f5feb62 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/finetuning/jobs/JobCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/finetuning/jobs/JobCreateParamsTest.kt @@ -19,7 +19,7 @@ internal class JobCreateParamsTest { @Test fun create() { JobCreateParams.builder() - .model(JobCreateParams.Model.GPT_4O_MINI) + .model(JobCreateParams.Model.BABBAGE_002) .trainingFile("file-abc123") .hyperparameters( JobCreateParams.Hyperparameters.builder() @@ -108,7 +108,7 @@ internal class JobCreateParamsTest { fun body() { val params = JobCreateParams.builder() - .model(JobCreateParams.Model.GPT_4O_MINI) + .model(JobCreateParams.Model.BABBAGE_002) .trainingFile("file-abc123") .hyperparameters( JobCreateParams.Hyperparameters.builder() @@ -194,7 +194,7 @@ internal class JobCreateParamsTest { val body = params._body() - assertThat(body.model()).isEqualTo(JobCreateParams.Model.GPT_4O_MINI) + assertThat(body.model()).isEqualTo(JobCreateParams.Model.BABBAGE_002) assertThat(body.trainingFile()).isEqualTo("file-abc123") assertThat(body.hyperparameters()) .contains( @@ -286,13 +286,13 @@ internal class JobCreateParamsTest { fun bodyWithoutOptionalFields() { val params = JobCreateParams.builder() - .model(JobCreateParams.Model.GPT_4O_MINI) + .model(JobCreateParams.Model.BABBAGE_002) .trainingFile("file-abc123") .build() val body = params._body() - assertThat(body.model()).isEqualTo(JobCreateParams.Model.GPT_4O_MINI) + assertThat(body.model()).isEqualTo(JobCreateParams.Model.BABBAGE_002) assertThat(body.trainingFile()).isEqualTo("file-abc123") } } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/images/ImageEditParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/images/ImageEditParamsTest.kt index 36303329b..bedab2df0 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/images/ImageEditParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/images/ImageEditParamsTest.kt @@ -21,7 +21,7 @@ internal class ImageEditParamsTest { .inputFidelity(ImageEditParams.InputFidelity.HIGH) .markup("Example data".byteInputStream()) .mask("Example data".byteInputStream()) - .model(ImageModel.GPT_IMAGE_1_5) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .n(1L) .outputCompression(100L) .outputFormat(ImageEditParams.OutputFormat.PNG) @@ -57,7 +57,7 @@ internal class ImageEditParamsTest { .inputFidelity(ImageEditParams.InputFidelity.HIGH) .markup("Example data".byteInputStream()) .mask("Example data".byteInputStream()) - .model(ImageModel.GPT_IMAGE_1_5) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .n(1L) .outputCompression(100L) .outputFormat(ImageEditParams.OutputFormat.PNG) @@ -108,7 +108,7 @@ internal class ImageEditParamsTest { "input_fidelity" to MultipartField.of(ImageEditParams.InputFidelity.HIGH), "markup" to MultipartField.of("Example data".byteInputStream()), "mask" to MultipartField.of("Example data".byteInputStream()), - "model" to MultipartField.of(ImageModel.GPT_IMAGE_1_5), + "model" to MultipartField.of(ImageModel.GPT_IMAGE_2_6_FLARE), "n" to MultipartField.of(1L), "output_compression" to MultipartField.of(100L), "output_format" to MultipartField.of(ImageEditParams.OutputFormat.PNG), diff --git a/openai-java-core/src/test/kotlin/com/openai/models/images/ImageGenerateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/images/ImageGenerateParamsTest.kt index fb764df55..be7545777 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/images/ImageGenerateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/images/ImageGenerateParamsTest.kt @@ -15,7 +15,7 @@ internal class ImageGenerateParamsTest { .complexity(ImageGenerateParams.Complexity.LOW) .frameCount(2L) .frameDurationMs(20L) - .model(ImageModel.GPT_IMAGE_2_5_FLARE) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .moderation(ImageGenerateParams.Moderation.LOW) .n(1L) .outputCompression(100L) @@ -49,7 +49,7 @@ internal class ImageGenerateParamsTest { .complexity(ImageGenerateParams.Complexity.LOW) .frameCount(2L) .frameDurationMs(20L) - .model(ImageModel.GPT_IMAGE_2_5_FLARE) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .moderation(ImageGenerateParams.Moderation.LOW) .n(1L) .outputCompression(100L) @@ -80,7 +80,7 @@ internal class ImageGenerateParamsTest { assertThat(body.complexity()).contains(ImageGenerateParams.Complexity.LOW) assertThat(body.frameCount()).contains(2L) assertThat(body.frameDurationMs()).contains(20L) - assertThat(body.model()).contains(ImageModel.GPT_IMAGE_2_5_FLARE) + assertThat(body.model()).contains(ImageModel.GPT_IMAGE_2_6_FLARE) assertThat(body.moderation()).contains(ImageGenerateParams.Moderation.LOW) assertThat(body.n()).contains(1L) assertThat(body.outputCompression()).contains(100L) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/live/ServerEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/live/ServerEventTest.kt index 9c4dbe30a..ce14c9d20 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/live/ServerEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/live/ServerEventTest.kt @@ -214,7 +214,7 @@ internal class ServerEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) @@ -345,7 +345,7 @@ internal class ServerEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/live/SessionUpdatedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/live/SessionUpdatedEventTest.kt index f8672968c..f237217a5 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/live/SessionUpdatedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/live/SessionUpdatedEventTest.kt @@ -43,7 +43,7 @@ internal class SessionUpdatedEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) @@ -135,7 +135,7 @@ internal class SessionUpdatedEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/live/forks/ForkServerEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/live/forks/ForkServerEventTest.kt index 232bf9c7c..d0d0bf7d3 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/live/forks/ForkServerEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/live/forks/ForkServerEventTest.kt @@ -245,7 +245,7 @@ internal class ForkServerEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) @@ -376,7 +376,7 @@ internal class ForkServerEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/live/sideband/SidebandServerEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/live/sideband/SidebandServerEventTest.kt index 27ca70060..98a3dc1dc 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/live/sideband/SidebandServerEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/live/sideband/SidebandServerEventTest.kt @@ -245,7 +245,7 @@ internal class SidebandServerEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) @@ -376,7 +376,7 @@ internal class SidebandServerEventTest { SessionResource.Delegation.Responses.builder() .responses( ResponsesDelegationConfig.builder() - .model("gpt-6-astra") + .model("gpt-6.2-astra") .instructions( "Check restaurant availability. Ask before confirming a booking." ) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/models/ModelDeleteParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/models/ModelDeleteParamsTest.kt index 6188c6985..6549048b8 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/models/ModelDeleteParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/models/ModelDeleteParamsTest.kt @@ -9,15 +9,20 @@ internal class ModelDeleteParamsTest { @Test fun create() { - ModelDeleteParams.builder().model("ft:gpt-4o-mini:acemeco:suffix:abc123").build() + ModelDeleteParams.builder() + .model("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123") + .build() } @Test fun pathParams() { val params = - ModelDeleteParams.builder().model("ft:gpt-4o-mini:acemeco:suffix:abc123").build() + ModelDeleteParams.builder() + .model("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123") + .build() - assertThat(params._pathParam(0)).isEqualTo("ft:gpt-4o-mini:acemeco:suffix:abc123") + assertThat(params._pathParam(0)) + .isEqualTo("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123") // out-of-bound path param assertThat(params._pathParam(1)).isEqualTo("") } 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 1b5983dc1..2dd27d9bb 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-6-astra").build() + ModelRetrieveParams.builder().model("gpt-6.2-astra").build() } @Test fun pathParams() { - val params = ModelRetrieveParams.builder().model("gpt-6-astra").build() + val params = ModelRetrieveParams.builder().model("gpt-6.2-astra").build() - assertThat(params._pathParam(0)).isEqualTo("gpt-6-astra") + assertThat(params._pathParam(0)).isEqualTo("gpt-6.2-astra") // out-of-bound path param assertThat(params._pathParam(1)).isEqualTo("") } diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeClientEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeClientEventTest.kt index 2df58645f..5474fe574 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeClientEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeClientEventTest.kt @@ -662,7 +662,7 @@ internal class RealtimeClientEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -784,7 +784,7 @@ internal class RealtimeClientEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeServerEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeServerEventTest.kt index b4bc8fa26..c708bb86a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeServerEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeServerEventTest.kt @@ -3098,7 +3098,7 @@ internal class RealtimeServerEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -3255,7 +3255,7 @@ internal class RealtimeServerEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -3364,7 +3364,7 @@ internal class RealtimeServerEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -3521,7 +3521,7 @@ internal class RealtimeServerEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeSessionCreateRequestTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeSessionCreateRequestTest.kt index 0e12bd470..9e8ddef81 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeSessionCreateRequestTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeSessionCreateRequestTest.kt @@ -74,7 +74,7 @@ internal class RealtimeSessionCreateRequestTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -165,7 +165,7 @@ internal class RealtimeSessionCreateRequestTest { assertThat(realtimeSessionCreateRequest.maxOutputTokens()) .contains(RealtimeSessionCreateRequest.MaxOutputTokens.ofInf()) assertThat(realtimeSessionCreateRequest.model()) - .contains(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .contains(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) assertThat(realtimeSessionCreateRequest.outputModalities().getOrNull()) .containsExactly(RealtimeSessionCreateRequest.OutputModality.TEXT) assertThat(realtimeSessionCreateRequest.parallelToolCalls()).contains(true) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionCreatedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionCreatedEventTest.kt index 4031d4ae2..9ba26964b 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionCreatedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionCreatedEventTest.kt @@ -77,7 +77,7 @@ internal class SessionCreatedEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -174,7 +174,7 @@ internal class SessionCreatedEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdateEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdateEventTest.kt index 98470dd1c..a5f191cb0 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdateEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdateEventTest.kt @@ -76,7 +76,7 @@ internal class SessionUpdateEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -173,7 +173,7 @@ internal class SessionUpdateEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdatedEventTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdatedEventTest.kt index 48c414298..a0b29d429 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdatedEventTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdatedEventTest.kt @@ -77,7 +77,7 @@ internal class SessionUpdatedEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -174,7 +174,7 @@ internal class SessionUpdatedEventTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallAcceptParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallAcceptParamsTest.kt index 79484ec58..b1c2b4ba6 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallAcceptParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallAcceptParamsTest.kt @@ -85,7 +85,7 @@ internal class CallAcceptParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -196,7 +196,7 @@ internal class CallAcceptParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -292,7 +292,7 @@ internal class CallAcceptParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallCreateParamsTest.kt index 4e28848a5..3eb1eb9b0 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallCreateParamsTest.kt @@ -87,7 +87,7 @@ internal class CallCreateParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -185,7 +185,7 @@ internal class CallCreateParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -312,7 +312,7 @@ internal class CallCreateParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality( RealtimeSessionCreateRequest.OutputModality.TEXT ) diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateParamsTest.kt index 081de267d..edc4232b8 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateParamsTest.kt @@ -90,7 +90,7 @@ internal class ClientSecretCreateParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -193,7 +193,7 @@ internal class ClientSecretCreateParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -298,7 +298,7 @@ internal class ClientSecretCreateParamsTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateResponseTest.kt index e327ef237..3a76c68e3 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateResponseTest.kt @@ -89,7 +89,7 @@ internal class ClientSecretCreateResponseTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateResponse.Model.GPT_REALTIME) + .model(RealtimeSessionCreateResponse.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateResponse.OutputModality.TEXT) .prompt( ResponsePrompt.builder() @@ -191,7 +191,7 @@ internal class ClientSecretCreateResponseTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateResponse.Model.GPT_REALTIME) + .model(RealtimeSessionCreateResponse.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateResponse.OutputModality.TEXT) .prompt( ResponsePrompt.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/RealtimeSessionCreateResponseTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/RealtimeSessionCreateResponseTest.kt index f23717053..1ea74031a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/RealtimeSessionCreateResponseTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/RealtimeSessionCreateResponseTest.kt @@ -86,7 +86,7 @@ internal class RealtimeSessionCreateResponseTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateResponse.Model.GPT_REALTIME) + .model(RealtimeSessionCreateResponse.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateResponse.OutputModality.TEXT) .prompt( ResponsePrompt.builder() @@ -179,7 +179,7 @@ internal class RealtimeSessionCreateResponseTest { assertThat(realtimeSessionCreateResponse.maxOutputTokens()) .contains(RealtimeSessionCreateResponse.MaxOutputTokens.ofInf()) assertThat(realtimeSessionCreateResponse.model()) - .contains(RealtimeSessionCreateResponse.Model.GPT_REALTIME) + .contains(RealtimeSessionCreateResponse.Model.GPT_REALTIME_2_1) assertThat(realtimeSessionCreateResponse.outputModalities().getOrNull()) .containsExactly(RealtimeSessionCreateResponse.OutputModality.TEXT) assertThat(realtimeSessionCreateResponse.prompt()) 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 98f7b0c16..64b1db206 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 @@ -76,6 +76,8 @@ internal class CompactedResponseTest { .contextCompression(CompactedResponse.Image.ContextCompression.ENABLED) .build() ) + .safetyIdentifier("safety_identifier") + .serviceTier("service_tier") .build() assertThat(compactedResponse.id()).isEqualTo("id") @@ -145,6 +147,8 @@ internal class CompactedResponseTest { .contextCompression(CompactedResponse.Image.ContextCompression.ENABLED) .build() ) + assertThat(compactedResponse.safetyIdentifier()).contains("safety_identifier") + assertThat(compactedResponse.serviceTier()).contains("service_tier") val jsonMapper = jsonMapper() diff --git a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompactParamsTest.kt b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompactParamsTest.kt index 518c46e2d..2629c2316 100644 --- a/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompactParamsTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompactParamsTest.kt @@ -27,6 +27,7 @@ internal class ResponseCompactParamsTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() } @@ -52,6 +53,7 @@ internal class ResponseCompactParamsTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() @@ -77,6 +79,7 @@ internal class ResponseCompactParamsTest { ) assertThat(body.promptCacheRetention()) .contains(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + assertThat(body.safetyIdentifier()).contains("safety_identifier") assertThat(body.serviceTier()).contains(ResponseCompactParams.ServiceTier.AUTO) } 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 0aae0afca..56054526b 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 @@ -61,7 +61,7 @@ internal class ResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -357,7 +357,7 @@ internal class ResponseCompletedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 f52c8f9b7..54a699a68 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 @@ -44,7 +44,7 @@ internal class ResponseCreateParamsTest { .build() ) .addInclude(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -53,7 +53,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -177,7 +177,7 @@ internal class ResponseCreateParamsTest { .build() ) .addInclude(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -186,7 +186,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -316,7 +316,12 @@ internal class ResponseCreateParamsTest { ) assertThat(body.include().getOrNull()) .containsExactly(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - assertThat(body.input()).contains(ResponseCreateParams.Input.ofText("string")) + assertThat(body.input()) + .contains( + ResponseCreateParams.Input.ofText( + "Write a one-sentence bedtime story about a unicorn." + ) + ) assertThat(body.instructions()).contains("instructions") assertThat(body.maxOutputTokens()).contains(16L) assertThat(body.maxToolCalls()).contains(0L) @@ -326,7 +331,7 @@ internal class ResponseCreateParamsTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(body.model()).contains(ResponsesModel.ofChat(ChatModel.GPT_6_ASTRA)) + assertThat(body.model()).contains(ResponsesModel.ofChat(ChatModel.GPT_6_2_ASTRA)) 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 b89143eef..a165cc639 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 @@ -61,7 +61,7 @@ internal class ResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -357,7 +357,7 @@ internal class ResponseCreatedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 05214cf22..049faf534 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 @@ -61,7 +61,7 @@ internal class ResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -357,7 +357,7 @@ internal class ResponseFailedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 4e158e7c0..2a2884aa7 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 @@ -61,7 +61,7 @@ internal class ResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -357,7 +357,7 @@ internal class ResponseInProgressEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 7d4cc7baa..781ab98b2 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 @@ -61,7 +61,7 @@ internal class ResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -357,7 +357,7 @@ internal class ResponseIncompleteEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 d4809802a..fb3e1e5f3 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 @@ -61,7 +61,7 @@ internal class ResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -357,7 +357,7 @@ internal class ResponseQueuedEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 f656db7d7..c79c5213f 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 @@ -978,7 +978,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1342,7 +1342,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1961,7 +1961,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -2325,7 +2325,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3731,7 +3731,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4095,7 +4095,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4420,7 +4420,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4784,7 +4784,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -5109,7 +5109,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -5473,7 +5473,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -8678,7 +8678,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -9042,7 +9042,7 @@ internal class ResponseStreamEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 5c3b55657..d6b56c67d 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 @@ -61,7 +61,7 @@ internal class ResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -343,7 +343,7 @@ internal class ResponseTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - assertThat(response.model()).isEqualTo(ResponsesModel.ofChat(ChatModel.GPT_6_ASTRA)) + assertThat(response.model()).isEqualTo(ResponsesModel.ofChat(ChatModel.GPT_6_2_ASTRA)) assertThat(response.output()) .containsExactly( ResponseOutputItem.ofMessage( 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 fb6c2b055..cc77d25f0 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 @@ -62,7 +62,7 @@ internal class ResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .moderation( ResponsesClientEvent.ResponseCreate.Moderation.builder() .model("model") @@ -227,7 +227,7 @@ internal class ResponsesClientEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .moderation( ResponsesClientEvent.ResponseCreate.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 6e7c0db3c..72c228567 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 @@ -1074,7 +1074,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -1441,7 +1441,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -2069,7 +2069,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -2436,7 +2436,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -3795,7 +3795,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4162,7 +4162,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4487,7 +4487,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -4854,7 +4854,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -5179,7 +5179,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -5546,7 +5546,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -8878,7 +8878,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") @@ -9245,7 +9245,7 @@ internal class ResponsesServerEventTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .addOutput( ResponseOutputMessage.builder() .id("id") 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 9d131f664..bdd5d8e97 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 @@ -22,10 +22,10 @@ import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText import com.openai.models.chat.completions.ChatCompletionAudioParam import com.openai.models.chat.completions.ChatCompletionCreateParams -import com.openai.models.chat.completions.ChatCompletionDeveloperMessageParam import com.openai.models.chat.completions.ChatCompletionPredictionContent import com.openai.models.chat.completions.ChatCompletionStreamOptions import com.openai.models.chat.completions.ChatCompletionToolChoiceOption +import com.openai.models.chat.completions.ChatCompletionUserMessageParam import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.junit.jupiter.api.parallel.ResourceLock @@ -54,12 +54,12 @@ internal class ServiceParamsTest { chatCompletionService.create( ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/ConversationServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/ConversationServiceAsyncTest.kt index 016ad4fc9..76985f528 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/ConversationServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/ConversationServiceAsyncTest.kt @@ -40,6 +40,7 @@ internal class ConversationServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) + .safetyIdentifier("safety_identifier") .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncStreamingServerContractTest.kt index b6495ca03..d18dc9c32 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncStreamingServerContractTest.kt @@ -35,7 +35,7 @@ internal class ImageServiceAsyncStreamingServerContractTest { .inputFidelity(ImageEditParams.InputFidelity.HIGH) .markup("Example data".byteInputStream()) .mask("Example data".byteInputStream()) - .model(ImageModel.GPT_IMAGE_1_5) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .n(1L) .outputCompression(100L) .outputFormat(ImageEditParams.OutputFormat.PNG) @@ -88,7 +88,7 @@ internal class ImageServiceAsyncStreamingServerContractTest { .complexity(ImageGenerateParams.Complexity.LOW) .frameCount(2L) .frameDurationMs(20L) - .model(ImageModel.GPT_IMAGE_2_5_FLARE) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .moderation(ImageGenerateParams.Moderation.LOW) .n(1L) .outputCompression(100L) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncTest.kt index 8e201e3d6..fe6dd2445 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncTest.kt @@ -62,7 +62,7 @@ internal class ImageServiceAsyncTest { .inputFidelity(ImageEditParams.InputFidelity.HIGH) .markup("Example data".byteInputStream()) .mask("Example data".byteInputStream()) - .model(ImageModel.GPT_IMAGE_1_5) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .n(1L) .outputCompression(100L) .outputFormat(ImageEditParams.OutputFormat.PNG) @@ -107,7 +107,7 @@ internal class ImageServiceAsyncTest { .complexity(ImageGenerateParams.Complexity.LOW) .frameCount(2L) .frameDurationMs(20L) - .model(ImageModel.GPT_IMAGE_2_5_FLARE) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .moderation(ImageGenerateParams.Moderation.LOW) .n(1L) .outputCompression(100L) 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 05acb72ba..005cefb68 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-6-astra") + val modelFuture = modelServiceAsync.retrieve("gpt-6.2-astra") val model = modelFuture.get() model.validate() @@ -52,7 +52,8 @@ internal class ModelServiceAsyncTest { .build() val modelServiceAsync = client.models() - val modelDeletedFuture = modelServiceAsync.delete("ft:gpt-4o-mini:acemeco:suffix:abc123") + val modelDeletedFuture = + modelServiceAsync.delete("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123") val modelDeleted = modelDeletedFuture.get() modelDeleted.validate() diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncStreamingServerContractTest.kt index 8632d0e79..e1a98c229 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncStreamingServerContractTest.kt @@ -5,7 +5,6 @@ package com.openai.services.async import com.openai.TestServerExtension import com.openai.client.okhttp.OpenAIOkHttpClientAsync import com.openai.core.JsonValue -import com.openai.models.ChatModel import com.openai.models.Reasoning import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText @@ -62,7 +61,7 @@ internal class ResponseServiceAsyncStreamingServerContractTest { .build() ) .addInclude(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -71,7 +70,7 @@ internal class ResponseServiceAsyncStreamingServerContractTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model("gpt-6.2-astra") .moderation( ResponseCreateParams.Moderation.builder() .model("model") 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 a87d31807..fdefdfdb5 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 @@ -5,7 +5,6 @@ package com.openai.services.async import com.openai.TestServerExtension import com.openai.client.okhttp.OpenAIOkHttpClientAsync import com.openai.core.JsonValue -import com.openai.models.ChatModel import com.openai.models.Reasoning import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText @@ -63,7 +62,7 @@ internal class ResponseServiceAsyncTest { .build() ) .addInclude(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -72,7 +71,7 @@ internal class ResponseServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model("gpt-6.2-astra") .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -262,6 +261,7 @@ internal class ResponseServiceAsyncTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/SpendLimitServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/SpendLimitServiceAsyncTest.kt index 1c206a7b9..9acfb2236 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/SpendLimitServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/SpendLimitServiceAsyncTest.kt @@ -43,6 +43,12 @@ internal class SpendLimitServiceAsyncTest { .currency(SpendLimitUpdateParams.Currency.USD) .interval(SpendLimitUpdateParams.Interval.MONTH) .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/projects/SpendLimitServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/projects/SpendLimitServiceAsyncTest.kt index 7e2739a07..b1ac9eb45 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/projects/SpendLimitServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/projects/SpendLimitServiceAsyncTest.kt @@ -44,6 +44,12 @@ internal class SpendLimitServiceAsyncTest { .currency(SpendLimitUpdateParams.Currency.USD) .interval(SpendLimitUpdateParams.Interval.MONTH) .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncStreamingServerContractTest.kt index 917dbc612..ca6b44d35 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncStreamingServerContractTest.kt @@ -28,7 +28,7 @@ internal class TranscriptionServiceAsyncStreamingServerContractTest { transcriptionServiceAsync.createStreaming( TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .chunkingStrategyAuto() .addInclude(TranscriptionInclude.LOGPROBS) .addKeyword("string") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncTest.kt index 6c7405774..34e4efbcc 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncTest.kt @@ -28,7 +28,7 @@ internal class TranscriptionServiceAsyncTest { transcriptionServiceAsync.create( TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .chunkingStrategyAuto() .addInclude(TranscriptionInclude.LOGPROBS) .addKeyword("string") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncStreamingServerContractTest.kt index a9fa50d84..b6e202d01 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncStreamingServerContractTest.kt @@ -59,7 +59,7 @@ internal class ResponseServiceAsyncStreamingServerContractTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -68,7 +68,7 @@ internal class ResponseServiceAsyncStreamingServerContractTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") 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 2fa55a06d..c3c1b61c4 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 @@ -62,7 +62,7 @@ internal class ResponseServiceAsyncTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -71,7 +71,7 @@ internal class ResponseServiceAsyncTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -281,6 +281,7 @@ internal class ResponseServiceAsyncTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/vaults/CredentialServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/vaults/CredentialServiceAsyncTest.kt index 97966724e..097a2b699 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/vaults/CredentialServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/vaults/CredentialServiceAsyncTest.kt @@ -117,7 +117,11 @@ internal class CredentialServiceAsyncTest { ) .build() ) - .metadata(CredentialUpdateParams.Metadata.builder().build()) + .metadata( + CredentialUpdateParams.Metadata.builder() + .putAdditionalProperty("environment", JsonValue.from("staging")) + .build() + ) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncStreamingServerContractTest.kt index 1367ea71d..96c025e5e 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncStreamingServerContractTest.kt @@ -12,10 +12,10 @@ import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText import com.openai.models.chat.completions.ChatCompletionAudioParam import com.openai.models.chat.completions.ChatCompletionCreateParams -import com.openai.models.chat.completions.ChatCompletionDeveloperMessageParam import com.openai.models.chat.completions.ChatCompletionPredictionContent import com.openai.models.chat.completions.ChatCompletionStreamOptions import com.openai.models.chat.completions.ChatCompletionToolChoiceOption +import com.openai.models.chat.completions.ChatCompletionUserMessageParam import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -36,12 +36,12 @@ internal class ChatCompletionServiceAsyncStreamingServerContractTest { chatCompletionServiceAsync.createStreaming( ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) 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 6aa64b6c4..e2ff1857e 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 @@ -12,11 +12,11 @@ import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText import com.openai.models.chat.completions.ChatCompletionAudioParam import com.openai.models.chat.completions.ChatCompletionCreateParams -import com.openai.models.chat.completions.ChatCompletionDeveloperMessageParam import com.openai.models.chat.completions.ChatCompletionPredictionContent import com.openai.models.chat.completions.ChatCompletionStreamOptions import com.openai.models.chat.completions.ChatCompletionToolChoiceOption import com.openai.models.chat.completions.ChatCompletionUpdateParams +import com.openai.models.chat.completions.ChatCompletionUserMessageParam import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -37,12 +37,12 @@ internal class ChatCompletionServiceAsyncTest { chatCompletionServiceAsync.create( ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/JobServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/JobServiceAsyncTest.kt index dd11b348c..8d18dee8a 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/JobServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/JobServiceAsyncTest.kt @@ -32,7 +32,7 @@ internal class JobServiceAsyncTest { val fineTuningJobFuture = jobServiceAsync.create( JobCreateParams.builder() - .model(JobCreateParams.Model.GPT_4O_MINI) + .model(JobCreateParams.Model.BABBAGE_002) .trainingFile("file-abc123") .hyperparameters( JobCreateParams.Hyperparameters.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncTest.kt index 94740bee3..ec7783fcb 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncTest.kt @@ -26,7 +26,7 @@ internal class PermissionServiceAsyncTest { val pageFuture = permissionServiceAsync.create( PermissionCreateParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .addProjectId("string") .build() ) @@ -89,7 +89,7 @@ internal class PermissionServiceAsyncTest { val permissionFuture = permissionServiceAsync.delete( PermissionDeleteParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .permissionId("cp_zc4Q7MP6XxulcVzj4MZdwsAB") .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/CallServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/CallServiceAsyncTest.kt index 025b78e9b..608c01efa 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/CallServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/CallServiceAsyncTest.kt @@ -122,7 +122,7 @@ internal class CallServiceAsyncTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -275,7 +275,7 @@ internal class CallServiceAsyncTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/ClientSecretServiceAsyncTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/ClientSecretServiceAsyncTest.kt index d8205b463..df221d48d 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/ClientSecretServiceAsyncTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/async/realtime/ClientSecretServiceAsyncTest.kt @@ -111,7 +111,7 @@ internal class ClientSecretServiceAsyncTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ConversationServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ConversationServiceTest.kt index 42624f5ea..f0db1ed81 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ConversationServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ConversationServiceTest.kt @@ -40,6 +40,7 @@ internal class ConversationServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) + .safetyIdentifier("safety_identifier") .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceStreamingServerContractTest.kt index feef570ed..3dc63bcac 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceStreamingServerContractTest.kt @@ -35,7 +35,7 @@ internal class ImageServiceStreamingServerContractTest { .inputFidelity(ImageEditParams.InputFidelity.HIGH) .markup("Example data".byteInputStream()) .mask("Example data".byteInputStream()) - .model(ImageModel.GPT_IMAGE_1_5) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .n(1L) .outputCompression(100L) .outputFormat(ImageEditParams.OutputFormat.PNG) @@ -86,7 +86,7 @@ internal class ImageServiceStreamingServerContractTest { .complexity(ImageGenerateParams.Complexity.LOW) .frameCount(2L) .frameDurationMs(20L) - .model(ImageModel.GPT_IMAGE_2_5_FLARE) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .moderation(ImageGenerateParams.Moderation.LOW) .n(1L) .outputCompression(100L) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceTest.kt index 4186cf542..07b6e9cb3 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceTest.kt @@ -61,7 +61,7 @@ internal class ImageServiceTest { .inputFidelity(ImageEditParams.InputFidelity.HIGH) .markup("Example data".byteInputStream()) .mask("Example data".byteInputStream()) - .model(ImageModel.GPT_IMAGE_1_5) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .n(1L) .outputCompression(100L) .outputFormat(ImageEditParams.OutputFormat.PNG) @@ -105,7 +105,7 @@ internal class ImageServiceTest { .complexity(ImageGenerateParams.Complexity.LOW) .frameCount(2L) .frameDurationMs(20L) - .model(ImageModel.GPT_IMAGE_2_5_FLARE) + .model(ImageModel.GPT_IMAGE_2_6_FLARE) .moderation(ImageGenerateParams.Moderation.LOW) .n(1L) .outputCompression(100L) 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 2a95842db..7890435ed 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-6-astra") + val model = modelService.retrieve("gpt-6.2-astra") model.validate() } @@ -50,7 +50,7 @@ internal class ModelServiceTest { .build() val modelService = client.models() - val modelDeleted = modelService.delete("ft:gpt-4o-mini:acemeco:suffix:abc123") + val modelDeleted = modelService.delete("ft:gpt-4.1-mini-2025-04-14:acemeco:suffix:abc123") modelDeleted.validate() } diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceStreamingServerContractTest.kt index 5dcec75dd..c93708dde 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceStreamingServerContractTest.kt @@ -5,7 +5,6 @@ package com.openai.services.blocking import com.openai.TestServerExtension import com.openai.client.okhttp.OpenAIOkHttpClient import com.openai.core.JsonValue -import com.openai.models.ChatModel import com.openai.models.Reasoning import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText @@ -62,7 +61,7 @@ internal class ResponseServiceStreamingServerContractTest { .build() ) .addInclude(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -71,7 +70,7 @@ internal class ResponseServiceStreamingServerContractTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model("gpt-6.2-astra") .moderation( ResponseCreateParams.Moderation.builder() .model("model") 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 f743c0cfa..2b6e3291f 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 @@ -5,7 +5,6 @@ package com.openai.services.blocking import com.openai.TestServerExtension import com.openai.client.okhttp.OpenAIOkHttpClient import com.openai.core.JsonValue -import com.openai.models.ChatModel import com.openai.models.Reasoning import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText @@ -63,7 +62,7 @@ internal class ResponseServiceTest { .build() ) .addInclude(ResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -72,7 +71,7 @@ internal class ResponseServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model("gpt-6.2-astra") .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -257,6 +256,7 @@ internal class ResponseServiceTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/SpendLimitServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/SpendLimitServiceTest.kt index 54897666d..78568a9a2 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/SpendLimitServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/SpendLimitServiceTest.kt @@ -42,6 +42,12 @@ internal class SpendLimitServiceTest { .currency(SpendLimitUpdateParams.Currency.USD) .interval(SpendLimitUpdateParams.Interval.MONTH) .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/projects/SpendLimitServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/projects/SpendLimitServiceTest.kt index 5c45157cb..9e3cc24b3 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/projects/SpendLimitServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/projects/SpendLimitServiceTest.kt @@ -43,6 +43,12 @@ internal class SpendLimitServiceTest { .currency(SpendLimitUpdateParams.Currency.USD) .interval(SpendLimitUpdateParams.Interval.MONTH) .thresholdAmount(1L) + .notificationChannel( + SpendLimitUpdateParams.NotificationChannel.builder() + .addRecipient("string") + .subjectPrefix("subject_prefix") + .build() + ) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceStreamingServerContractTest.kt index 263f53237..af2cc3d88 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceStreamingServerContractTest.kt @@ -28,7 +28,7 @@ internal class TranscriptionServiceStreamingServerContractTest { transcriptionService.createStreaming( TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .chunkingStrategyAuto() .addInclude(TranscriptionInclude.LOGPROBS) .addKeyword("string") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceTest.kt index 57f14627a..e1825136e 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceTest.kt @@ -28,7 +28,7 @@ internal class TranscriptionServiceTest { transcriptionService.create( TranscriptionCreateParams.builder() .file("Example data".byteInputStream()) - .model(AudioModel.GPT_4O_TRANSCRIBE) + .model(AudioModel.GPT_TRANSCRIBE) .chunkingStrategyAuto() .addInclude(TranscriptionInclude.LOGPROBS) .addKeyword("string") diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceStreamingServerContractTest.kt index 9fcb1f9e3..fd7183ef4 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceStreamingServerContractTest.kt @@ -59,7 +59,7 @@ internal class ResponseServiceStreamingServerContractTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -68,7 +68,7 @@ internal class ResponseServiceStreamingServerContractTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") 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 982c0d100..099fb8544 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 @@ -62,7 +62,7 @@ internal class ResponseServiceTest { .build() ) .addInclude(BetaResponseIncludable.FILE_SEARCH_CALL_RESULTS) - .input("string") + .input("Write a one-sentence bedtime story about a unicorn.") .instructions("instructions") .maxOutputTokens(16L) .maxToolCalls(0L) @@ -71,7 +71,7 @@ internal class ResponseServiceTest { .putAdditionalProperty("foo", JsonValue.from("string")) .build() ) - .model(ResponseCreateParams.Model.GPT_6_ASTRA) + .model(ResponseCreateParams.Model.GPT_6_2_ASTRA) .moderation( ResponseCreateParams.Moderation.builder() .model("model") @@ -275,6 +275,7 @@ internal class ResponseServiceTest { .build() ) .promptCacheRetention(ResponseCompactParams.PromptCacheRetention.IN_MEMORY) + .safetyIdentifier("safety_identifier") .serviceTier(ResponseCompactParams.ServiceTier.AUTO) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/vaults/CredentialServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/vaults/CredentialServiceTest.kt index c8ff906cc..a2e515d53 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/vaults/CredentialServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/vaults/CredentialServiceTest.kt @@ -115,7 +115,11 @@ internal class CredentialServiceTest { ) .build() ) - .metadata(CredentialUpdateParams.Metadata.builder().build()) + .metadata( + CredentialUpdateParams.Metadata.builder() + .putAdditionalProperty("environment", JsonValue.from("staging")) + .build() + ) .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceStreamingServerContractTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceStreamingServerContractTest.kt index 077191c31..9885575c2 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceStreamingServerContractTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceStreamingServerContractTest.kt @@ -12,10 +12,10 @@ import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText import com.openai.models.chat.completions.ChatCompletionAudioParam import com.openai.models.chat.completions.ChatCompletionCreateParams -import com.openai.models.chat.completions.ChatCompletionDeveloperMessageParam import com.openai.models.chat.completions.ChatCompletionPredictionContent import com.openai.models.chat.completions.ChatCompletionStreamOptions import com.openai.models.chat.completions.ChatCompletionToolChoiceOption +import com.openai.models.chat.completions.ChatCompletionUserMessageParam import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -36,12 +36,12 @@ internal class ChatCompletionServiceStreamingServerContractTest { chatCompletionService.createStreaming( ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) 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 0d3793d86..6e78b47de 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 @@ -12,11 +12,11 @@ import com.openai.models.ReasoningEffort import com.openai.models.ResponseFormatText import com.openai.models.chat.completions.ChatCompletionAudioParam import com.openai.models.chat.completions.ChatCompletionCreateParams -import com.openai.models.chat.completions.ChatCompletionDeveloperMessageParam import com.openai.models.chat.completions.ChatCompletionPredictionContent import com.openai.models.chat.completions.ChatCompletionStreamOptions import com.openai.models.chat.completions.ChatCompletionToolChoiceOption import com.openai.models.chat.completions.ChatCompletionUpdateParams +import com.openai.models.chat.completions.ChatCompletionUserMessageParam import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @@ -37,12 +37,12 @@ internal class ChatCompletionServiceTest { chatCompletionService.create( ChatCompletionCreateParams.builder() .addMessage( - ChatCompletionDeveloperMessageParam.builder() - .content("string") + ChatCompletionUserMessageParam.builder() + .content("Say hello in one sentence.") .name("name") .build() ) - .model(ChatModel.GPT_6_ASTRA) + .model(ChatModel.GPT_6_2_ASTRA) .audio( ChatCompletionAudioParam.builder() .format(ChatCompletionAudioParam.Format.WAV) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/JobServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/JobServiceTest.kt index c652be6de..a261927db 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/JobServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/JobServiceTest.kt @@ -32,7 +32,7 @@ internal class JobServiceTest { val fineTuningJob = jobService.create( JobCreateParams.builder() - .model(JobCreateParams.Model.GPT_4O_MINI) + .model(JobCreateParams.Model.BABBAGE_002) .trainingFile("file-abc123") .hyperparameters( JobCreateParams.Hyperparameters.builder() diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/checkpoints/PermissionServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/checkpoints/PermissionServiceTest.kt index f92332ea1..ff93c9299 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/checkpoints/PermissionServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/checkpoints/PermissionServiceTest.kt @@ -26,7 +26,7 @@ internal class PermissionServiceTest { val page = permissionService.create( PermissionCreateParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .addProjectId("string") .build() ) @@ -86,7 +86,7 @@ internal class PermissionServiceTest { val permission = permissionService.delete( PermissionDeleteParams.builder() - .fineTunedModelCheckpoint("ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd") + .fineTunedModelCheckpoint("ft:gpt-4.1-mini-2025-04-14:org:weather:B7R9VjQd") .permissionId("cp_zc4Q7MP6XxulcVzj4MZdwsAB") .build() ) diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/CallServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/CallServiceTest.kt index 2077866eb..03bef36de 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/CallServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/CallServiceTest.kt @@ -122,7 +122,7 @@ internal class CallServiceTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( @@ -268,7 +268,7 @@ internal class CallServiceTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/ClientSecretServiceTest.kt b/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/ClientSecretServiceTest.kt index 018aef782..1e9f83bef 100644 --- a/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/ClientSecretServiceTest.kt +++ b/openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/ClientSecretServiceTest.kt @@ -111,7 +111,7 @@ internal class ClientSecretServiceTest { ) .instructions("instructions") .maxOutputTokensInf() - .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME) + .model(RealtimeSessionCreateRequest.Model.GPT_REALTIME_2_1) .addOutputModality(RealtimeSessionCreateRequest.OutputModality.TEXT) .parallelToolCalls(true) .prompt( diff --git a/scripts/castiron/generated-files.json b/scripts/castiron/generated-files.json index cf361c949..36cf945f3 100644 --- a/scripts/castiron/generated-files.json +++ b/scripts/castiron/generated-files.json @@ -967,7 +967,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimit.kt": { "mode": "100644", - "sha256": "63eeb48bdd243a7c9272b3c7a5a17c2276f1bee5f94f29097b491a5bfe4f36b2" + "sha256": "952ebca34bca84719fc9f147c9f7d73fe77773384c8f33f3b94e7c10f8d6210a" }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimitDeleted.kt": { "mode": "100644", @@ -983,7 +983,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParams.kt": { "mode": "100644", - "sha256": "2d2fd0c5f444446c4f75f8773c05cf43a89353825884657d9c0961d10fc29416" + "sha256": "eb17a980cc9692ad7f137374ecc21ca943aa39e5fdd064923df0a194ba7ed9d5" }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/projects/users/ProjectUser.kt": { "mode": "100644", @@ -1151,7 +1151,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimit.kt": { "mode": "100644", - "sha256": "e36a0134205cbf4c242c0c8c5cadcbfcd3b1cb30e34d13ace15f7c0ff1d95036" + "sha256": "69f0bbbea6abcd25c6e7987f2ada174c3ae5e0bb15c34f2ceec3be182befa187" }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimitDeleted.kt": { "mode": "100644", @@ -1167,7 +1167,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParams.kt": { "mode": "100644", - "sha256": "705b8201c20c997bded5c48ef6d77747c75efbd72cb95e6d73a77c3ceb2b01c1" + "sha256": "a2c9873c2fe41500414589b6bb49860f722f12ab77debfdb6e30d95946bb8f95" }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/CostQuantityUnit.kt": { "mode": "100644", @@ -1207,7 +1207,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/UsageCostsParams.kt": { "mode": "100644", - "sha256": "55b132e5e63a7e95f1bbd117a15925c0acec882fabb00d58e5bbeee7b4b04a4c" + "sha256": "aba525fc85cba379c1c04154a2d836ba22c2879381d3455482a77b2c489b4fe2" }, "openai-java-core/src/main/kotlin/com/openai/models/admin/organization/usage/UsageCostsResponse.kt": { "mode": "100644", @@ -1575,7 +1575,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/batches/Batch.kt": { "mode": "100644", - "sha256": "50079f7eaa23277c0c06bf64d233f31b955ba238126f5a4ed43880824c6e0f24" + "sha256": "0f5a2006c35af78d3b738cf05ce0b91e46760767413b280f9efd464c6f61e56f" }, "openai-java-core/src/main/kotlin/com/openai/models/batches/BatchCancelParams.kt": { "mode": "100644", @@ -2127,7 +2127,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/agents/automations/AutomationTargetParam.kt": { "mode": "100644", - "sha256": "1fb18062da591eb7e82bd5c02e29f846be860978bf15ecb07c36792f387edc11" + "sha256": "840218c6b16cc9446ee7146f54dcab18953c1d811eaa718e4f04a6f85d706dca" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/agents/automations/AutomationUpdateParams.kt": { "mode": "100644", @@ -2271,7 +2271,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/SessionCreateParams.kt": { "mode": "100644", - "sha256": "07ae9778e4c084330ea4fa2b7ad2e3de4992e407755cf0e4ab7353d46e41b00d" + "sha256": "eaf40b4ed17f977cd2cc7fd3600da08edf8a79142f52c8d113aed3979f72c4c8" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/SessionDeleteParams.kt": { "mode": "100644", @@ -2451,7 +2451,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/traces/TraceListParams.kt": { "mode": "100644", - "sha256": "800252bd704364aa8dc00f9b32fee2984065858ba5ae4e479d1f4523b0ca31c0" + "sha256": "1f79932b06da7e4d4f6d032ba2945c6c6f12e5eacb4ec732eb83282c84cb12f4" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/agents/sessions/turns/Turn.kt": { "mode": "100644", @@ -2819,7 +2819,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaCompactedResponse.kt": { "mode": "100644", - "sha256": "4faa60ce81f7df4aa34bb3e5328c1a50a180e9dd77ca764021b108f20cad82e5" + "sha256": "b6dc3512cb5d052a5ce452eddfd1282cfa584e2bf04c48804723d8ebd2c8a12e" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaComputerAction.kt": { "mode": "100644", @@ -2899,7 +2899,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponse.kt": { "mode": "100644", - "sha256": "06b4718ab3a51f58982f6c11575d309c8bc546f633ce533c18013869f7360fa0" + "sha256": "d9fd50e646e8626076cba497173943869cdc0d021dff44ecfab56a3b45797ab9" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseApplyPatchToolCall.kt": { "mode": "100644", @@ -3411,7 +3411,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesClientEvent.kt": { "mode": "100644", - "sha256": "ab430f0b47f590bc5878dce34022eec54609aea83202bc64120bf4dbd6d1ad03" + "sha256": "ee5c802c514557bca7d3c7c5234cd944eef38b74b2028662d6ce88329f000645" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesServerEvent.kt": { "mode": "100644", @@ -3479,11 +3479,11 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCompactParams.kt": { "mode": "100644", - "sha256": "e9164b3e912dbc97dd6a08314dc099751aa9b3058d0cf9a9a308ff7624ae591d" + "sha256": "7aa5e656c8e2a6d8a99a0177645d8b902f50a736186c3c2c4c8079385a9bd082" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseCreateParams.kt": { "mode": "100644", - "sha256": "76a25e44516b2d7397126e711447fc15cba1494523ab7385fc356f326e92e8cd" + "sha256": "cb62a53d8651274e902c9f5ba2f7970a396a7bf7ccad874edbca40de553a67bb" }, "openai-java-core/src/main/kotlin/com/openai/models/beta/responses/ResponseDeleteParams.kt": { "mode": "100644", @@ -3899,7 +3899,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt": { "mode": "100644", - "sha256": "0645c20878bd106f5c5a107dc8a2bcb75db622a4a53c72cd76304fb8780aa277" + "sha256": "608ce3c2f9a10903874b557365b51149e909bd8fbb7cdb9bb8b6f8aadc0cb422" }, "openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCustomTool.kt": { "mode": "100644", @@ -4051,7 +4051,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionCreateParams.kt": { "mode": "100644", - "sha256": "179fae3b3f0b19f9f7e04af27ed38c12007b1850598ea4b9d5a65019517755be" + "sha256": "c4c85723e5cdacaee2c1b03973f6c9fdc5f7a3ae2d938feacacdd0e30618d708" }, "openai-java-core/src/main/kotlin/com/openai/models/completions/CompletionUsage.kt": { "mode": "100644", @@ -4159,7 +4159,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationCreateParams.kt": { "mode": "100644", - "sha256": "ff30be3d3255051e010fbea8e6588db16e85f486c1a16a0e0b1c9835c6943df9" + "sha256": "e05467f6c567ce81aa1d0751b17564f5dd65e129fde2a83582a739ef12d96031" }, "openai-java-core/src/main/kotlin/com/openai/models/conversations/ConversationDeleteParams.kt": { "mode": "100644", @@ -4287,7 +4287,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCreateResponse.kt": { "mode": "100644", - "sha256": "dbbaec60f9bc30c964e3c2f7fdce25cc03521f8dd16a8d4fd684766d89d0fb7c" + "sha256": "e4ef93065eeba5ac90bfdf44ee44208f8b4cf774d5ab78c8c563d064e61c3731" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalCustomDataSourceConfig.kt": { "mode": "100644", @@ -4319,7 +4319,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalListResponse.kt": { "mode": "100644", - "sha256": "17c59e119906cfd058d17bf19e54134749a476056f38c45f78431e8cec36e057" + "sha256": "02aa096926aa5f90e67e949e87d90b0ccf6b60013326dfae1e663b44152bfb2e" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveParams.kt": { "mode": "100644", @@ -4327,7 +4327,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalRetrieveResponse.kt": { "mode": "100644", - "sha256": "3ea01eedc2594acde312723549e8abf9b38c3598bf5fa65306b23b3b583f0092" + "sha256": "b0b101cbaeebc2b9102ad8899b5512484ff28289720a47c21c5d6ca1a7d0afc3" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalStoredCompletionsDataSourceConfig.kt": { "mode": "100644", @@ -4339,11 +4339,11 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/EvalUpdateResponse.kt": { "mode": "100644", - "sha256": "0dcf751c3f79d1048bff304d7a9be2a395befbddb1a5d9de7af32cc4cb89d922" + "sha256": "3833d84a95e18763bdd254a755bed7cdbf2ddb2217473d79403cc95108c17aea" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/CreateEvalCompletionsRunDataSource.kt": { "mode": "100644", - "sha256": "3ba6d37cd894bc46f5fe197d6bf24f4fd5d538abca5efbd98d344f4d36741b33" + "sha256": "5db276e87b47e6ffc8008686e0be0ff78afe5a4e22015c9dcd097a79fcd8a292" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/CreateEvalJsonlRunDataSource.kt": { "mode": "100644", @@ -4359,15 +4359,15 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCancelResponse.kt": { "mode": "100644", - "sha256": "8c35a86c2c78971ff45d30d64c10a633586f29ca615068d3c9294c7c31825219" + "sha256": "44291e338d072fc3fc7ab37b55ca9f4e1e1ba0bd875d08348968d128912b1175" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateParams.kt": { "mode": "100644", - "sha256": "ea2b617f09187b8c078745227b65848560b5b81d4e6e3187d86d4142f21e4306" + "sha256": "86f11a0041b2402c1b79f0ef51429a154e90e5ec1954fdc86c570059c5efeee5" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunCreateResponse.kt": { "mode": "100644", - "sha256": "d1c22baeec91660b1ecd81c5de7bd6cf3539dc603af02dc2a1ff3f160ce7aec9" + "sha256": "47bc8b0be7ab6ca343c56778ec019ac984f93ab39f09d1fb55bf91d616773bc0" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunDeleteParams.kt": { "mode": "100644", @@ -4395,7 +4395,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunListResponse.kt": { "mode": "100644", - "sha256": "605c93c012d8e1e2c0cb305320365750df0bf07fe04d138ea61279c6fe5470ae" + "sha256": "7a44f533fcd850c61dfd3a43d8e99657b824d0e4d67f4412c5a96917c14c2e09" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveParams.kt": { "mode": "100644", @@ -4403,7 +4403,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/RunRetrieveResponse.kt": { "mode": "100644", - "sha256": "c2786e299ba11e65b766be54f751e6b573c0339f060f54122d5ea65a38d24e36" + "sha256": "c4657c776878d274f9dca886e586d5f6de143fd2956dea4bd6a1db9964773732" }, "openai-java-core/src/main/kotlin/com/openai/models/evals/runs/outputitems/OutputItemListPage.kt": { "mode": "100644", @@ -4571,7 +4571,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/finetuning/jobs/JobCreateParams.kt": { "mode": "100644", - "sha256": "f59dd2e66774790f6d48b2c801ede8e60958140bf75cc514f4812ebc1b5b468e" + "sha256": "7fb1efeecc49cb27d790f511731dfa107834a7baf4bf2e7b83c3b8cbc6d1b7c9" }, "openai-java-core/src/main/kotlin/com/openai/models/finetuning/jobs/JobListEventsPage.kt": { "mode": "100644", @@ -4903,7 +4903,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/live/MediaSessionConfig.kt": { "mode": "100644", - "sha256": "dd6bf1562f081b88f74db302bfb62b5580fd6ecebf2949d7cca657527ad38bf3" + "sha256": "3aa0ae8d72d36f1b3456fe662e2ad2922254440ee347cbd72dba9d0e75ca4ac8" }, "openai-java-core/src/main/kotlin/com/openai/models/live/MediaSessionForkConfig.kt": { "mode": "100644", @@ -4951,7 +4951,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/live/ServerEvent.kt": { "mode": "100644", - "sha256": "27575a24551ddfe87c140c0c1b8e2bd8cb8e61f32f9f5f45c0fa1de477baf791" + "sha256": "4e7db761098be63715c847852d1caa04c4d8e05bde53a0a326139ecaee085a51" }, "openai-java-core/src/main/kotlin/com/openai/models/live/ServerEventSelector.kt": { "mode": "100644", @@ -5015,7 +5015,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/live/forks/ForkServerEvent.kt": { "mode": "100644", - "sha256": "007583ec9d5130ec9c35801e13e2f533bb0bf666a0e15bf42e802ea76a63aac3" + "sha256": "ab1a87b81231524c5e1270860f37c23145daff0e516d9f938e316f4fa0586b4d" }, "openai-java-core/src/main/kotlin/com/openai/models/live/forks/ForkWebSocketBinding.kt": { "mode": "100644", @@ -5055,7 +5055,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/live/sideband/SidebandServerEvent.kt": { "mode": "100644", - "sha256": "df5b672739b13b939c5fa6b2fe00e2a0f033462af9407930ce8058a2d60f8714" + "sha256": "76d4c67ad9acd3b2834e7637df3f4962c3b31f80ea4a50b674d711a75b074449" }, "openai-java-core/src/main/kotlin/com/openai/models/live/sideband/SidebandWebSocketBinding.kt": { "mode": "100644", @@ -5659,7 +5659,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/responses/CompactedResponse.kt": { "mode": "100644", - "sha256": "e18e8a3be17a892bac6e8e27e161c0171b1bf3311c9606e5a5d0691029d5939c" + "sha256": "0c4931535ad7d247a0e9fe1b9b4096c5de8620a3b6ff7ae9b568be22342b2555" }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ComputerAction.kt": { "mode": "100644", @@ -5739,7 +5739,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/responses/Response.kt": { "mode": "100644", - "sha256": "990cd482ba60608c2f9894c613e2640c23e8fdf774baa6981830807fd1ecc3cd" + "sha256": "2802ff339c646f6a95ade718b54194a4593ba6056ec9071022e9e708a54f4b2f" }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseApplyPatchToolCall.kt": { "mode": "100644", @@ -5795,7 +5795,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactParams.kt": { "mode": "100644", - "sha256": "50144bfadd4f61f21caed9e04b513c855cb058bffebdef8b29776ae10d4530b2" + "sha256": "90bacef4cdb8ad2b11467942b98ddcd2d9a2172719f0a0109c90fbc8085727ef" }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCompactionCompactingEvent.kt": { "mode": "100644", @@ -5855,7 +5855,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt": { "mode": "100644", - "sha256": "86acfd09d2c02e5336f794eea7fe6d4d8f1b313cd61497933e9dc34f9caa46be" + "sha256": "d68f64dca55ffff6e05ef2af97981a98eb7af30b6ceadcb23128cb5daae1494a" }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreatedEvent.kt": { "mode": "100644", @@ -6263,7 +6263,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesClientEvent.kt": { "mode": "100644", - "sha256": "2d192d7c6e88bc3090b64632e96afc8a8d3d7622ca07f5e9572e47d003231022" + "sha256": "ad7cbabc09025744633ae90728b4aa2d422af323b52201f8194d8b447a9f508b" }, "openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesServerEvent.kt": { "mode": "100644", @@ -7607,7 +7607,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/sessions/TraceServiceAsync.kt": { "mode": "100644", - "sha256": "d819c61c7e6f7d9b2c2d31231ad242a60e1de9fee9d03d6ff91e8188d809ff55" + "sha256": "fa627b985c214ec95b8ea27d40f04a9e85c781b6adc22d296f11542f2d76bb98" }, "openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/sessions/TraceServiceAsyncImpl.kt": { "mode": "100644", @@ -8655,7 +8655,7 @@ }, "openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/sessions/TraceService.kt": { "mode": "100644", - "sha256": "554749670e8dbd12c36804f6cff5e5e6674fd3ee44326c35ad9118c077714001" + "sha256": "b4acc81753e178e2a21b2cbe39680d0f157827cdb7e956b21c990bd2514b62e2" }, "openai-java-core/src/main/kotlin/com/openai/services/blocking/beta/agents/sessions/TraceServiceImpl.kt": { "mode": "100644", @@ -9783,7 +9783,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/ProjectSpendLimitTest.kt": { "mode": "100644", - "sha256": "4babebec42cb7416d5f6f8699be85b037d3a84cabf50e489ff917878ae6f353c" + "sha256": "8ee9beb7dea84cab0c91f5b2e92a36682063c316f0615e14b34b18da3367fc33" }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitDeleteParamsTest.kt": { "mode": "100644", @@ -9795,7 +9795,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/spendlimit/SpendLimitUpdateParamsTest.kt": { "mode": "100644", - "sha256": "cc84d920d2f99e183106e51276464920a83caf1059d5fb9a8579f068ffe9bcd5" + "sha256": "0e1eb24490082db70cbd79debb1c9858118187b78cdf3bb4f945f26a0fc43087" }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/projects/users/ProjectUserTest.kt": { "mode": "100644", @@ -9935,7 +9935,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/OrganizationSpendLimitTest.kt": { "mode": "100644", - "sha256": "0a4e2d63b1a360f6d2ccea6fa91df9acaeab0c44350917654ff133e8c10b5d91" + "sha256": "738701d4c122e8bd41366fb6fc05bf89e081090d6950c0bc3c68671a771b9316" }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitDeleteParamsTest.kt": { "mode": "100644", @@ -9947,7 +9947,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/spendlimit/SpendLimitUpdateParamsTest.kt": { "mode": "100644", - "sha256": "491eb02f759f0841b6a4e5c3bf18bdb407d27b54782b854618b79f6f738e6f1e" + "sha256": "dbfa7d7757e35c7b79cb8dd1815b32b683c1340b86650a8ed8fbf436e8306429" }, "openai-java-core/src/test/kotlin/com/openai/models/admin/organization/usage/UsageAudioSpeechesParamsTest.kt": { "mode": "100644", @@ -10179,7 +10179,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateParamsTest.kt": { "mode": "100644", - "sha256": "714e66756ca439e44d60f53d315ceff868790c2b703faa1b674217fec9ab9dfd" + "sha256": "0c3241982756ffeb4b5766abcefd7dab40564b7a415c9f3959cfdca639a2ec96" }, "openai-java-core/src/test/kotlin/com/openai/models/audio/transcriptions/TranscriptionCreateResponseTest.kt": { "mode": "100644", @@ -11151,7 +11151,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialUpdateParamsTest.kt": { "mode": "100644", - "sha256": "d153fdba22d6efeaeae89571d3b0c754b6219ebb6de8874e0492ed2bec1413c5" + "sha256": "af448f2019545881772cd149c72aad8e9443e325a0aa2220201b253bf00e431e" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/agents/vaults/credentials/McpOAuthTokenEndpointAuthCreateParamTest.kt": { "mode": "100644", @@ -11343,7 +11343,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaCompactedResponseTest.kt": { "mode": "100644", - "sha256": "be4c620c226cd22fdedd0a82800c0305b16c3cbcdc7a2cfafa3e770f18fd1f53" + "sha256": "48388bfc61f245aa9eed2b920cb5960f84585bb22084f9180d114a8f0300b532" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaComputerActionTest.kt": { "mode": "100644", @@ -11483,7 +11483,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCompletedEventTest.kt": { "mode": "100644", - "sha256": "d212e57968cf7e9dd668c5679bca4c4ec80ccb1c812198935dab6c586d96d529" + "sha256": "eea9f28039033778c39aaec9c2ac87eb6ae67730dee75ecd4d2a992c9d1bd8cd" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseComputerToolCallOutputItemTest.kt": { "mode": "100644", @@ -11527,7 +11527,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCreatedEventTest.kt": { "mode": "100644", - "sha256": "27c70fc72d2e38a4fb9bcef63d8d0a56aa30e62e7e45b5d8cb1c01d263698c07" + "sha256": "9924816756cf5580436357fd96cad2ae844e65fc218a05dd9e427ca91f460473" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseCustomToolCallInputDeltaEventTest.kt": { "mode": "100644", @@ -11563,7 +11563,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFailedEventTest.kt": { "mode": "100644", - "sha256": "6f06045041cbcb1514ae1830476e93b38888809b765b124650d415b3123a505d" + "sha256": "3037e18f3c00532e8d7135992cd304e9c0ce41dcb170d0a30baa04721e032feb" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseFileSearchCallCompletedEventTest.kt": { "mode": "100644", @@ -11647,11 +11647,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInProgressEventTest.kt": { "mode": "100644", - "sha256": "7afe803ed7d5cfeb6339e1729ca282142f5a8bfe493dda0687c562f3125ad661" + "sha256": "3f76690b565ef6c56ac0df1ed9d1047e6187f87bc20dd6cb8f5ddda9e9042d2b" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseIncompleteEventTest.kt": { "mode": "100644", - "sha256": "8ad41aee51cbc6ea7db940740109fe982c6357439979f0e18bd3704c387960b9" + "sha256": "78af7cae314628610c86a2a28ee0b0b15df4920bdf5351bbab3dadcd2a0ac168" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseInjectCreatedEventTest.kt": { "mode": "100644", @@ -11783,7 +11783,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseQueuedEventTest.kt": { "mode": "100644", - "sha256": "7382efcccdb6d9293dafeaf992abc3306c78f30b7fb7e95b86097a9bcf7015c7" + "sha256": "bb720beccecd3107ce7c7585e95bfdd2c534e1cba9a3234ff2cf63c08bf8f16c" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseReasoningItemTest.kt": { "mode": "100644", @@ -11871,11 +11871,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseStreamEventTest.kt": { "mode": "100644", - "sha256": "ef6504d9c6676cc5b6ca55bd354bce38677d95c05494fc36aa7401561cf963a9" + "sha256": "2246f33d903a3710cf140daea9e742bc005b4fbb47f027e8f5ae2ecd1fd3c9e1" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseTest.kt": { "mode": "100644", - "sha256": "a47e842ed8131af68d19b01b544cc681bd69157c6195607bb2d82abef8afe1f6" + "sha256": "38a0bef85d86eb82b3b957c4d4d490ef2f094e6779ae16feed14631dffbfa2eb" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponseTextConfigTest.kt": { "mode": "100644", @@ -11919,11 +11919,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesClientEventTest.kt": { "mode": "100644", - "sha256": "bb927accec8116fa5d8dd9bce3c46f0e312ca4aa69bfbb843515681f9307241f" + "sha256": "4cdcdfa9b7e5fc89d0a9b51d2c0bb76771e2c43c2e46d3415e3400fa768d3fba" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaResponsesServerEventTest.kt": { "mode": "100644", - "sha256": "c2200164cae8bcc2bcaf3d8b3f2844412d5d0c10f549d38dd0919d2bf83597a8" + "sha256": "ddb7f278f248597dcc3afae87148b1f036d3bcbc228a236e15c18e3ea4e4da63" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/BetaSkillReferenceTest.kt": { "mode": "100644", @@ -11983,11 +11983,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCompactParamsTest.kt": { "mode": "100644", - "sha256": "81a0292fe65e971b08ca5273d8fe03e4d571b0893d635d31e13308ab75153d3b" + "sha256": "5bf5b956bc8485adadb32cce944e23cd6e5297fd5d56ab19049ea6551cd62926" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseCreateParamsTest.kt": { "mode": "100644", - "sha256": "8ca493b6797a57eeb7c8140f930f5ad260f36df2f8f99d51b5a736db68c37d65" + "sha256": "45aeeb75913f70bcd2c74a8d8bf1e5caf50d9e99a4ba3aa28e084ac23cc43b10" }, "openai-java-core/src/test/kotlin/com/openai/models/beta/responses/ResponseDeleteParamsTest.kt": { "mode": "100644", @@ -12331,7 +12331,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionChunkTest.kt": { "mode": "100644", - "sha256": "a747bd5e514c5ebfd02c28731a92e358aed2b723d881e143ad46daff07ae361d" + "sha256": "aeb2c25f232b571c93606014ed77a0a54b8eb445a4e9e7d55844048d404badb0" }, "openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionContentPartImageTest.kt": { "mode": "100644", @@ -12355,7 +12355,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParamsTest.kt": { "mode": "100644", - "sha256": "0f852374becf1103e78bf92f28d5cd58518a942773cfcc11e7809f16103796f6" + "sha256": "bc1c68e1c03c9b90f17b1fb4146b3d0bde203450cc77d040928f97d5491f1034" }, "openai-java-core/src/test/kotlin/com/openai/models/chat/completions/ChatCompletionCustomToolTest.kt": { "mode": "100644", @@ -12575,7 +12575,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/conversations/ConversationCreateParamsTest.kt": { "mode": "100644", - "sha256": "80f6bdadfa1a908c5b016b6f079e1801308574db39aaa877541c990d030ca7ac" + "sha256": "2da2b37983d9e7de7e8e80beba34bca2ba1b9193c0de6a3813d7e0424935185f" }, "openai-java-core/src/test/kotlin/com/openai/models/conversations/ConversationDeleteParamsTest.kt": { "mode": "100644", @@ -12871,7 +12871,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionCreateParamsTest.kt": { "mode": "100644", - "sha256": "b04ea9b0aa818be92036c57620938bdd60e32e70a25d121c328a9664af080de2" + "sha256": "c2aecb8534e9d7b1b72f730a7e841efef8341ceeca16720fc6da555a13a175c1" }, "openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionCreateResponseTest.kt": { "mode": "100644", @@ -12879,7 +12879,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionDeleteParamsTest.kt": { "mode": "100644", - "sha256": "d20d9eccb58a9d362a9a93893f278ba016ede9d5115509cdba18328ea64d5e05" + "sha256": "8cf4c4f4a3bf80ac0af65b6158a16dfa96c40695d35871d08371184ba0984878" }, "openai-java-core/src/test/kotlin/com/openai/models/finetuning/checkpoints/permissions/PermissionDeleteResponseTest.kt": { "mode": "100644", @@ -12927,7 +12927,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/finetuning/jobs/JobCreateParamsTest.kt": { "mode": "100644", - "sha256": "775b534abb191b8ae57fff83156d27ac9dc1a2f17a31eb0c2f339b8880ca78fe" + "sha256": "4d5b1cb1f6ac9a418203ba25069d729f54464a0ca89e5f15ce772d1ba1de0053" }, "openai-java-core/src/test/kotlin/com/openai/models/finetuning/jobs/JobListEventsPageResponseTest.kt": { "mode": "100644", @@ -13031,7 +13031,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/images/ImageEditParamsTest.kt": { "mode": "100644", - "sha256": "4ba52b77ff8e538b2944077fcbf560f40cdbc66c960e6e8bbd986bd16b1bbc78" + "sha256": "95e01dfc13ae86a917a80aa993c9eee592e3001e23d338e5a664bd694665a728" }, "openai-java-core/src/test/kotlin/com/openai/models/images/ImageEditPartialImageEventTest.kt": { "mode": "100644", @@ -13055,7 +13055,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/images/ImageGenerateParamsTest.kt": { "mode": "100644", - "sha256": "07ff186390dd04de2c169221b5643e54cb745b37636ca08f3f9ca18f9b6dbc9f" + "sha256": "3643be8565caff3967f5b154e2b121053364a67eed2d6a5abc00c96bf33a88e3" }, "openai-java-core/src/test/kotlin/com/openai/models/images/ImageTest.kt": { "mode": "100644", @@ -13271,7 +13271,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/live/ServerEventTest.kt": { "mode": "100644", - "sha256": "ecbf82bd2a39a553c0adc9021132082ca136a40ed1c35763f83651c0b16983b6" + "sha256": "76c6c151d69d989a6d1a9d4c171d85d5428d84f0e6a7bca74c7e58ae35e98bdf" }, "openai-java-core/src/test/kotlin/com/openai/models/live/SessionCloseEventTest.kt": { "mode": "100644", @@ -13307,7 +13307,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/live/SessionUpdatedEventTest.kt": { "mode": "100644", - "sha256": "0001d3a81db93c69982f41f9ab5218b8987d795c9fe6db6fb5aa37d0bdc1ba8f" + "sha256": "64288a5391a0eb11b7301de52ad33e8605890f0c76cf4730438013a87520dfd5" }, "openai-java-core/src/test/kotlin/com/openai/models/live/SessionUsageTest.kt": { "mode": "100644", @@ -13331,7 +13331,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/live/forks/ForkServerEventTest.kt": { "mode": "100644", - "sha256": "8c014345e86b3050b99bd1940ed8e776f6246598b533fa78e76c15a64579302b" + "sha256": "b1f795fbad9cb25a42e2d120f8995aa2f115a270c13c7379834578d2c6cef3bb" }, "openai-java-core/src/test/kotlin/com/openai/models/live/sessions/SessionAcceptParamsTest.kt": { "mode": "100644", @@ -13367,11 +13367,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/live/sideband/SidebandServerEventTest.kt": { "mode": "100644", - "sha256": "4dda225eddd4bda6c00912a2920ce56e4cda57455489ff88ecde48baff2f6c0c" + "sha256": "2522e207930af44a3433a5ade455f48b86e96f0593e422d4709fea8e23fd25e2" }, "openai-java-core/src/test/kotlin/com/openai/models/models/ModelDeleteParamsTest.kt": { "mode": "100644", - "sha256": "d1fa52a95f1f121d062315c98608e437390412d84dc0008cbe491541d27875cc" + "sha256": "9e7884f4c15529164fcd438a2fa7f69c71a3e45dc52aac2f1ffcb55691a42166" }, "openai-java-core/src/test/kotlin/com/openai/models/models/ModelDeletedTest.kt": { "mode": "100644", @@ -13387,7 +13387,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/models/ModelRetrieveParamsTest.kt": { "mode": "100644", - "sha256": "12fb00035fd001a0866b0cc75a99b2801aec8718f6007eb488d97e294e3e485c" + "sha256": "fba4d4c2822bd2433fdb4c2630e55731299b49165ff05de506e47d74706bcb2b" }, "openai-java-core/src/test/kotlin/com/openai/models/models/ModelTest.kt": { "mode": "100644", @@ -13575,7 +13575,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeClientEventTest.kt": { "mode": "100644", - "sha256": "2326811222149343dd9006ba08526350ab10dbd79fc938937b1cfbd915e8ce14" + "sha256": "60df3acda20ccbdefc6695134dfe59f8b9a70b9ca2159926579137553716c670" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeConversationItemAssistantMessageTest.kt": { "mode": "100644", @@ -13675,11 +13675,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeServerEventTest.kt": { "mode": "100644", - "sha256": "7f264a990153bbcd2c523514680a808bb16cf7148f7a0524c400bedf370cb8a2" + "sha256": "2c5d24f2dbe815f1ce37c0cf73ffcc1e87eeef2e9b2cecbb2f18c8f446f5dff1" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeSessionCreateRequestTest.kt": { "mode": "100644", - "sha256": "e9b4135fbb74cf28ce0042c41b3da2fb63e993183d5d638ebdac830a66eaa686" + "sha256": "15bef1adc3b0830810c718d8b442a75907418861241109e3e5d3b2a1342614fb" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/RealtimeSessionTest.kt": { "mode": "100644", @@ -13871,15 +13871,15 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionCreatedEventTest.kt": { "mode": "100644", - "sha256": "af601fced8c55c2df559ad20447b451d3e67af4dfcdf08cbe0017653212cddbd" + "sha256": "1873ed99628fe918e73eabbae5dc7edf0663e5ab088df2fd8929dfaf80e07a27" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdateEventTest.kt": { "mode": "100644", - "sha256": "b72dd34040b350ec8d189564b63f2f219a837fdfeecdafd275a935fe5bbf272d" + "sha256": "6e93c60652ec762205834c204e75ee68b5ad79910a59d1b81b8838ba69219a94" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/SessionUpdatedEventTest.kt": { "mode": "100644", - "sha256": "c3e168bf39de2a0a6603dbe92647b5376369f11284fb80395b28fb143715eaac" + "sha256": "fcde5f5e97db8c994f815842025b44dbf79f1d7a2ddf308d015671e0c4426e75" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/TranscriptionSessionUpdateTest.kt": { "mode": "100644", @@ -13891,11 +13891,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallAcceptParamsTest.kt": { "mode": "100644", - "sha256": "0237f9a673b7e0b0695d28d83b4ece125ef3fc58119b5269218242f2d7d6f3a9" + "sha256": "ab81c4dc0c0a327a156097a46a0e698aba8bfb4de11047bab96da48a1abb0ab1" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallCreateParamsTest.kt": { "mode": "100644", - "sha256": "c2f1b7499015be40b54ad2672f2ed5168db69cd6a85cbd581494039f7729fd5b" + "sha256": "160b680a2dda6cb703bdcbe8943436415a3a112c0b67864256a02e4e0be01b83" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/calls/CallHangupParamsTest.kt": { "mode": "100644", @@ -13911,15 +13911,15 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateParamsTest.kt": { "mode": "100644", - "sha256": "3368cab959f31028bf75892c4ffacca7cfb7a586b4a1dcbb538c0af0c77ae5ae" + "sha256": "5897ca01f2d7e4eca81d814a34d026659833b13dd1ac38ae2f4b6d2371848a0e" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/ClientSecretCreateResponseTest.kt": { "mode": "100644", - "sha256": "38982c37d7f070d1da5efb031dd5d4be67066339af985f80959fff33766b25b7" + "sha256": "b0fd969f089aa8704902bb2d7cd9900c6f1b7ba7e63283fbb73ebae2c84e708a" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/RealtimeSessionCreateResponseTest.kt": { "mode": "100644", - "sha256": "0c9eb8635e194b83998f5219f33766960f67cffd073a00a05f882e73db686db9" + "sha256": "3333d2e3640078474d5d68b9dd60679c2274ba2dc242ea92f1b6456c6206ca33" }, "openai-java-core/src/test/kotlin/com/openai/models/realtime/clientsecrets/RealtimeTranscriptionSessionCreateResponseTest.kt": { "mode": "100644", @@ -13939,7 +13939,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/CompactedResponseTest.kt": { "mode": "100644", - "sha256": "0fb9f0ce553e6dfb2ba7f74d16ce2b31e9ee267f3d43ba58a33a3c38e4112399" + "sha256": "5c743290d4edcbfdf9e4905fe2eb5a46e577191172fa90c57201fa21e1a71630" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ComputerActionTest.kt": { "mode": "100644", @@ -14071,7 +14071,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompactParamsTest.kt": { "mode": "100644", - "sha256": "6c6e842355fda44342d3bac853421d3e9d73e3b78ed39a8f31b1d354872c10b4" + "sha256": "e793979f94130d4a11ab41be64d528d5ed067e92e33ba058f40ceccd54bed3f2" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompactionCompactingEventTest.kt": { "mode": "100644", @@ -14087,7 +14087,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCompletedEventTest.kt": { "mode": "100644", - "sha256": "70a7ddba48f6a7a7186d906c1b97886fc022976e7a896ca3d7d5ded955e94649" + "sha256": "ec764a6f1ca940264a02658331d8116ac590bf0fd1f0118b1ebebcf758cc95fa" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseComputerToolCallOutputItemTest.kt": { "mode": "100644", @@ -14131,11 +14131,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreateParamsTest.kt": { "mode": "100644", - "sha256": "42e7bca36721d7082d1e49254cc638beb936aee2314613cc99501b2f8dd772f7" + "sha256": "6e1744db431a6044c0881b9ddffcbc853dfd129fac358a11c88178aa11414239" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCreatedEventTest.kt": { "mode": "100644", - "sha256": "00ab5f43a71c674f8cb2936b219800d8f9bb111e0e3afbb9b306250ce1cbb65e" + "sha256": "d706e1e2b7f8b8bd507852b2fe7b892e229934d385bc8f50fb266945f35be961" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseCustomToolCallInputDeltaEventTest.kt": { "mode": "100644", @@ -14175,7 +14175,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFailedEventTest.kt": { "mode": "100644", - "sha256": "896d6751c66a46bcef53c65a4239b687f6949c35c3212533606e6fb4a87a27ec" + "sha256": "8329867471af5d32fe0bd50cb809714c6991e571d8a140975b6a6e1a3d242b89" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseFileSearchCallCompletedEventTest.kt": { "mode": "100644", @@ -14259,11 +14259,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInProgressEventTest.kt": { "mode": "100644", - "sha256": "2a37e4b3052172f61aa3296cf0d59730d2f9275eeae93e43abc4a8cfac980e92" + "sha256": "256f93f4cb302b2028ed7035a9c3f586e6e0d6475ee45851b7554182399e9d03" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseIncompleteEventTest.kt": { "mode": "100644", - "sha256": "f107f136737b5ede89f3adba3d501e3fda1cf8b4701ca70d47537999cc43bf6b" + "sha256": "e68a489d92ecc74176b0c74d7ef40012f110d8cda1c48fadf2e4b2d598453e8d" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseInputAudioTest.kt": { "mode": "100644", @@ -14383,7 +14383,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseQueuedEventTest.kt": { "mode": "100644", - "sha256": "b3153ad108411cfe0e7f2953eb28c9236a84ddb9fa69593823603e02eb95ab49" + "sha256": "7d4c870098d987bbf169d47c16a45c50ccd82b1a31a2e1ce7557dcd64e10184f" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseReasoningItemTest.kt": { "mode": "100644", @@ -14475,11 +14475,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseStreamEventTest.kt": { "mode": "100644", - "sha256": "752b5c93ad7f2679d19bedc81f96f687a8fbd837e1b6561cdcfa8718b664dd97" + "sha256": "67180b7e30b1015f070bf23e99b896aa33c95d0dba5aa45bea2ecd9fd8e35c77" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseTest.kt": { "mode": "100644", - "sha256": "10d32e2ed78a6eb088e01f95cc0dafbd63df18050ee563b563fa5f3e0a2541b0" + "sha256": "d2c1bc6ec82bc22ee097c1bd9278ee91a19abf452fb8f3718abd565668343a35" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponseTextConfigTest.kt": { "mode": "100644", @@ -14523,11 +14523,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesClientEventTest.kt": { "mode": "100644", - "sha256": "ed8ccb306a7c2e270e5914cf2a56b5253dae2bf6a76c72e84509cf309f26fac7" + "sha256": "0dff5f243196419725fc6ba6b6888265087885ceb7e0e21a46ae2dd4c2576f06" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/ResponsesServerEventTest.kt": { "mode": "100644", - "sha256": "66e83aa057779bc2fd9b0a7c43caccc56998794159bc61f332c4dec398309c78" + "sha256": "2829d609d2c2be570c2d7a00cce574e0783cd22ff8fff37fdf0e3255dca4d67f" }, "openai-java-core/src/test/kotlin/com/openai/models/responses/SkillReferenceTest.kt": { "mode": "100644", @@ -15099,7 +15099,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/ServiceParamsTest.kt": { "mode": "100644", - "sha256": "16b758ff22a7d12f7146a837a0e3105bb39a7198e427632746b360c9dabb632e" + "sha256": "987b35ffec38cc8399ec581e9e44be20e12dd39ae240a741cdbeeb56f08eec4c" }, "openai-java-core/src/test/kotlin/com/openai/services/async/BatchServiceAsyncPaginationContractTest.kt": { "mode": "100644", @@ -15131,7 +15131,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/ConversationServiceAsyncTest.kt": { "mode": "100644", - "sha256": "52ee3519973842e8080e385afb67ae9375d3ecec98544f8fe6f58d0686e347fe" + "sha256": "aa8e4f0c4646ac7af5ea4c4e994e501367cc4f804c906dba24e84a658b1fdbc2" }, "openai-java-core/src/test/kotlin/com/openai/services/async/DecisionServiceAsyncTest.kt": { "mode": "100644", @@ -15159,11 +15159,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "672884dd126e5004f8dc464bb826057606fd41f9542ac03d9f71e9a1a166cda2" + "sha256": "c80df297bbcadd7e44f040cef0f64623eda44bc6329aa5d9d758b2b83c00e329" }, "openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncTest.kt": { "mode": "100644", - "sha256": "e3104586d726c19c644df328bd5626b08bc3fed6e4d35d52c298f30912b810e8" + "sha256": "e0a0cba086ad222f710324756898d391c4e4809087fd30b5eb5b1ef91322d5f3" }, "openai-java-core/src/test/kotlin/com/openai/services/async/LiveServiceAsyncTest.kt": { "mode": "100644", @@ -15171,7 +15171,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/ModelServiceAsyncTest.kt": { "mode": "100644", - "sha256": "c0cadeb2941da3655fdd1c22412bd132a74ffa39ce05f368cd7c04b5a190095f" + "sha256": "06e5725f916f0ce16f63aa1adb904d35358cfce940c734ed69e278b54af88faa" }, "openai-java-core/src/test/kotlin/com/openai/services/async/ModerationServiceAsyncTest.kt": { "mode": "100644", @@ -15179,11 +15179,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "3df24ef075b748840b04eeb8993830b1aa9fc0be646326b841626e102e054090" + "sha256": "58fab4ba561497e0a8e2a83b17798b8485e2d45781fe4ca53172b43642cbc639" }, "openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncTest.kt": { "mode": "100644", - "sha256": "d09866955f38f3f0cd42f9d5bd5ff5c673d307ad457289ed30a67d3bb848a2f7" + "sha256": "b1042bd9b52b2f9812a3828aa7887c4e153b767869b12260d582761c7c792620" }, "openai-java-core/src/test/kotlin/com/openai/services/async/SkillServiceAsyncPaginationContractTest.kt": { "mode": "100644", @@ -15307,7 +15307,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/SpendLimitServiceAsyncTest.kt": { "mode": "100644", - "sha256": "e2d9f4f7608701e896c56fda202c3c4f9919188dc8d9913f0e6cbb3bd2aceaa8" + "sha256": "9ccb37da33b03abba93758b2d9efd0afed4b97c79524bad084eec4171bd44f53" }, "openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/UsageServiceAsyncTest.kt": { "mode": "100644", @@ -15419,7 +15419,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/projects/SpendLimitServiceAsyncTest.kt": { "mode": "100644", - "sha256": "b7e9bfee19cdd322d9f516543a747141baab776e0ed9ef7d1d57cc1a6f7d4f35" + "sha256": "63f584e9fbe121107bb0d806fec74579cada81a5f5f0e66c631162b4128a1897" }, "openai-java-core/src/test/kotlin/com/openai/services/async/admin/organization/projects/UserServiceAsyncPaginationContractTest.kt": { "mode": "100644", @@ -15471,11 +15471,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "ee1ca6bcbe058d96765095ad2335a952c73b87e9d73b74a595fb43aafde51f1d" + "sha256": "00f990f416323926d0ad7bf3bfdebda05eddc1a2800b04b88a94309c36796d51" }, "openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncTest.kt": { "mode": "100644", - "sha256": "a7df025dc5ce7dc9e3bb62f994265635a40c623db307b9f49565ef2b74b0458b" + "sha256": "ebe670e54e32fe9eb7bcabf6f6f8b08e57a75a82ef357e6630e401bb50397c7b" }, "openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranslationServiceAsyncTest.kt": { "mode": "100644", @@ -15511,11 +15511,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "8f9ea0f0dc764b674378171d50acd15f60881037f48fb6ad597d6ee226d1e904" + "sha256": "c8ceaadace320eadfbea2b0602f5264d78d1745a8e15022aee31f5fa8e2dd9dd" }, "openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncTest.kt": { "mode": "100644", - "sha256": "0af653ee6a8b94cf1a8cfdab284143d920763a030d40ec567843dfe8540e5b32" + "sha256": "80dc77eb9b4643b0b338a7ea5804a938877cb0fb6ebd24eb08ec5fd30d596b88" }, "openai-java-core/src/test/kotlin/com/openai/services/async/beta/ThreadServiceAsyncStreamingServerContractTest.kt": { "mode": "100644", @@ -15663,7 +15663,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/vaults/CredentialServiceAsyncTest.kt": { "mode": "100644", - "sha256": "a06738763c9aa5c15223fc4eefcbb6a993c7db3003ee58fc1eff2d073bbec464" + "sha256": "0a8da533dc2fe933569c77723a86a36d6d68bf217789e526d96b27d5b7b6de9f" }, "openai-java-core/src/test/kotlin/com/openai/services/async/beta/chatkit/SessionServiceAsyncTest.kt": { "mode": "100644", @@ -15723,11 +15723,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "1566d332fcce84679208870e8e27316d33f48e384eb96dbdfeef7b658281c435" + "sha256": "683ded54a1ec89c03cfdb18ea0b4e6dd9d5309277c181d45494440439ea1d6e3" }, "openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncTest.kt": { "mode": "100644", - "sha256": "260641592b242cf2be6e48b13a0f4051508e7ada5bb7b7abf3d73660975fac76" + "sha256": "f252cc903b74353843d2cdd6b8f3216e0e5d2d927581aeb399a8235c9601015c" }, "openai-java-core/src/test/kotlin/com/openai/services/async/chat/completions/MessageServiceAsyncPaginationContractTest.kt": { "mode": "100644", @@ -15779,7 +15779,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/JobServiceAsyncTest.kt": { "mode": "100644", - "sha256": "46be31bf27ad2c1c380df6d81199815d4299d866fd7e243fca3ad61588ab868a" + "sha256": "54f44548391afc41aa61ecf9fb01b64679ce918885ab0df41f69d975dba169fb" }, "openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/alpha/GraderServiceAsyncTest.kt": { "mode": "100644", @@ -15791,7 +15791,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncTest.kt": { "mode": "100644", - "sha256": "4bb2dc59e6358899aa81ef3738f6f21698ca25c480da02e316046094182fa07d" + "sha256": "4596d17f775526bfd8fcc4072f48be8733424737a2d48eab5a437605b2ed8e0d" }, "openai-java-core/src/test/kotlin/com/openai/services/async/finetuning/jobs/CheckpointServiceAsyncPaginationContractTest.kt": { "mode": "100644", @@ -15807,11 +15807,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/async/realtime/CallServiceAsyncTest.kt": { "mode": "100644", - "sha256": "dd5b8d75c73824e5331425277897318f3642bc4dc87adeba9b41fa302a3ea557" + "sha256": "b212469617ef6cbd2bbe8d32a7350e17945b3d29032a880bd9e8e7a69234ca22" }, "openai-java-core/src/test/kotlin/com/openai/services/async/realtime/ClientSecretServiceAsyncTest.kt": { "mode": "100644", - "sha256": "c8ff10a1fbe64ed1b4ece9574df5d4b2e99ca42ce197034914295aab25891c79" + "sha256": "3ff55450e025cdf8ce4ecaaccedcc5ec0ebb9e1f9dd6c74d840ccc2112f6a278" }, "openai-java-core/src/test/kotlin/com/openai/services/async/realtime/translations/ClientSecretServiceAsyncTest.kt": { "mode": "100644", @@ -15907,7 +15907,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ConversationServiceTest.kt": { "mode": "100644", - "sha256": "0678d425920917358bc5e237e2cbcf298c883310a2579a128282189aac3f7c33" + "sha256": "173a358b37ab01dc51d4a4963dd234241d7aa5e1dd69238a0fa859d0bbf42bec" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/DecisionServiceTest.kt": { "mode": "100644", @@ -15935,11 +15935,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "14811d1d86907e66920b0a00ac9a0678ba02967d4f83dc98039048968d44e3be" + "sha256": "3a8dd0701a683fcf79e1b9abdc286ebd742ec844923b324a25332247b52e5774" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceTest.kt": { "mode": "100644", - "sha256": "a24cff7449809fa1bf91935bac34f01ed764a68cc4d0954fd5176812874bf98c" + "sha256": "46042a2f0740a4bbce13eaa1da70553fc868b421f52110d7d68c7409807a5a57" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/LiveServiceTest.kt": { "mode": "100644", @@ -15947,7 +15947,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ModelServiceTest.kt": { "mode": "100644", - "sha256": "0a139dda7963599eae438927b6a61782dc7002af0e27f10e4f3d346f561f854f" + "sha256": "608916f64512e0e759b6ac134aa7584bbe4e6765b5fee65f11776949f710f792" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ModerationServiceTest.kt": { "mode": "100644", @@ -15955,11 +15955,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "f3e907cfb83bb81d245b0466dd95755b7f8f7c89f70e76236207d8786b35aef2" + "sha256": "ec1294950e85287dd813850d1ec1b53b69b151faeac0835fb4d0f66520de51ec" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceTest.kt": { "mode": "100644", - "sha256": "fb4ddfb8f7dd36d5d1761c2ea2dae4dc113f235ad8d55d75fed1313393402516" + "sha256": "e0aebe8532e489c496d4eb5a03bbe4fe4ff7d5436594e684bdb998779364fafe" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/SkillServicePaginationContractTest.kt": { "mode": "100644", @@ -16083,7 +16083,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/SpendLimitServiceTest.kt": { "mode": "100644", - "sha256": "87f6e3308c8c207e0d5b04a68a02fd96827d1427eb1370824c24ff83185fda99" + "sha256": "d582e5a2e5d34abaeddeca90f830fe43b1889c6dcfe8a0a5b831ee2dc3b2541b" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/UsageServiceTest.kt": { "mode": "100644", @@ -16195,7 +16195,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/projects/SpendLimitServiceTest.kt": { "mode": "100644", - "sha256": "d7112b0e1d9f3ff6beb8565a0c2ac8afbd30760eb8b3a2bad348ea37e4da08a7" + "sha256": "7cec4b5a8b0b15b501453f100401b98daf9030f23e3f593b11ba742cc2e8bff9" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/admin/organization/projects/UserServicePaginationContractTest.kt": { "mode": "100644", @@ -16247,11 +16247,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "4275b6a0632f018e018ca7d390cdff045b444b6479f446eedf0b08265e3f8ff8" + "sha256": "fed41e8d6ac23b514125ac788de2b420db550b977fc0c490f7a44446d4d8e8fa" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceTest.kt": { "mode": "100644", - "sha256": "47b8bcf4f365921abc6ea61148a52c014a93b1430f52cfa8f4c7a6188ec03b3c" + "sha256": "8423d151f718a2ee06cb81b7da8f4f31b66d8d2da3162bd3c0873e00be0f88f2" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranslationServiceTest.kt": { "mode": "100644", @@ -16287,11 +16287,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "93a98db338aed7e517781a6d81ca72d9dfd7e449000206a37f63e49d5913a42f" + "sha256": "c178661db38fe6fb834be158d1dfe2ee47e69a6c6324f8ae1335c0af8c565764" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceTest.kt": { "mode": "100644", - "sha256": "553597b495c08238fe4d559f5a4e7b6cca0015136f61e90784b188dabcc8b8cd" + "sha256": "0cc998d2719783999d9a082ad91ba55d08af22808aab25462486295676d85bf0" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ThreadServiceStreamingServerContractTest.kt": { "mode": "100644", @@ -16439,7 +16439,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/vaults/CredentialServiceTest.kt": { "mode": "100644", - "sha256": "67f33396818e61f312b63ae347a6be616a7d51d97dae643dfbb1ff58e6d7f6e6" + "sha256": "6c6af3935110065888103210d642da174ca97222137da0925997b29b1567c781" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/chatkit/SessionServiceTest.kt": { "mode": "100644", @@ -16499,11 +16499,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceStreamingServerContractTest.kt": { "mode": "100644", - "sha256": "3764c26cbd958514dc97885268244721668a9fc08c61c6e982704abc677910fb" + "sha256": "e1cc17bc24e24980672212f735360dd41081a9f1397e12d6529c5280cf197b3c" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceTest.kt": { "mode": "100644", - "sha256": "247f439b5a7f17e5dcc5419ee4d4de5a7c9ce9f7ba74af528b5b31d8d9018de6" + "sha256": "7a1ae0d438d7a8f7d0fbc4ba97157153e466208440f03fd0a6d58e48dce67e69" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/completions/MessageServicePaginationContractTest.kt": { "mode": "100644", @@ -16555,7 +16555,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/JobServiceTest.kt": { "mode": "100644", - "sha256": "442285810739097c8a462ede6dcc092e477d9a4667358b9b39b2b161b9eef888" + "sha256": "812c69576ebc844efb58a613805ef773aeeac78033cbf2c86e2873958142305f" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/alpha/GraderServiceTest.kt": { "mode": "100644", @@ -16567,7 +16567,7 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/checkpoints/PermissionServiceTest.kt": { "mode": "100644", - "sha256": "052e685fd3283de7dbecf3167c2207634648ca8a3b453a10ffb6d83e3ead36ed" + "sha256": "7344dff1685678fbe38e7bb48cb032254c1dba0dc7f147bed41be3e5ea51528a" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/finetuning/jobs/CheckpointServicePaginationContractTest.kt": { "mode": "100644", @@ -16583,11 +16583,11 @@ }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/CallServiceTest.kt": { "mode": "100644", - "sha256": "5cddd696432c9cc3269da77bb99a0a5e37e8b144f5950a34586fdf18e5f93a05" + "sha256": "13311967ae573c0baad52f74552787b65bc17cb3b9684d622499d3ef10acd1a2" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/ClientSecretServiceTest.kt": { "mode": "100644", - "sha256": "1c03329b3b34491e07b663e1a88956deda73391d1446f2928593986ea3cd1d84" + "sha256": "e8b3f061c5577002dd70017cee8a106e67fab803a2fa9c456ccefd36362ef0e8" }, "openai-java-core/src/test/kotlin/com/openai/services/blocking/realtime/translations/ClientSecretServiceTest.kt": { "mode": "100644",