Skip to content
Prev Previous commit
Next Next commit
Remove redundant comments in README example for clarity
  • Loading branch information
Sumanth007 committed Mar 26, 2026
commit b8eb38ca4d4c20522c16a7f2257a1cbb5120642d
4 changes: 0 additions & 4 deletions python/README.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All examples should be updated to use context managers and the README the call-out should be you can do what the context manager does manually and how to do that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Restructured the entire README so all code examples use async with as the default pattern. Added a "Manual Resource Management" section under Quick Start that shows how to call start()/stop()/disconnect() directly, and linked to it from the API Reference section. Also replaced all "gpt-5" references with "gpt-4o".

Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ async def main():
await session.send("What is 2+2?")
await done.wait()

# Session automatically disconnected here

# Client automatically stopped here

asyncio.run(main())
```

Expand Down