-
Notifications
You must be signed in to change notification settings - Fork 53
release: 0.72.0 #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stainless-app
merged 4 commits into
main
from
release-please--branches--main--changes--next
Jul 23, 2026
Merged
release: 0.72.0 #312
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
da769b4
feat(stlc): configurable CI runner and private-production-repo suppor…
stainless-app[bot] dcff6be
feat(api): accept `None` for prompt_cache_key/safety_identifier
stainless-app[bot] 06dff48
feat(api): add support for `spend_limit` admin apis
stainless-app[bot] a800399
release: 0.72.0
stainless-app[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "0.71.0" | ||
| ".": "0.72.0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| configured_endpoints: 271 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-8ed7dcb0d163e7f5205dbe172d6ad5b7ce367b23c20629830e39a0aee920a029.yml | ||
| openapi_spec_hash: 011cdae0c67909fb80a4a5eb54ca5bca | ||
| config_hash: 896f0f71bc7d1ee09435813cdef97523 | ||
| configured_endpoints: 277 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-0650ebae454b4200491980d7663cb7ceabcff90dcb3ed9f67c3bca3e861a2bf6.yml | ||
| openapi_spec_hash: e9576bced964246b7e685a5ad30afffa | ||
| config_hash: 43e311595bcc4fb6b32eba0684de48d8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ GIT | |
| PATH | ||
| remote: . | ||
| specs: | ||
| openai (0.71.0) | ||
| openai (0.72.0) | ||
| base64 | ||
| cgi | ||
| connection_pool | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
151 changes: 151 additions & 0 deletions
151
lib/openai/models/admin/organization/organization_spend_limit.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,151 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| module OpenAI | ||
| module Models | ||
| module Admin | ||
| module Organization | ||
| # @see OpenAI::Resources::Admin::Organization::SpendLimit#retrieve | ||
| class OrganizationSpendLimit < OpenAI::Internal::Type::BaseModel | ||
| # @!attribute currency | ||
| # The currency for the threshold amount. Currently, only `USD` is supported. | ||
| # | ||
| # @return [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Currency] | ||
| required :currency, union: -> { OpenAI::Admin::Organization::OrganizationSpendLimit::Currency } | ||
|
|
||
| # @!attribute enforcement | ||
| # The current enforcement state of the hard spend limit. | ||
| # | ||
| # @return [OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement] | ||
| required :enforcement, -> { OpenAI::Admin::Organization::OrganizationSpendLimit::Enforcement } | ||
|
|
||
| # @!attribute interval | ||
| # The time interval for evaluating spend against the threshold. Currently, only | ||
| # `month` is supported. | ||
| # | ||
| # @return [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Interval] | ||
| required :interval, union: -> { OpenAI::Admin::Organization::OrganizationSpendLimit::Interval } | ||
|
|
||
| # @!attribute object | ||
| # The object type, which is always `organization.spend_limit`. | ||
| # | ||
| # @return [Symbol, :"organization.spend_limit"] | ||
| required :object, const: :"organization.spend_limit" | ||
|
|
||
| # @!attribute threshold_amount | ||
| # The hard spend limit amount, in cents. | ||
| # | ||
| # @return [Integer] | ||
| required :threshold_amount, Integer | ||
|
|
||
| # @!method initialize(currency:, enforcement:, interval:, threshold_amount:, object: :"organization.spend_limit") | ||
| # Some parameter documentations has been truncated, see | ||
| # {OpenAI::Models::Admin::Organization::OrganizationSpendLimit} for more details. | ||
| # | ||
| # Represents a hard spend limit configured at the organization level. | ||
| # | ||
| # @param currency [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Currency] The currency for the threshold amount. Currently, only `USD` is supported. | ||
| # | ||
| # @param enforcement [OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement] The current enforcement state of the hard spend limit. | ||
| # | ||
| # @param interval [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Interval] The time interval for evaluating spend against the threshold. Currently, only `m | ||
| # | ||
| # @param threshold_amount [Integer] The hard spend limit amount, in cents. | ||
| # | ||
| # @param object [Symbol, :"organization.spend_limit"] The object type, which is always `organization.spend_limit`. | ||
|
|
||
| # The currency for the threshold amount. Currently, only `USD` is supported. | ||
| # | ||
| # @see OpenAI::Models::Admin::Organization::OrganizationSpendLimit#currency | ||
| module Currency | ||
| extend OpenAI::Internal::Type::Union | ||
|
|
||
| variant String | ||
|
|
||
| variant const: -> { OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Currency::USD } | ||
|
|
||
| # @!method self.variants | ||
| # @return [Array(String, Symbol)] | ||
|
|
||
| define_sorbet_constant!(:Variants) do | ||
| T.type_alias { T.any(String, OpenAI::Admin::Organization::OrganizationSpendLimit::Currency::TaggedSymbol) } | ||
| end | ||
|
|
||
| # @!group | ||
|
|
||
| USD = :USD | ||
|
|
||
| # @!endgroup | ||
| end | ||
|
|
||
| # @see OpenAI::Models::Admin::Organization::OrganizationSpendLimit#enforcement | ||
| class Enforcement < OpenAI::Internal::Type::BaseModel | ||
| # @!attribute status | ||
| # Whether the hard spend limit is currently enforcing. | ||
| # | ||
| # @return [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement::Status] | ||
| required :status, union: -> { OpenAI::Admin::Organization::OrganizationSpendLimit::Enforcement::Status } | ||
|
|
||
| # @!method initialize(status:) | ||
| # The current enforcement state of the hard spend limit. | ||
| # | ||
| # @param status [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement::Status] Whether the hard spend limit is currently enforcing. | ||
|
|
||
| # Whether the hard spend limit is currently enforcing. | ||
| # | ||
| # @see OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement#status | ||
| module Status | ||
| extend OpenAI::Internal::Type::Union | ||
|
|
||
| variant String | ||
|
|
||
| variant const: -> { OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement::Status::INACTIVE } | ||
|
|
||
| variant const: -> { OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Enforcement::Status::ENFORCING } | ||
|
|
||
| # @!method self.variants | ||
| # @return [Array(String, Symbol)] | ||
|
|
||
| define_sorbet_constant!(:Variants) do | ||
| T.type_alias { T.any(String, OpenAI::Admin::Organization::OrganizationSpendLimit::Enforcement::Status::TaggedSymbol) } | ||
| end | ||
|
|
||
| # @!group | ||
|
|
||
| INACTIVE = :inactive | ||
| ENFORCING = :enforcing | ||
|
|
||
| # @!endgroup | ||
| end | ||
| end | ||
|
|
||
| # The time interval for evaluating spend against the threshold. Currently, only | ||
| # `month` is supported. | ||
| # | ||
| # @see OpenAI::Models::Admin::Organization::OrganizationSpendLimit#interval | ||
| module Interval | ||
| extend OpenAI::Internal::Type::Union | ||
|
|
||
| variant String | ||
|
|
||
| variant const: -> { OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Interval::MONTH } | ||
|
|
||
| # @!method self.variants | ||
| # @return [Array(String, Symbol)] | ||
|
|
||
| define_sorbet_constant!(:Variants) do | ||
| T.type_alias { T.any(String, OpenAI::Admin::Organization::OrganizationSpendLimit::Interval::TaggedSymbol) } | ||
| end | ||
|
|
||
| # @!group | ||
|
|
||
| MONTH = :month | ||
|
|
||
| # @!endgroup | ||
| end | ||
| end | ||
| end | ||
|
|
||
| OrganizationSpendLimit = Organization::OrganizationSpendLimit | ||
| end | ||
| end | ||
| end |
33 changes: 33 additions & 0 deletions
33
lib/openai/models/admin/organization/organization_spend_limit_deleted.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| module OpenAI | ||
| module Models | ||
| module Admin | ||
| module Organization | ||
| # @see OpenAI::Resources::Admin::Organization::SpendLimit#delete | ||
| class OrganizationSpendLimitDeleted < OpenAI::Internal::Type::BaseModel | ||
| # @!attribute deleted | ||
| # Whether the hard spend limit was deleted. | ||
| # | ||
| # @return [Boolean] | ||
| required :deleted, OpenAI::Internal::Type::Boolean | ||
|
|
||
| # @!attribute object | ||
| # The object type, which is always `organization.spend_limit.deleted`. | ||
| # | ||
| # @return [Symbol, :"organization.spend_limit.deleted"] | ||
| required :object, const: :"organization.spend_limit.deleted" | ||
|
|
||
| # @!method initialize(deleted:, object: :"organization.spend_limit.deleted") | ||
| # Confirmation payload returned after deleting an organization hard spend limit. | ||
| # | ||
| # @param deleted [Boolean] Whether the hard spend limit was deleted. | ||
| # | ||
| # @param object [Symbol, :"organization.spend_limit.deleted"] The object type, which is always `organization.spend_limit.deleted`. | ||
| end | ||
| end | ||
|
|
||
| OrganizationSpendLimitDeleted = Organization::OrganizationSpendLimitDeleted | ||
| end | ||
| end | ||
| end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For
stainless-sdks/<repo>other thanstainless-sdks/openai-ruby, this line moves the matrix tests todepot-ubuntu-24.04, but the downstream aggregatetestjob still uses the old exact-reporuns-oncheck and therefore schedules onubuntu-latest. That leaves the finalteststatus on a different runner in the private-production repo case this change is adding, and can queue or fail even after the matrix succeeds when those repos are configured to use Depot runners; update the aggregate job's runner expression as well.Useful? React with 👍 / 👎.