Bump openai dep from ~> 0.43 to ~> 0.59#65
Merged
Merged
Conversation
Tracks the upstream SDK forward by sixteen minor versions (0.43 → 0.59, released 2026-04-14). No code changes in lib/ are required: every method we call (OpenAI::Client.new, responses.create, conversations.items.list) keeps the same signature, and the response object shape we consume (id / output / output_text / model / usage / image_generation_call items) is unchanged. Notable things this brings along: - Typed `action` field on the image_generation tool (auto/generate/ edit), added after 0.43. Unknown keys were passing through via BaseModel anyway, but the typed field makes the SDK-facing surface closer to the docs. - gpt-5.4 mini/nano model slugs in ChatModel (added in 0.56). - Short-lived tokens, phase field on Conversations messages, and the WEB_SEARCH_CALL_RESULTS Includable (0.57–0.58) — not used here yet, but available for future work. The SDK still has no typed `gpt-image-2` constant (the announcement landed on 2026-04-21, a week after 0.59 shipped), but the model field is a String|Symbol union, so `"gpt-image-2"` passes through. 72 unit examples pass; StandardRB is clean on the diff (the two pre-existing warnings on lib/ai/chat.rb:49 and :178 are unrelated).
5 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
openaifrom~> 0.43to~> 0.59inai-chat.gemspec, refreshesGemfile.lock(0.43.0→0.59.0).lib/changes are required — every method the gem calls keeps the same signature, and the response shape it consumes (id/output/output_text/model/usage/image_generation_callitems) is unchanged.What we pick up
actionfield on theimage_generationtool (auto/generate/edit), added after 0.43. Unknown keys were already passing throughBaseModel.coerce/dump, so nothing depended on this — but the SDK surface is now closer to OpenAI's docs.gpt-5.4mini/nano model slugs inChatModel(added in 0.56.0).phasefield on Conversations messages,WEB_SEARCH_CALL_RESULTSinResponseIncludable(0.57–0.58). Not used inlib/today, but available.There is still no typed
gpt-image-2constant — the announcement landed 2026-04-21, one week after openai-ruby 0.59.0 shipped. The tool'smodelfield is aString|Symbolunion, so"gpt-image-2"already passes through.Test plan
bundle exec rspec spec/unit— 72 examples, 0 failures under 0.59.0bundle exec standardrb lib/ ai-chat.gemspec— clean on the diff (two pre-existing warnings atlib/ai/chat.rb:49and:178are unrelated)bundle exec ruby -e 'require "ai-chat"')Relates to
#64 (image_generation Hash options) will be rebased on top of this branch so reviewers can see a clean diff.