Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker 部署 Telegram 机器人无响应 #66

Closed
lz00qs opened this issue Feb 15, 2023 · 4 comments
Closed

Docker 部署 Telegram 机器人无响应 #66

lz00qs opened this issue Feb 15, 2023 · 4 comments

Comments

@lz00qs
Copy link

lz00qs commented Feb 15, 2023

重现
重现行为的步骤:

预期行为
发送消息,telegram bot 回复消息

截图

time="2023-02-15T12:04:32Z" level=warning msg="没有找到配置文件,尝试读取环境变量"
time="2023-02-15T12:04:34Z" level=info msg="Authorized on account: jack_automatic_bot"
time="2023-02-15T12:05:00Z" level=info msg="request openai json string : {\"model\":\"text-davinci-003\",\"prompt\":\"?\",\"max_tokens\":4000,\"temperature\":0.7,\"top_p\":1,\"frequency_penalty\":0,\"presence_penalty\":0}"
time="2023-02-15T12:05:02Z" level=info msg="Post \"https://api.openai.com/v1/completions\": EOF"
time="2023-02-15T12:05:12Z" level=info msg="request openai json string : {\"model\":\"text-davinci-003\",\"prompt\":\"你好?\",\"max_tokens\":4000,\"temperature\":0.7,\"top_p\":1,\"frequency_penalty\":0,\"presence_penalty\":0}"
time="2023-02-15T12:05:15Z" level=info msg="Post \"https://api.openai.com/v1/completions\": EOF"

PC (请填写以下信息):

  • 系统: Ubuntu22.04 Docker

附加上下文
在此处添加有关该问题的任何其他上下文。

@houko
Copy link
Owner

houko commented Feb 16, 2023

麻烦发一下启动命令和复现步骤

@lz00qs
Copy link
Author

lz00qs commented Feb 16, 2023

运行指令如下:(敏感数据已脱敏)

docker run -d
--name wechatgpt
-e api_key="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"
-e telegram="1234569094:AAF7Iu8Cy2HMSg_Iu4NqqAQpEmWce1N_W60"
-e tg_whitelist="123456"
xiaomoinfo/wechatgpt:latest

@houko
Copy link
Owner

houko commented Feb 16, 2023

运行指令如下:(敏感数据已脱敏)

docker run -d --name wechatgpt -e api_key="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" -e telegram="1234569094:AAF7Iu8Cy2HMSg_Iu4NqqAQpEmWce1N_W60" -e tg_whitelist="123456" xiaomoinfo/wechatgpt:latest

tg_whitelist里配的是你的tg 用户名吗? 如果不确定就不要加whitelist

@lz00qs
Copy link
Author

lz00qs commented Feb 16, 2023

是的,有怀疑过 whitelist 的问题,然后也试过不加 whitelist,也不行

@houko houko closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants