4 releases
0.0.6 | Nov 9, 2024 |
---|---|
0.0.4 | Sep 6, 2024 |
0.0.3 | Sep 6, 2024 |
0.0.1-alpha7 | Jun 6, 2024 |
#410 in Machine learning
315 downloads per month
18KB
455 lines

gpt_ui
A CLI and TUI for chatGPT built with Rust. And offer a core crate for chatGPT app.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
Support openAI chatGPT, llama and DeepSeek.
Built With
Getting Started
Download in release page or compile it yourself.
For api invoke endpoint:
- openAI: https://api.openai.com/v1/chat/completions
- github developer: https://models.inference.ai.azure.com/chat/completions
- DeepSeek: https://api.deepseek.com/chat/completions
others help youself.
For windows users, there's bug upstream when handling ctrl-c, you can quit by press ESC
.
Usage
# start chatting
gpt_cli
# config
gpt_cli config
# quit
ESC
For more examples, please refer to the Documentation
Compile it yourself
Prerequisites
- Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Compilation
- Clone the repo
git clone https://github.com/kingwingfly/gpt.git
- Compilation
cargo build --bin gpt_cli --features cli --release
Roadmap
- Feature
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.
Contact
Louis - 836250617@qq.com
Project Link: https://github.com/kingwingfly/gpt
Acknowledgments
lib.rs
:
Tools for interacting with the OpenAI chatGPT API. The config includes the endpoint and api_key, which can be easily saved. Usage example is here. Having an openAI mock server, stream the chat.
Dependencies
~7–41MB
~553K SLoC