Runnable examples for both ways to use this project. Run each from the project
root (e.g. python examples/01_direct_chat.py).
No server needed. On the first run, sign-in opens a browser automatically.
| File | Shows |
|---|---|
| 01_direct_chat.py | The simplest one-shot chat |
| 02_direct_conversation.py | Multi-turn — continue with conversation_id |
| 03_direct_stream.py | Stream the reply as it's generated |
Start the server first in another terminal: python app.py
| File | Shows |
|---|---|
| 04_server_http.py | Plain HTTP with requests (chat + continue) |
| 05_server_stream.py | Streaming over Server-Sent Events |
| 06_server_openai_sdk.py | The official openai SDK (pip install openai) |