evangstav / openai_cli

An openAI CLI built in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openai CLI

This is a command line interface for OpenAI's API. It's a work in progress, but it's already useful for some things, such as:

  • Text generation
    • Given a description, openai generates a text response
  • Image generation
    • Given a description, openai generates an image response

Requirements

  • Rust
  • Cargo

Running the cli

cargo run -- --help

# Text completion command:
cargo run -- text --description "What is the origin of the christmas tree?"

# Image completion command:
cargo run -- image --description "A cat astronaut coding in space"

Building the cli

cargo build --release

About

An openAI CLI built in rust


Languages

Language:Rust 100.0%