Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.1.2"
".": "1.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 5 additions & 0 deletions pkg/cmd/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion pkg/cmd/response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
})

Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package cmd

const Version = "1.1.2" // x-release-please-version
const Version = "1.2.0" // x-release-please-version
Loading