#chat-bot #interface #chat-client #api-client #cli-interface #openai #api-key

yanked unspoken

Chatbot API client library and CLI interface

0.1.2 Sep 19, 2024
0.1.1 Sep 18, 2024
0.1.0 Sep 17, 2024

#23 in #chat-client

Download history 186/week @ 2024-09-12 231/week @ 2024-09-19 35/week @ 2024-09-26 15/week @ 2024-10-03

97 downloads per month

MIT license

56KB
369 lines

NOTICE This project has been renamed to jutella and has been moved to https://github.com/dmitry-markin/jutella. This crate/binary has been moved to jutella from 0.2.0

unspoken

Chatbot API client library and CLI interface. Currently supports OpenAI chat API.

Command line interface

To get started with CLI, put your API key and endpoint into ~/.config/unspoken.toml. See a config example.

Screenshot

Library

To use the chat API, initialize ChatClient with api_key and ChatClientConfig:

let mut chat = ChatClient::new(api_key, ChatClientConfig::default());

Request answers via ChatClient::ask():

let answer = chat.ask("What is the highest point on Earth?".to_string())?;
println!("The answer is: {answer}");

ChatClient keeps the conversation context and sends it with every ask() to the chatbot API.

Future plans

Expect breaking changes in the API and transition to async requests.

Dependencies

~7–17MB
~225K SLoC