Skip to content
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

Fixed broken getting of body as a string #33

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Fixed broken getting of body as a string #33

merged 1 commit into from
Jan 3, 2023

Conversation

GrahamCampbell
Copy link
Contributor

->getContents() only reads the stream from wherever the current position is - it does not rewind it. This can be hugely problematic if, for example, a logging middleware is attached to the client, which leaves the pointer not at the start of the stream/

@nunomaduro
Copy link
Contributor

@GrahamCampbell Any chance of having a test on this?

@nunomaduro nunomaduro merged commit 5657b0e into openai-php:main Jan 3, 2023
@GrahamCampbell GrahamCampbell deleted the patch-1 branch January 3, 2023 21:21
awm1 pushed a commit to awm1/openai-php-client that referenced this pull request Jun 13, 2023
awm1 pushed a commit to awm1/openai-php-client that referenced this pull request Aug 15, 2023
awm1 pushed a commit to awm1/openai-php-client that referenced this pull request Oct 24, 2023
awm1 pushed a commit to awm1/openai-php-client that referenced this pull request Nov 8, 2023
awm1 pushed a commit to awm1/openai-php-client that referenced this pull request Feb 28, 2024
awm1 pushed a commit to awm1/openai-php-client that referenced this pull request May 2, 2024
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.

None yet

2 participants