change davinci position on handlers
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fb54c27514
commit
8d2ebff6f3
@ -6,7 +6,7 @@ token = '5947963644:AAF_GKgMmU5ovqMpc1KXIpcf4aN0JMyKPqc'
|
|||||||
openai.api_key = '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'
|
openai.api_key = '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'
|
||||||
|
|
||||||
@dp.message_handler()
|
@dp.message_handler()
|
||||||
async def send(message : types.Message):
|
async def send(message: types.Message):
|
||||||
if 'тупица' in message.text.lower():
|
if 'тупица' in message.text.lower():
|
||||||
|
|
||||||
response = openai.Completion.create(
|
response = openai.Completion.create(
|
||||||
@ -17,10 +17,9 @@ async def send(message : types.Message):
|
|||||||
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=["You:"]
|
stop=["сброс"]
|
||||||
)
|
)
|
||||||
await message.reply(response['choices'][0]['text'])
|
await message.reply(response['choices'][0]['text'])
|
||||||
else:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user