Added cli and moved official API to chatgpt_pyapi.openai

This commit is contained in:
Julian Müller (ChaoticByte) 2023-03-13 08:09:32 +01:00
parent 4fd0969457
commit 308bf0730f
4 changed files with 109 additions and 95 deletions

View file

@ -4,10 +4,7 @@
from os import environ
from chatgpt_pyapi import ChatGPT
from chatgpt_pyapi import Message
from chatgpt_pyapi import Models
from chatgpt_pyapi import Roles
from chatgpt_pyapi.openai import ChatGPT, Message, Models, Roles
# Read the API key from a environment variable
API_KEY = environ["OPENAI_API_KEY"]