Skip to content

This is a sample repository to use GPT-3 by CLI command.

Notifications You must be signed in to change notification settings

Kazuki-tam/gpt-python-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT CLI with Python

This is a sample repository to use GPT-3 by CLI command.

Status

Release (latest by date) Issues Maintenance Release date

How to use

1. Create a .env file

You need to create a .env file in gpt directory.

OPENAI_API_KEY='YOUR_API_KEY'

https://github.com/Kazuki-tam/gpt-python-cli/tree/main/gpt

2. Create a Docker image, build a container, and start the container

docker compose up -d --build

3. Connect to container

docker compose exec python3 bash

4. Execute python file

python -m gpt

Other Commands

Delete container

exit
docker compose down

Restart container

docker compose up -d

About

This is a sample repository to use GPT-3 by CLI command.

Resources

Stars

Watchers

Forks

Packages

No packages published