Skip to content

Instantly share code, notes, and snippets.

View tiago-lp's full-sized avatar
:shipit:

Tiago L Pereira tiago-lp

:shipit:
View GitHub Profile
@tiago-lp
tiago-lp / skill.py
Created February 11, 2023 03:18
Alexa GPT
# colocar nos requirements.txt o seguinte: openai==0.26.1
import openai
openai.api_key = "SUA CHAVE AQUI"
def get_chat_gtp_response(prompt):
response = openai.Completion.create(
engine="text-davinci-002",
prompt=prompt,