Skip to content

Conversation

@mattapperson
Copy link
Collaborator

Summary

  • Fixed incorrect API method calls from client.chat.completions.create to client.chat.send throughout documentation
  • Fixed syntax and variable errors in README.md streaming example

Changes

OVERVIEW.md

  • Updated 5 instances of client.chat.completions.create to client.chat.send to match actual SDK API

README.md

  • Added missing comma after model parameter (syntax error)
  • Fixed variable name from stream to result in streaming example
  • Fixed typo from hunk to chunk in console.log statement

Test plan

  • Verified all code examples use correct API method client.chat.send
  • Verified streaming example has correct variable names and syntax
  • Confirmed actual SDK implementation uses chat.send() method
  • Checked all other example files are already correct

- Update all instances of client.chat.completions.create to client.chat.send in OVERVIEW.md (5 occurrences)
- Fix syntax error: add missing comma after model parameter in README.md
- Fix variable name: change 'stream' to 'result' in streaming example in README.md
- Fix typo: change 'hunk' to 'chunk' in streaming example in README.md
@mattapperson mattapperson merged commit 6d8c8e2 into main Nov 10, 2025
3 checks passed
@mattapperson mattapperson deleted the fix-quickstart branch November 10, 2025 13:05
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