Project

ask-ai

0.0
The project is in a healthy, maintained state
A CLI tool for using OpenAI's API. The idea is to make it easy to use the API with an option to pass files for help with diffrent tasks.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 5.1.0
 Project Readme

ChatBOT (openAI) in your terminal

Disclaimer

Ad hoc created chatBOT cli tool.
Do you want standards, conventions and best practice?
Then this is not for you 😠

This project is still a 'WIP'\

Prerequisites

Ruby installed
Api key from OpenAI

Installation

gem install ask-ai

You can then start an interactive session with:

ask-ai

Configure your API key\

config key <key>

Usage

Start your interactive session with:

ask-ai

You can load a file with -lf path_to_file then you can ask question about the file.
Don't forget to use -f when you want to ask about a file.
(As of now you can only load files that can be read line by line, like txt, yml or code)

ruby_file

or something like

sql_file

You can load more then one file, just be aware that a lot of input consumes more tokens.
To delete files from context use -df to delete one or all loaded files.

You can also use it as chat bot, it by default save 10 Input / Output as a context

pasta

You can delete the conversation with:

clear

For all available commands type:

help