Skip to content

The application uses the @openai/api npm package to interact with OpenAI's

Notifications You must be signed in to change notification settings

imessenger98/openAI-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open AI (Node)

OpenAI API Usage Instructions

To use the OpenAI API in your application, you can send a POST request to the following endpoint: /

The POST request should include a JSON object with the following structure:

{ "question": "Your question goes here" }

The response from the API will be a JSON object with the answer to your question.

Curl Request

curl --location --request POST 'http://localhost:3000/open-api' \
--header 'Content-Type: application/json' \
--data-raw '{"model":"text-davinci-003","prompt":"which is the easiest programming language "}'

Enjoy :)

About

The application uses the @openai/api npm package to interact with OpenAI's

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published