Just an API
-
Update the .env providing your openAiApi key to the variable
OPENAI_API_KEY
. -
Install and run
npm install;
npm start;
- 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.
Open AI spec to come but for now this should suffice
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."
}