3 releases
Uses new Rust 2024
| 0.1.1 | Jun 16, 2025 |
|---|---|
| 0.1.1-alpha.3 | May 16, 2025 |
| 0.1.1-alpha.2 | May 14, 2025 |
#1214 in Machine learning
151 downloads per month
26KB
456 lines
toi_client
A minimal, terminal-based chat client for interacting with a personal assistant server.
Features
- Basic context size management based on token usage
- CTRL+C to interrupt the response stream during a response
- CTRL+C to clear the input buffer when it isn't empty
- CTRL+C to exit when the input buffer is empty
Notable dependencies
- ctrlc for some CTRL+C signal handling
- pico-args for the CLI argument parser
- reqwest for the HTTP client
- rustyline for the REPL interface
- serde and serde_json for the serialization/deserialization stuff
- tokio for async stuff
Related artifacts
Acknowledgements
- The streaming functionality is largely based on this demo
Dependencies
~12–28MB
~346K SLoC