Jimmydalecleveland / gpt-article-summarizer

Home Page:https://gpt-article-summarizer.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Article Summarizer for Jimmy Cleveland's blog

This repo is nothing special

I'm creating this purely as practice while looking at other people's projects to see if there is anything I'm missing. It is just your standard API call to openai that summarizes some content.

This could definitely be used for any articles, I'm just keeping it specific for the sake of simplicity.

Hosted at:

To run locally

You will need a .env.local with the openai API key. See the .env.example.

npm run dev

Notes about the project

  • Uses OpenAI's latest "cheap and fast" model (as of Nov 06, 2023): gpt-3.5-turbo-1106
  • Uses OpenAI's streaming methods through their npm package.
  • You could accomplish this functionality much easier with Vercel's useChat, I just wanted to see some of what was involved without it.
  • useReducer is used for state management here, but debateably overkill. I just prefer it when multiple states are commonly updated together.

About

https://gpt-article-summarizer.vercel.app


Languages

Language:TypeScript 91.6%Language:CSS 6.4%Language:JavaScript 2.1%