Skip to content

e-roy/openai-functions-with-langchain

Repository files navigation

OpenAI Functions with Langchain

This repo explores using OpenAI Functions with APIs, I'm using a RapidAPI endpoint to get news on spaceflights.

There are 2 versions here using OpenAI Functions. One version <OpenAI /> and api/news-openai uses just OpenAI. Another <Langchain /> and api/news-langchain with Langchain.

Getting Started

Get API keys

OpenAI RapidAPI

Create a .env file and paste in your keys. There is an .env.example file that can be copied and pasted, don't put your API keys here, only in your .env file.

Run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Next.js, take a look at the following resources:

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published