From 02088f445db7f39d71a2042f1c35c067d5105d86 Mon Sep 17 00:00:00 2001 From: hibobmaster <32976627+hibobmaster@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:33:33 +0800 Subject: [PATCH] fix: when reply_count is None, got type error --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 60bddf8..ac4d73d 100644 --- a/src/main.py +++ b/src/main.py @@ -67,7 +67,7 @@ async def main(): top_p=os.environ.get("TOP_P"), presence_penalty=os.environ.get("PRESENCE_PENALTY"), frequency_penalty=os.environ.get("FREQUENCY_PENALTY"), - reply_count=int(os.environ.get("REPLY_COUNT")), + reply_count=os.environ.get("REPLY_COUNT"), system_prompt=os.environ.get("SYSTEM_PROMPT"), temperature=os.environ.get("TEMPERATURE"), lc_admin=os.environ.get("LC_ADMIN"),