Skip to content

Nipuni35/CMPUT692-project01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI API Quickstart - Node.js example app

Setting Up the Environment and Integrating the OpenAI API

This is an example pet name generator app used in the OpenAI API quickstart tutorial. It uses the Next.js framework with React. Check out the tutorial or follow the instructions below to get set up.

Setup

  1. If you don’t have Node.js installed, install it from here

  2. Clone this repository

  3. Navigate into the project directory

    $ cd openai-quickstart-node
  4. Install the requirements

    $ npm install
  5. Make a copy of the example environment variables file

    $ cp .env.example .env
  6. Add your API key to the newly created .env file

  7. Run the app

    $ npm run dev

You should now be able to access the app at http://localhost:3000! For the full context behind this example app, check out the tutorial.

image

Finetuning


1. The finetuning of the models can be done using the different parameters given in the [OpenAI docs](https://beta.openai.com/docs/guides/fine-tuning)
2. Parameters for fine-tuing:
a) Temperature
b) Max Tokens
c) Top-p
d) Frequency Penalty
5) Presence Penalty
6) Stop Words

About

This project is a part of CMPUT692 course and we have created an application which use different language models to convert text to SQL. It also provides the execution accuracy and validity accuracy of the generated SQL query relative to the ground truth SQL query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors