#completion #toi #client #response #empty

app toi_client

A REPL client for streaming OpenAI-compliant chat completions

2 releases

Uses new Rust 2024

new 0.1.1-alpha.3 May 16, 2025
0.1.1-alpha.2 May 14, 2025

#4 in #empty

Download history 69/week @ 2025-05-09

69 downloads per month

Apache-2.0

26KB
456 lines

toi_client

A proof-of-concept for a minimal, terminal-based chat client for interacting with the 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

Related artifacts

Acknowledgements

  • The streaming functionality is largely based on this demo

Dependencies

~13–25MB
~350K SLoC