From e226c93eeb043d2db3f7b00376e9f0c62415156f Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sun, 26 Mar 2023 02:31:38 +0800 Subject: [PATCH] fix: json parse error in docker #600 #601 --- config.py | 2 +- docker/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 5d4e17e..348ba9f 100644 --- a/config.py +++ b/config.py @@ -98,7 +98,7 @@ def load_config(): config_path = "./config-template.json" config_str = read_file(config_path) - logger.info("[INIT] config str: {}".format(config_str)) + logger.debug("[INIT] config str: {}".format(config_str)) # 将json字符串反序列化为dict类型 config = Config(json.loads(config_str)) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index a114667..3c12ab3 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -84,7 +84,7 @@ if [ "$CHARACTER_DESC" != "" ] ; then fi if [ "$EXPIRES_IN_SECONDS" != "" ] ; then - sed -i "s/\"expires_in_seconds\".*$/\"expires_in_seconds\": $EXPIRES_IN_SECONDS/" $CHATGPT_ON_WECHAT_CONFIG_PATH + sed -i "s/\"expires_in_seconds\".*$/\"expires_in_seconds\": $EXPIRES_IN_SECONDS,/" $CHATGPT_ON_WECHAT_CONFIG_PATH fi # go to prefix dir