Skip to content

Update README.md #155

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 1 commit into
base: next
Choose a base branch
from
Open

Update README.md #155

wants to merge 1 commit into from

Conversation

jpbalarini
Copy link

@jpbalarini jpbalarini commented Jun 5, 2025

Code was not working after copying/pasting it from the documentation. There was a wrong colon in README that I fix in this PR

Fix wrong colon on README
@jpbalarini jpbalarini requested a review from a team as a code owner June 5, 2025 05:17
@jpbalarini
Copy link
Author

@ms-jpq

@ms-jpq ms-jpq changed the base branch from main to next June 5, 2025 13:56
@ms-jpq
Copy link
Collaborator

ms-jpq commented Jun 5, 2025

hi @jpbalarini, can you please help me understand what did not work for you?

:'gpt-4.1' and 'gpt-4.1' are supposed to be isomorphic parameters, so I will fix whatever is not working here 🙂.


I was not able to reproduce an error with the snippet copied from the README, perhaps you may be able to paste in your code in a comment? that would be super helpful

#!/usr/bin/env -S -- ruby
# frozen_string_literal: true
# typed: strict

require 'bundler/setup'

require 'openai'

openai = OpenAI::Client.new

stream = openai.chat.completions.stream_raw(
  messages: [{ role: 'user', content: 'Say this is a test' }],
  model: :'gpt-4.1'
)

stream.each do
  pp _1
end

# it hits this line and I was able to go into IRB console
binding.irb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants