Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikaelvesavuori/chatgpt-api-demo

A basic template to get going using the ChatGPT API.
https://github.com/mikaelvesavuori/chatgpt-api-demo

architecture chatgpt chatgpt-api template

Last synced: about 1 month ago
JSON representation

A basic template to get going using the ChatGPT API.

Awesome Lists containing this project

README

        

# ChatGPT API demo

A basic template to get going using the ChatGPT API.

This project comes with two prompts:

- One that asks to summarize a file's contents (several files provided).
- The second asks to make a PlantUML diagram and respond to a complex architectural question.

The code is in the `src` folder. Adapt it as needed.

## Prerequisites

You'll need to [get an OpenAI key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key) to use this.

## Installation

Install with `npm install`.

## Running the code

Run it with `npm start`.