/openai_api_interfacing

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Prerequisites

bash curl (used for using OpenAI http api) jq nodejs npm (modules used:express,socket.io,http)

OpenAI-API-interfacing

Commandline and web app for interacting with OpenAI using OpenAI api

Install the prerequisites.txt Get API key from OpenAI and place it in (davinci.sh) file and (image/image.sh) file The execute the following in terminal: chmod +x start && ./start

-->Then go to localhost:3000 in browser to access the chat window

The commandline app consists only of (cmdline) and (davinci.sh) and are sufficient. To run do :

chmod +x cmdline ; chmod +x davinci.sh ; ./cmdline

(Image Screenshot)

image

(Web Screenshot)

web

(Cmdline Screenshot)

cmdline