15 lines
183 B
Python
15 lines
183 B
Python
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)
|
|
|