From 5901109e1b3b10b3802fcd8581a9c4e4a5658fc9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 14:33:07 +0000 Subject: [PATCH 1/2] feat(api): add service_tier parameter to responses compact method --- .stats.yml | 4 ++-- pkg/cmd/response.go | 5 +++++ pkg/cmd/response_test.go | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 605a6b0..a76fd08 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 220 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-371f497afe4d6070f6e252e5febbe8f453c7058a8dff0c26a01b4d88442a4ac2.yml -openapi_spec_hash: d39f46e8fda45f77096448105efd175a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-50d816559ef0935e64d07789ff936a2b762e26ab0714a2fa6bc06d06d4484294.yml +openapi_spec_hash: c5d8f37edbf66c1fef627d787b4c54fd config_hash: b64135fff1fe9cf4069b9ecf59ae8b07 diff --git a/pkg/cmd/response.go b/pkg/cmd/response.go index afb104c..1c4703a 100644 --- a/pkg/cmd/response.go +++ b/pkg/cmd/response.go @@ -354,6 +354,11 @@ var responsesCompact = cli.Command{ Usage: "How long to retain a prompt cache entry created by this request.", BodyPath: "prompt_cache_retention", }, + &requestflag.Flag[*string]{ + Name: "service-tier", + Usage: "The service tier to use for this request.", + BodyPath: "service_tier", + }, }, Action: handleResponsesCompact, HideHelpCommand: true, diff --git a/pkg/cmd/response_test.go b/pkg/cmd/response_test.go index 970cbe6..b830076 100644 --- a/pkg/cmd/response_test.go +++ b/pkg/cmd/response_test.go @@ -216,6 +216,7 @@ func TestResponsesCompact(t *testing.T) { "--previous-response-id", "resp_123", "--prompt-cache-key", "prompt_cache_key", "--prompt-cache-retention", "in_memory", + "--service-tier", "auto", ) }) @@ -227,7 +228,8 @@ func TestResponsesCompact(t *testing.T) { "instructions: instructions\n" + "previous_response_id: resp_123\n" + "prompt_cache_key: prompt_cache_key\n" + - "prompt_cache_retention: in_memory\n") + "prompt_cache_retention: in_memory\n" + + "service_tier: auto\n") mocktest.TestRunMockTestWithPipeAndFlags( t, pipeData, "--api-key", "string", From 60a1c8dc54055cc4ff8c219abaeeeffbad61efc3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 14:33:37 +0000 Subject: [PATCH 2/2] release: 1.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pkg/cmd/version.go | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9c6a481..d0ab664 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.2" + ".": "1.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 73d0667..f652007 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.2.0 (2026-05-11) + +Full Changelog: [v1.1.2...v1.2.0](https://github.com/openai/openai-cli/compare/v1.1.2...v1.2.0) + +### Features + +* **api:** add service_tier parameter to responses compact method ([5901109](https://github.com/openai/openai-cli/commit/5901109e1b3b10b3802fcd8581a9c4e4a5658fc9)) + + +### Documentation + +* update README examples ([7e43c6a](https://github.com/openai/openai-cli/commit/7e43c6ad73326fa697a9d1c092bf5886bb0ee0d4)) + ## 1.1.2 (2026-05-07) Full Changelog: [v1.1.1...v1.1.2](https://github.com/openai/openai-cli/compare/v1.1.1...v1.1.2) diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go index e8cefce..a9464c4 100644 --- a/pkg/cmd/version.go +++ b/pkg/cmd/version.go @@ -2,4 +2,4 @@ package cmd -const Version = "1.1.2" // x-release-please-version +const Version = "1.2.0" // x-release-please-version