Update code.py

This commit is contained in:
Paillat
2022-12-06 11:25:37 +01:00
parent e7294aa308
commit 8371452607

View File

@@ -266,7 +266,7 @@ async def pretend(ctx, pretend_to_be: str, message: str):
return return
#set the openai api key #set the openai api key
openai.api_key = data[2] openai.api_key = data[2]
prompt = f"Pretend to be {pretend_to_be} and answer the following question: {message}: \n" prompt = f"An AI pretends to be {pretend_to_be} and answer the following question: \n Human:{message} \n AI:"
debug(f"The prompt is: {prompt}") debug(f"The prompt is: {prompt}")
response = openai.Completion.create( response = openai.Completion.create(
engine="text-davinci-003", engine="text-davinci-003",