Skip to content

mitmedialab/storifai

 
 

Repository files navigation

picture-book

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

API Endpoints used

POST https://api.openai.com/v1/completions - Creates a completion for the provided prompt and parameters

Body

  • model {string} - ID of model to use
  • prompt {string/array} - The prompt(s) to generate completions for
  • temperature {number} - Sampling temperature to use. Higher means higher risks
  • max_tokens {integer} - Max number of tokens to generate in the completion
  • frequency_penalty {number} - Positive values penalize new tokens based on their existing frequency in the text so far
  • presence_penalty {number} - Positive values penalize new tokens based on whether they appear in the text so far

Returns

  • An object containing the completion

Deploy Site

Setup by following Deploying Vue App to Github Pages instructions.

# build for production with minification
npm run build
npm run build --report

# update and commit dist folder
git add dist && git commit -m 'adding dist subtree'

# update remote gh-pages and trigger GH actions to redeploy page
git subtree push --prefix dist origin gh-pages

Releases

No releases published

Packages

No packages published

Languages

  • Vue 60.0%
  • JavaScript 39.6%
  • HTML 0.4%