mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-01-19 09:41:07 +08:00
111
This commit is contained in:
@@ -19,6 +19,7 @@ class TelegramChannel(Channel):
|
||||
pass
|
||||
def startup(self):
|
||||
logger.info("开始启动telegram机器人")
|
||||
bot.infinity_polling()
|
||||
def handle(self, msg):
|
||||
logger.debug("[Telegram]receive msg: " + msg.text)
|
||||
thread_pool.submit(self._dosend,msg.text.replace("/ask",""),msg)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"model": {
|
||||
"type" : "openai",
|
||||
"openai": {
|
||||
"api_key": "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",
|
||||
"api_key": "1313212",
|
||||
"conversation_max_tokens": 2000,
|
||||
"character_desc": "你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user