Skip to content

sudoish/openai_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages