Skip to content

quantified-uncertainty/gpt-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Utils.

Requirements

  • Deno
  • A valid OpenAI Bearer key
  • Some programming knowledge
  • A decent operating system, like Linux or MacOS.

Installation

Install Deno. It's a javascript runtime I like because it has good process and permissions isolation.

Then install this repository:

git clone <url>

Input your OpenAI secret bearer into the .env file:

cd gpt-utils
mv .env.example .env
vim .env ## exit with :wq

Then have a look at reword-markdown-text/reword-md.sh and oracle/deploy-oracle.sh. Edit them so that they have all the information they need, namely:

  • The absolute location of your .env file
  • The absolute location of the path that they are in.

Usage

Note: Currently, the first markdown line is assumed to contain the title, and is ignored

For rewording a file:

cd reword-markdown-text
reword-md.sh your_md_file.md

For getting a prediction:

cd oracle
deploy-oracle.sh

etc.

You may also want to read the files in the utility you are using.

To do

  • Consolidate all API calls and then import that, so that the only thing that changes is the prompt.

About

Repository with some utils using gpt-3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published