asdadasdassa
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Durov 2024-05-10 20:37:34 +03:00
parent db842a1ceb
commit 4c520b39fe

View File

@ -3,11 +3,11 @@ from aiogram import types
from create_bot import dp, bot from create_bot import dp, bot
import logging import logging
from global_conf import CONFIG from global_conf import CONFIG
admins = CONFIG['telegram_admins_ids'] admins = CONFIG['telegram_admins_ids']
openai.api_key = "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"
token = CONFIG['openai']['token']
openai.api_key = CONFIG['openai']['api_key']
ban_comands = ['/dick','/topdick'] ban_comands = ['/dick','/topdick']
# Image_promt =['тупица сгенерируй','тупица сгенерируй картинку',\ # Image_promt =['тупица сгенерируй','тупица сгенерируй картинку',\
@ -45,9 +45,9 @@ async def send(message: types.Message):
if message.from_user.id in admins and message.chat.type == 'private': if message.from_user.id in admins and message.chat.type == 'private':
## TODO уточнить остатки токенов и денег ## TODO уточнить остатки токенов и денег
response = openai.Completion.create( response = openai.ChatCompletion.create(
model="gpt-4-turbo", model="gpt-4",
prompt=message.text[7:], prompt=message.text,
temperature=0.7, temperature=0.7,
max_tokens=1000, max_tokens=1000,
top_p=1.0, top_p=1.0,