forked from Pavel_Durov/python_bot
не починилось
This commit is contained in:
parent
1f31c5155b
commit
9315a123f1
@ -26,18 +26,18 @@ async def send(message: types.Message):
|
||||
)
|
||||
await message.reply(response['choices'][0]['text'])
|
||||
|
||||
elif message.reply_to_message.from_id:
|
||||
response = openai.Completion.create(
|
||||
model="text-davinci-003",
|
||||
prompt=message.text,
|
||||
temperature=0.7,
|
||||
max_tokens=1000,
|
||||
top_p=1.0,
|
||||
frequency_penalty=0.0,
|
||||
presence_penalty=0.6,
|
||||
stop=["сброс"]
|
||||
)
|
||||
await message.reply(response['choices'][0]['text'])
|
||||
# elif message.reply_to_message.from_id:
|
||||
# response = openai.Completion.create(
|
||||
# model="text-davinci-003",
|
||||
# prompt=message.text,
|
||||
# temperature=0.7,
|
||||
# max_tokens=1000,
|
||||
# top_p=1.0,
|
||||
# frequency_penalty=0.0,
|
||||
# presence_penalty=0.6,
|
||||
# stop=["сброс"]
|
||||
# )
|
||||
# await message.reply(response['choices'][0]['text'])
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user