You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
I have searched the existing issues and checked the recent builds/commits
What happened?
The text cuts off
Steps to reproduce the problem
fromEdgeGPT.EdgeGPTimportChatbot, ConversationStyleimportasyncioasyncdefbing_chat(prompt):
cookies=json.loads(open("cookies.json", encoding="utf-8").read())
gbot=awaitChatbot().create(cookies=cookies)
response_dict=awaitgbot.ask(prompt=f"{prompt}", conversation_style=ConversationStyle.precise, simplify_response=True)
awaitgbot.close()
content=response_dict['text']
returncontenttext="Напиши код python webhook для pytelegrambotapi с помощью aiohttp"print(asyncio.run(bing_chat(text)))
What should have happened?
I was supposed to get a full answer, not half an answer
Version where the problem happens
0.11.1
What Python version are you running this with?
3.10.9
What is your operating system ?
No response
Command Line Arguments
No
Console logs
Вот пример кода webhook для pyTelegramBotAPI с использованием aiohttp:
import logging
import ssl
from aiohttp import web
import telebot
API_TOKEN = '<API_TOKEN>'
WEBHOOK_HOST = '<IP/host where the bot is running>'
WEBHOOK_PORT = 8443 # 443, 80, 88 or 8443 (port need to be 'open')
WEBHOOK_LISTEN = '0.0.0.0'# In some VPS you may need to put here the IP addr
WEBHOOK_SSL_CERT = './webhook_cert.pem'# Path to the ssl certificate
WEBHOOK_SSL_PRIV = './webhook_pkey.pem'# Path to the ssl private key
WEBHOOK_URL_BASE = "https://%s:%s" % (WEBHOOK_HOST, WEBHOOK_PORT)
WEBHOOK_URL_PATH = "/%s/" % (API_TOKEN)
logger = telebot.logger
telebot.logger.setLevel
Additional information
No response
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there an existing issue for this?
What happened?
The text cuts off
Steps to reproduce the problem
What should have happened?
I was supposed to get a full answer, not half an answer
Version where the problem happens
0.11.1
What Python version are you running this with?
3.10.9
What is your operating system ?
No response
Command Line Arguments
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: