Compare commits

...

2 Commits

Author SHA1 Message Date
Pavel_Durov
28d0e6fdbf Merge branch 'main' of https://git.guaranteedstruggle.host/Pavel_Durov/python_bot
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-18 18:49:53 +03:00
Pavel_Durov
49ac3b7a48 пробуем 2023-07-18 18:42:04 +03:00

View File

@ -26,18 +26,18 @@ async def send(message: types.Message):
) )
await message.reply(response['choices'][0]['text']) await message.reply(response['choices'][0]['text'])
# elif message.reply_to_message.bot.id: elif message.reply_to_message.from_user.is_bot:
# response = openai.Completion.create( response = openai.Completion.create(
# model="text-davinci-003", model="text-davinci-003",
# prompt=message.text, prompt=message.text,
# temperature=0.7, temperature=0.7,
# max_tokens=1000, max_tokens=1000,
# top_p=1.0, top_p=1.0,
# frequency_penalty=0.0, frequency_penalty=0.0,
# presence_penalty=0.6, presence_penalty=0.6,
# stop=["сброс"] stop=["сброс"]
# ) )
# await message.reply(response['choices'][0]['text']) await message.reply(response['choices'][0]['text'])