forked from Pavel_Durov/python_bot
asdadasdassa
This commit is contained in:
parent
db842a1ceb
commit
4c520b39fe
@ -3,11 +3,11 @@ from aiogram import types
|
||||
from create_bot import dp, bot
|
||||
import logging
|
||||
from global_conf import CONFIG
|
||||
|
||||
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']
|
||||
|
||||
# Image_promt =['тупица сгенерируй','тупица сгенерируй картинку',\
|
||||
@ -45,9 +45,9 @@ async def send(message: types.Message):
|
||||
if message.from_user.id in admins and message.chat.type == 'private':
|
||||
|
||||
## TODO уточнить остатки токенов и денег
|
||||
response = openai.Completion.create(
|
||||
model="gpt-4-turbo",
|
||||
prompt=message.text[7:],
|
||||
response = openai.ChatCompletion.create(
|
||||
model="gpt-4",
|
||||
prompt=message.text,
|
||||
temperature=0.7,
|
||||
max_tokens=1000,
|
||||
top_p=1.0,
|
||||
|
Loading…
Reference in New Issue
Block a user