Skip to content

Fix syntax error in README.md example code#741

Merged
iBotPeaches merged 1 commit intoopenai-php:mainfrom
simonschaufi:patch-2
Feb 13, 2026
Merged

Fix syntax error in README.md example code#741
iBotPeaches merged 1 commit intoopenai-php:mainfrom
simonschaufi:patch-2

Conversation

@simonschaufi
Copy link
Contributor

@simonschaufi simonschaufi commented Feb 13, 2026

What:

  • Bug Fix
  • New Feature

Description:

Fix example code for testing streams

@iBotPeaches iBotPeaches merged commit fae210e into openai-php:main Feb 13, 2026
14 checks passed
@iBotPeaches
Copy link
Collaborator

thanks!

@iBotPeaches iBotPeaches added this to the v0.20.0 milestone Feb 13, 2026
@simonschaufi simonschaufi deleted the patch-2 branch February 13, 2026 15:17
@simonschaufi
Copy link
Contributor Author

Welcome! Can you please also add an example how the content of the file.txt can look like?

@iBotPeaches
Copy link
Collaborator

Have you tried some of the sample fixtures we have for streams?

https://github.com/openai-php/client/tree/main/tests/Fixtures/Streams

@simonschaufi
Copy link
Contributor Author

I used this example here https://github.com/openai-php/client/blob/main/tests/Fixtures/Streams/ChatCompletionCreate.txt but I get an Missing event type in streamed response exception.

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