A Vue.js project
# 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.
POST https://api.openai.com/v1/completions - Creates a completion for the provided prompt and parameters
Body
model{string} - ID of model to useprompt{string/array} - The prompt(s) to generate completions fortemperature{number} - Sampling temperature to use. Higher means higher risksmax_tokens{integer} - Max number of tokens to generate in the completionfrequency_penalty{number} - Positive values penalize new tokens based on their existing frequency in the text so farpresence_penalty{number} - Positive values penalize new tokens based on whether they appear in the text so far
Returns
- An object containing the completion
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