Skip to content

sky-dust-intelligence/ai-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Open-AI API

For Demo

For testing the demo you have to add the api-key.

  • Got to /ai-examples
  • Click on the Set API Key button

Set Api Key

And save it.

Once you are done testing you can remove the key from here:

Remove Api Key

For Developement

For developement you have to save the Api-Key on the .env file with the following name

OPENAI_API_KEY=YOUR_API_KEY

How to change the model?

By default we are using the gpt-3.5-turbo model. If you want to use other model you can do that too.

To change the model, open up the template in your code editor. Then go to the route.ts file under ai-examples and add your prefered model

Note: You can find all the model from here: https://platform.openai.com/docs/models/overview

Change model

Installation and Configuration

You must follow the documentation setp by step in this order to do a successful installation and configuration.


Deploying on PaaS

If you are using a GitHub repo then you can go with free-of-cost and easy-to-use options like Vercel, or Netlify they offer decent-free tiers for Next.js hosting.

If you are using Prisma ORM (Comes with All Starter Templates)

Make sure to edit build command like this while you use Prisma as ORM while deploying to Vercel.

prisma-vercel