Compare commits
No commits in common. "28d0e6fdbfdaea09b7742ed20b2459374add141b" and "2b7cbb0664de9afde5c1955e26a5430503c9916c" have entirely different histories.
28d0e6fdbf
...
2b7cbb0664
@ -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.from_user.is_bot:
|
# elif message.reply_to_message.bot.id:
|
||||||
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'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user