Skip to content

Commit

Permalink
fix: json parse error in docker #600 #601
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Mar 25, 2023
1 parent 5aedce6 commit e226c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e226c93

Please sign in to comment.