Skip to content

release: 0.1.0-alpha.6 #133

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

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
64a2a6e
Update create-releases.yml
meorphis Apr 19, 2025
2653f09
Update create-releases.yml
meorphis Apr 19, 2025
e9ce032
Update create-releases.yml
meorphis Apr 19, 2025
b5d45ce
fix: fix workflow syntax
meorphis Apr 19, 2025
ef2a5d4
chore(internal): version bump
stainless-app[bot] Apr 21, 2025
ca0d841
chore: explicitly mark apis public under `Internal` module
stainless-app[bot] Apr 19, 2025
67b0e35
chore(internal): minor type annotation improvements
stainless-app[bot] Apr 21, 2025
6fba7b2
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 22, 2025
641f4eb
feat(api): adding new image model support
stainless-app[bot] Apr 23, 2025
0ae14a8
chore(ci): run on more branches and use depot runners
stainless-app[bot] Apr 23, 2025
57a10b0
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 23, 2025
77f7239
chore: broadly detect json family of content-type headers
stainless-app[bot] Apr 23, 2025
9e1a0f1
feat: support webmock for testing
stainless-app[bot] Apr 24, 2025
bf84473
chore: show truncated parameter docs in yard
stainless-app[bot] Apr 24, 2025
ece942c
feat: support specifying content-type with FilePart class
stainless-app[bot] Apr 24, 2025
cec4b05
chore: consistently use string in examples, even for enums
stainless-app[bot] Apr 24, 2025
a05d2c5
chore(internal): improve response envelope unwrap functionality
stainless-app[bot] Apr 24, 2025
513acd8
fix: ensure gem release is unaffected by renaming
stainless-app[bot] Apr 25, 2025
c78ea0f
fix: make a typo for `FilePart.content`
stainless-app[bot] Apr 25, 2025
df9e099
chore(internal): remove unnecessary `rbi/lib` folder
stainless-app[bot] Apr 26, 2025
04b111d
chore: more accurate type annotations and aliases
stainless-app[bot] Apr 26, 2025
4918836
chore(internal): annotate request options with type aliases in sorbet
stainless-app[bot] Apr 26, 2025
5c9767e
chore: add generator safe directory
stainless-app[bot] Apr 28, 2025
4244f89
chore: loosen rubocop rules that don't always make sense
stainless-app[bot] Apr 29, 2025
8a0bf70
Fix warning: JSON.fast_generate is deprecated
sferik Apr 29, 2025
85e9796
Bump minimum supported Ruby version to 3.2
sferik Apr 29, 2025
67c9304
Merge branch 'next' into ruby-3.2
ms-jpq Apr 30, 2025
41ce053
chore: bump minimum supported Ruby version to 3.2
ms-jpq Apr 30, 2025
0d8300b
Merge branch 'next' into fix_warnings
ms-jpq Apr 30, 2025
591fdf0
fix: JSON.fast_generate is deprecated
ms-jpq Apr 30, 2025
a6c7609
docs(readme): fix typo
stainless-app[bot] Apr 30, 2025
3be700f
chore: migrate away from deprecated `JSON#fast_generate`
stainless-app[bot] Apr 30, 2025
7c81afe
release: 0.1.0-alpha.6
stainless-app[bot] Apr 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 13 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- next
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
ruby-version: '3.1'
ruby-version: '3.2'
- run: |-
bundle install

- name: Run lints
run: ./scripts/lint
test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest
runs-on: ${{ github.repository == 'stainless-sdks/openai-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
ruby-version: '3.1'
ruby-version: '3.2'
- run: |-
bundle install

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ jobs:
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}

- name: Set up Ruby
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
ruby-version: '3.1'
- run: |-
ruby-version: '3.2'

- run: |
bundle install

- name: Publish to RubyGems.org
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
run: |
bash ./bin/publish-gem
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
ruby-version: '3.1'
ruby-version: '3.2'
- run: |-
bundle install

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.5"
".": "0.1.0-alpha.6"
}
13 changes: 12 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AllCops:
- "bin/*"
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.1.0
TargetRubyVersion: 3.2

# Whether MFA is required or not should be left to the token configuration.
Gemspec/RequireMFA:
Expand Down Expand Up @@ -64,11 +64,19 @@ Layout/MultilineMethodParameterLineBreaks:
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/BooleanSymbol:
Enabled: false

# This option occasionally mangles identifier names
Lint/DeprecatedConstants:
Exclude:
- "**/*.rbi"

# We use pattern assertion in tests to ensure correctness.
Lint/DuplicateMatchPattern:
Exclude:
- "test/**/*"

# Fairly useful in tests for pattern assertions.
Lint/EmptyInPattern:
Exclude:
Expand Down Expand Up @@ -119,6 +127,9 @@ Metrics/ParameterLists:
Metrics/PerceivedComplexity:
Enabled: false

Naming/AccessorMethodName:
Enabled: false

# Need to preserve block identifier for documentation.
Naming/BlockForwarding:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.2
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 95
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5633633cc38734869cf7d993f7b549bb8e4d10e0ec45381ec2cd91507cd8eb8f.yml
openapi_spec_hash: c855121b2b2324b99499c9244c21d24d
config_hash: d20837393b73efdb19cd08e04c1cc9a1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-8b68ae6b807dca92e914da1dd9e835a20f69b075e79102a264367fd7fddddb33.yml
openapi_spec_hash: b6ade5b1a6327339e6669e1134de2d03
config_hash: b597cd9a31e9e5ec709e2eefb4c54122
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--type-name-tag generic:Generic
--default-return void
--markup markdown
--markup-provider redcarpet
--exclude /rbi
Expand Down
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# Changelog

## 0.1.0-alpha.6 (2025-04-30)

Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/openai/openai-ruby/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)

### Features

* **api:** adding new image model support ([641f4eb](https://github.com/openai/openai-ruby/commit/641f4eb0fadf75909a32dc48644bf0e220fbbe81))
* support specifying content-type with FilePart class ([ece942c](https://github.com/openai/openai-ruby/commit/ece942cb2c7982ed73e20321318a0f8634c22023))
* support webmock for testing ([9e1a0f1](https://github.com/openai/openai-ruby/commit/9e1a0f1db37f0778063c2a417a55ac04fee1f1b2))


### Bug Fixes

* ensure gem release is unaffected by renaming ([513acd8](https://github.com/openai/openai-ruby/commit/513acd850f86110f1820a97468f50baf3a3ae0b3))
* fix workflow syntax ([b5d45ce](https://github.com/openai/openai-ruby/commit/b5d45ce80ebfc7811446c134a1925fb0731f7971))
* JSON.fast_generate is deprecated ([591fdf0](https://github.com/openai/openai-ruby/commit/591fdf0174765fce77b857b02006efd5b37fe073))
* make a typo for `FilePart.content` ([c78ea0f](https://github.com/openai/openai-ruby/commit/c78ea0fad674def58c3d15eec516a18149777d09))


### Chores

* add generator safe directory ([5c9767e](https://github.com/openai/openai-ruby/commit/5c9767ed5d4204dd17bcda1b5a5b79d5e628e0e1))
* broadly detect json family of content-type headers ([77f7239](https://github.com/openai/openai-ruby/commit/77f7239e03a45323f70baee9d1430ecec242705c))
* bump minimum supported Ruby version to 3.2 ([41ce053](https://github.com/openai/openai-ruby/commit/41ce0535c5f7a7304c744d5e7b43a728d360c54f))
* **ci:** add timeout thresholds for CI jobs ([6fba7b2](https://github.com/openai/openai-ruby/commit/6fba7b2a1d4043b3ee41f49da43a50c305d613d3))
* **ci:** only use depot for staging repos ([57a10b0](https://github.com/openai/openai-ruby/commit/57a10b07135a824e8eee35e57a1d78f223befef9))
* **ci:** run on more branches and use depot runners ([0ae14a8](https://github.com/openai/openai-ruby/commit/0ae14a87ecc37f73077f0aaa442047452a6503b6))
* consistently use string in examples, even for enums ([cec4b05](https://github.com/openai/openai-ruby/commit/cec4b051bb0f4357032779cde2c11babe4196fcd))
* explicitly mark apis public under `Internal` module ([ca0d841](https://github.com/openai/openai-ruby/commit/ca0d841a571433528ae15974041c5ea142f9109e))
* **internal:** annotate request options with type aliases in sorbet ([4918836](https://github.com/openai/openai-ruby/commit/4918836aac697a899b19e4c3767126d0d86914d4))
* **internal:** improve response envelope unwrap functionality ([a05d2c5](https://github.com/openai/openai-ruby/commit/a05d2c5d16ce052c1fb84005739e6b6d853f5e8e))
* **internal:** minor type annotation improvements ([67b0e35](https://github.com/openai/openai-ruby/commit/67b0e35c2c8d48c50c71c20a71304896a63f6b44))
* **internal:** remove unnecessary `rbi/lib` folder ([df9e099](https://github.com/openai/openai-ruby/commit/df9e0991a3aac2a5a480bfb3cf622139ca1b1373))
* **internal:** version bump ([ef2a5d4](https://github.com/openai/openai-ruby/commit/ef2a5d46f21a0df6b4b6ebc4e9d4dd4f6a6a6e5f))
* loosen rubocop rules that don't always make sense ([4244f89](https://github.com/openai/openai-ruby/commit/4244f8967d1583d97efa679d096eee04fd764240))
* migrate away from deprecated `JSON#fast_generate` ([3be700f](https://github.com/openai/openai-ruby/commit/3be700f04d782b538fcde678016532cfbc2eb66d))
* more accurate type annotations and aliases ([04b111d](https://github.com/openai/openai-ruby/commit/04b111dcdc2c5d458159be87a180174243a9d058))
* show truncated parameter docs in yard ([bf84473](https://github.com/openai/openai-ruby/commit/bf844738622cd1c9a5c31bffc1e5378c132c31fd))


### Documentation

* **readme:** fix typo ([a6c7609](https://github.com/openai/openai-ruby/commit/a6c76091c66abaf1c9bdfaaa348f9593639cadc4))

## 0.1.0-alpha.5 (2025-04-18)

Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/openai/openai-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This will install all the required dependencies.

## Modifying/Adding code

Most of the SDK is generated code. Modifications to code will be persisted between generations, but may result in merge conflicts between manual patches and changes from the generator. The generator will never modify the contents `examples/` directory.
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may result in merge conflicts between manual patches and changes from the generator. The generator will never modify the contents of `lib/openai/helpers/` and `examples/` directory.

## Adding and running examples

Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ group :development, :test do
gem "minitest-hooks"
gem "minitest-proveit"
gem "minitest-rg"
gem "webmock"
end

group :development, :docs do
Expand Down
15 changes: 14 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
openai (0.1.0.pre.alpha.5)
openai (0.1.0.pre.alpha.6)
connection_pool

GEM
Expand All @@ -29,6 +29,8 @@ GEM
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3)
async (2.23.1)
console (~> 1.29)
Expand All @@ -45,6 +47,9 @@ GEM
fiber-annotation
fiber-local (~> 1.1)
json
crack (1.0.0)
bigdecimal
rexml
csv (3.3.3)
drb (2.2.1)
erubi (1.13.1)
Expand All @@ -54,6 +59,7 @@ GEM
fiber-storage
fiber-storage (1.0.0)
fileutils (1.7.3)
hashdiff (1.1.2)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
io-event (1.10.0)
Expand Down Expand Up @@ -82,6 +88,7 @@ GEM
racc
prettier_print (1.2.1)
prism (1.4.0)
public_suffix (6.0.1)
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
Expand All @@ -96,6 +103,7 @@ GEM
logger
redcarpet (3.6.1)
regexp_parser (2.10.0)
rexml (3.4.1)
rubocop (1.75.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
Expand Down Expand Up @@ -165,6 +173,10 @@ GEM
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.3)
webmock (3.25.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.9.1)
yard (0.9.37)
yard-sorbet (0.9.0)
Expand All @@ -191,6 +203,7 @@ DEPENDENCIES
syntax_tree
syntax_tree-rbs!
tapioca
webmock
webrick
yard

Expand Down
Loading