yihong0618 / tg_bing_dalle

Telegram bing bot DALL-E 3
MIT License
418 stars 54 forks source link

docker 安装后,使用出现错误。 #18

Closed crosspacific closed 8 months ago

crosspacific commented 8 months ago

使用docker安装,命令如下:

docker run -d --name tg_bing_dalle -e tg_token='${tg_token}' -e bing_cookie='${bing_cookie}' -e bing_cookie='${bing_cookie}' --network host tg_bing_dalle

出现一下错误:

  1. 使用了两个cookie,但是quota却测试出27个cookie,基本都为0.
  2. 使用prompt作图,可以正常出图。但只使用第二个cookie,调换顺序还是只使用第二个。
Pagliacii commented 8 months ago

试试这样:

docker run -d --name tg_bing_dalle -e tg_token='${tg_token}' -e bing_cookie='"a" "b"' --network host tg_bing_dalle
yihong0618 commented 8 months ago

@Pagliacii 谢谢。 现在的问题是这玩意太长了,是不我们引导用户 export 好一些?

Pagliacii commented 8 months ago

我写个 entrypoint.sh 吧,如果有 .token 和 .cookies,就读文件内容;如果没有就使用环境变量

Pagliacii commented 8 months ago

而且现在的 Dockerfile 有问题,只 copy 了 tg.py 单个文件

yihong0618 commented 8 months ago

而且现在的 Dockerfile 有问题,只 copy 了 tg.py 单个文件

@BeautyyuYanli 我也发现了,我们忘改这个了, fly.io 也是