Skip to content

jchpro/openai-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI playground

Description

Just having fun with OpenAI APIs.

How to run

Define API key

Create .env file in the repository and add:

# Required
OPENAI_API_KEY=<your_api_key>
# Optional, you probably only have one organization
OPENAI_ORG_ID=<your_organization_id>

Directly with ts-node

npm start

This will print help with the list of commands. Once you know the command, pass the arguments to the CLI:

npm start -- chat

Build and run with node

npm run build
node dist/index.js chat # or any other arguments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published