Add python-chatgpt
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
import openai
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
api_key = os.getenv('OPENAI_API_KEY')
|
||||
|
||||
openai.api_key = api_key
|
||||
|
||||
modelos = openai.Model.list()
|
||||
|
||||
print(modelos)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user