Rust-based CLI library for OpenAI ChatGPT API

Overview

Title: Rust-based CLI library for OpenAI ChatGPT API

Description: This is a Rust library that provides a CLI (command-line interface) for easy and convenient access to the OpenAI ChatGPT API. The library offers a simple and straightforward way to integrate the ChatGPT API into your Rust-based applications.

The library includes a set of functions for generating responses from the ChatGPT model, as well as handling authentication and error handling. The CLI interface provides a convenient way to interact with the ChatGPT API from the command line, making it ideal for testing and experimentation.

With this library, you can easily integrate OpenAI's state-of-the-art language processing capabilities into your Rust projects, enabling you to build sophisticated and intelligent applications that can understand natural language input.

Whether you're working on a chatbot, a virtual assistant, or a language translation tool, this library provides a powerful and flexible way to harness the full potential of the OpenAI ChatGPT API in your Rust-based projects.

User Guide

  1. Open the OpenAI official website and click here to enter the website. Then click on "API" and click here to access the API documentation.
    img.png
  2. Log in with your account. If you do not have an account, you can purchase one on Taobao by searching for "OPENAI account." If you have a VPN, you can log in directly on the official website.
    img_1.png
  3. Click "Account profile," then click "View API Keys."
    img_2.png
  4. Copy the Secret Key and click "Edit" in the upper right corner. Paste the Secret Key into the "Secret Key" field, and click "Save."
    img_3.png
  5. Enter the API token.
    img_4.png
  6. Input your question in the downloaded binary file and get an answer. image
  7. Enter your question and get the answer.
    image

使用教程


  1. 打开OpenAI官网,点击这里进入官网, 点击API,点击这里进入API文档
    img.png
  2. 登录 (账号密码可以再淘宝购买,搜OPENAI账号) (如果有梯子,可以直接登录官网)
    img_1.png
  3. 点击Account profile,然后点击View API Keys
    img_2.png
  4. 复制Secret Key,然后点击右上角的Edit,将Secret Key粘贴到Secret Key中,点击Save
    img_3.png
  5. 填入API token
    img_4.png
  6. 下载的二进制文件 image
  7. 输入问题 得到答案
    image
You might also like...
Simple OpenAI CLI wrapper written in Rust, feat. configurable prompts and models

Quick Start git clone https://github.com/ryantinder/ask-rs cd ask cargo install --path . Example ask tell me about the Lockheed Martin SR71 The Loc

A simple common-line interface for ChatGPT API.
A simple common-line interface for ChatGPT API.

heygpt A simple common-line interface for ChatGPT API. 🌟 Streaming output! 💡 One-shot mode to get a quick answer 🤖 Interactive mode to have a conve

Provide free GPT-3.5 API service by reverse engineering the login-free ChatGPT website.

ChatGPT Free API Provide free GPT-3.5 API service by reverse engineering the login-free ChatGPT website. Note: This service requires the IP to be able

Rust-powered CLI tool designed to simplify and streamline the release process with help of ChatGPT
Rust-powered CLI tool designed to simplify and streamline the release process with help of ChatGPT

$ releasecraftsman 👷🏻‍♂️🛠 Automate Your Release Process with Precision and Ease. 🎁 Features Generate well-crafted release notes using GPT-3.5 and

ChatGPT CLI - A minimal assistant in the terminal
ChatGPT CLI - A minimal assistant in the terminal

ChatGPT CLI A lightweight ChatGPT CLI - Chat completion. Interact with ChatGPT from your terminal and save the conversation in a text file. Get starte

A CLI tool that uses ChatGPT to automatically generate commit messages.

Auto Git Commit This project is a tool that uses the OpenAI GPT model to automatically generate commit messages for Git commits based on the changes m

An LLM-powered (CodeLlama or OpenAI) local diff code review tool.

augre An LLM-powered (CodeLlama or OpenAI) local diff code review tool. Binary Usage Install Windows: $ iwr https://github.com/twitchax/augre/releases

RustGPT is a ChatGPT UI built with Rust + HTMX: the power of Rust coupled with the simplicity of HTMX 💚

RustGPT 🦀✨ RustGPT.Blog.Post.mp4 Welcome to the RustGPT repository! Here, you'll find a web ChatGPT clone entirely crafted using Rust and HTMX, where

ChatGPT powered Rust proc macro that generates code at compile-time.

gpt-macro ChatGPT powered Rust proc macro that generates code at compile-time. Implemented Macros auto_impl!{} #[auto_test(...)] Usage Get ChatGPT API

Owner
bigduu
A crab who loves Rust
bigduu
A command-line interface for interacting with the ChatGPT API from OpenAI

cligpt cligpt is a command-line interface for interacting with the ChatGPT API from OpenAI. With cligpt, you can quickly and easily generate text by s

Felipe S. S. Schneider 6 Apr 4, 2023
ChatGPT-Code-Review is a Rust application that uses the OpenAI GPT-3.5 language model to review code

ChatGPT-Code-Review is a Rust application that uses the OpenAI GPT-3.5 language model to review code. It accepts a local path to a folder containing code, and generates a review for each file in the folder and its subdirectories.

Greg P. 15 Apr 22, 2023
This is a simple command-line interface tool that allows you to interact with ChatGPT from OpenAI or Azure.

HeyGPT This is a simple command-line interface tool that allows you to interact with ChatGPT from OpenAI or Azure. You can use it to: Chat with ChatGP

Philip 5 Mar 28, 2023
ChatGPT-rs is a lightweight ChatGPT client with a graphical user interface, written in Rust

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.

null 7 Apr 2, 2023
A CLI tool you can pipe code and then ask for changes, add documentation, etc, using the OpenAI API.

AiBro This is your own little coding bro, immersed in the world of AI, crypto, and all other types of over hyped tech trends. You can pipe it code and

Josh Bainbridge 5 Sep 5, 2023
A tool for chatting using the ChatGPT API, written in Rust CLI.

ChatGPT CLI A tool for chatting using the ChatGPT API, written in Rust CLI. You can use this tool to chat, just by setting your API Key. You can modif

null 6 Apr 5, 2023
turbocommit is a Rust-based CLI tool that generates high-quality git commit messages in accordance with the Conventional Commits specification, using OpenAI's

turbocommit is a Rust-based CLI tool that generates high-quality git commit messages in accordance with the Conventional Commits specification, using OpenAI's `gpt-3.5-turbo` language model. It is easy to use and a cost-effective way to keep git commit history at a higher quality, helping developers stay on track with their work.

Sett 16 Mar 26, 2023
A simple Rust library for OpenAI API, free from complex async operations and redundant dependencies.

OpenAI API for Rust A community-maintained library provides a simple and convenient way to interact with the OpenAI API. No complex async and redundan

null 6 Apr 4, 2023
A Rust client for OpenAI's API

libopenai - Rust client to interact with OpenAI's API Rust client for OpenAI's API, written with tokio and reqwest How to use To add libopenai to your

Alex 9 Mar 31, 2023
Experimental extension that brings OpenAI API to your PostgreSQL to run queries in human language.

Postgres <> ChatGPT Experimental PostgreSQL extension that enables the use of OpenAI GPT API inside PostgreSQL, allowing for queries to be written usi

CloudQuery 315 Apr 10, 2023