Skip to content

dandwal/node-gpt-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple custom node backend for openAI

Introduction

Just an API

Getting started

  1. Update the .env providing your openAiApi key to the variable OPENAI_API_KEY.

  2. Install and run

npm install;
npm start;
  1. Application can then be reached on port 3000 by default to change this add a PORT variable to the .env with the desired port number the application should run on.

Endpoints

Open AI spec to come but for now this should suffice

api/messages

Verb: POST

{ text: "X" }

Where X is the message to send to openAI.

The result will come back as

{
    "result": "Yes, as an AI language model, I am currently able to respond to this message."
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published