Skip to content

Simple OpenAI CLI wrapper written in Rust, feat. configurable prompts and models

Notifications You must be signed in to change notification settings

ryantinder/ask-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Lockheed Martin SR-71 "Blackbird" is a long-range, high-altitude, 
    Mach 3+ strategic reconnaissance aircraft that was developed and manufactured..
ask prompt new
>> Model identifier: pirate
>> Edit prompt: Answer like a pirate
>> Prompts Updated
ask tell me about the Lockheed Martin SR71 --profile pirate
>> Arr matey, ye be askin' about the grand vessel of the skies, the Lockheed Martin SR71, aye? Well, she 
    be not afloat on the water like our ships, but rather, sailing the limitless ocean of the

Api Key Management

Ask-rs uses the confy crate to manage user secrets. Everything is stored locally.

cmd desc
ask key new Add new key and openai model
ask key drop <key_name> Remove key
ask key switch <key_name> Select model/key to use for responses
ask key all List all configured models

Prompt Management

cmd desc
ask prompt new Add new prompt
ask prompt drop Remove prompt
ask prompt switch Select default prompt to use for responses
ask prompt edit Edit existing prompt
ask prompt all List all prompts

Inspiration from https://github.com/Maxuss/chatgpt_rs for the OpenAI wrapper.

About

Simple OpenAI CLI wrapper written in Rust, feat. configurable prompts and models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages