Giter VIP home page Giter VIP logo

chatgpt-rs's Introduction

ChatGPT-rs

ChatGPT-rs is a lightweight ChatGPT client with a graphical user interface, written in Rust. It allows you to chat with OpenAI's GPT models through a simple and intuitive interface.

Features

ChatGPT-rs provides the following features:

  • ๐Ÿ’ป User-friendly GUI: ChatGPT-rs has an intuitive graphical user interface that makes it easy to use.
  • ๐Ÿ’พ Lightweight: ChatGPT-rs is a small application with a download size of approximately 7MB.
  • ๐Ÿ‘ Easy to use: ChatGPT-rs can be used as soon as it is downloaded without the need for any additional deployment steps.
  • ๐Ÿ”ง Model parameter tuning: ChatGPT-rs allows you to fine-tune the GPT model by adjusting the model parameters, allowing for more customized responses.
  • ๐Ÿ“„ Conversation history: ChatGPT-rs allows you to save and access conversation history, so you can review past conversations.
  • ๐Ÿ“ Markdown support: ChatGPT-rs supports markdown syntax, allowing you to format your messages with ease.
  • ๐ŸŽจ Syntax highlighting: ChatGPT-rs includes syntax highlighting for programming languages, making it easy to share code snippets in your conversation.
  • ๐Ÿ“ฑ Compatibility: ChatGPT-rs is designed to work on multiple platforms, including Windows, Mac, and Linux.

If you want to display the markdown code font properly, we recommend installing the "YaHei Consolas Hybrid 1.12.ttf" font from the "fonts" directory in the project repository.

1

2

Getting Started

Downloading

You can download the latest release of ChatGPT-rs from the Releases page on GitHub. Choose the appropriate package for your operating system and follow the instructions to download and extract it to a directory of your choice.

Usage

API Key

Before you can use ChatGPT-rs, you need to obtain an OpenAI API key. To obtain an API key, follow these steps:

  1. Go to the OpenAI API website and sign up for an account.
  2. Once you have an account, go to the Dashboard and click on the "Create new secret key" button.
  3. Follow the instructions to create a new API key.

Once you have obtained an API key, create a .env file in the root directory of the project and add the following line. Alternatively, you can set environment variable in your system:

OPENAI_API_KEY=YOUR_SECRET_KEY

Replace YOUR_SECRET_KEY with your actual API key.

Proxy

By default, ChatGPT-rs now uses the system's default proxy settings. If you need to use a specific proxy to connect to the OpenAI API, you can add the following line to the .env file or set environment variable:

HTTP_PROXY=YOUR_PROXY_ADDRESS

Replace YOUR_PROXY_ADDRESS with your actual proxy address.

System Message

If you need to store a system message before the conversation starts, you can add the following line to the .env file or set environment variable:

SYSTEM_MESSAGE=YOUR_MESSAGE

Replace YOUR_MESSAGE with your actual system message. The first chat message will be stored as the system message.

Start Chatting

To start chatting with GPT

In the latest version, ChatGPT-rs has a new tabbed interface that allows you to chat with multiple users simultaneously. Simply click on the label to open a new conversation tab.

License

This project is licensed under the MIT License - see the LICENSE file for details.

chatgpt-rs's People

Contributors

99percentpeople avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.