Skip to content

docs: fix streaming example in README - #16461

Merged
ishaan-jaff merged 3 commits into
BerriAI:mainfrom
Chesars:fix-readme-streaming-example
Nov 11, 2025
Merged

ishaan-jaff merged 3 commits into
BerriAI:mainfrom
Chesars:fix-readme-streaming-example

Conversation

@Chesars

@Chesars Chesars commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Summary

Fixes the streaming example in the README to make it complete and runnable.

Changes

  • Add missing messages variable definition that was referenced but not declared
  • Capitalize "liteLLM" to "LiteLLM" for consistent branding
  • Add comment to clarify the model being used (gpt-4o)

Test plan

  • Verified the example code is now complete and can be run as-is
  • Confirmed the streaming example follows documentation best practices

The changes fix a bug in the documentation where the streaming code example referenced a messages variable that wasn't defined, which would cause the example to fail if users tried to run it directly.

- Add missing messages variable in streaming code example
- Makes the example complete and runnable without modifications
@vercel

vercel Bot commented Nov 10, 2025

Copy link
Copy Markdown

@Chesars is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

@ishaan-jaff
ishaan-jaff merged commit 656dce9 into BerriAI:main Nov 11, 2025
4 of 6 checks passed
@Chesars
Chesars deleted the fix-readme-streaming-example branch November 11, 2025 01:32
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
* docs: add messages variable definition in streaming example

- Add missing messages variable in streaming code example
- Makes the example complete and runnable without modifications

* docs: capitalize LiteLLM in streaming section

* docs: add gpt-4o comment
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