fix: when reply_count is None, got type error

This commit is contained in:
hibobmaster 2023-09-21 09:33:33 +08:00
parent 3d3d37295f
commit 02088f445d
Signed by: bobmaster
SSH key fingerprint: SHA256:5ZYgd8fg+PcNZNy4SzcSKu5JtqZyBF8kUhY7/k2viDk

View file

@ -67,7 +67,7 @@ async def main():
top_p=os.environ.get("TOP_P"), top_p=os.environ.get("TOP_P"),
presence_penalty=os.environ.get("PRESENCE_PENALTY"), presence_penalty=os.environ.get("PRESENCE_PENALTY"),
frequency_penalty=os.environ.get("FREQUENCY_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"), system_prompt=os.environ.get("SYSTEM_PROMPT"),
temperature=os.environ.get("TEMPERATURE"), temperature=os.environ.get("TEMPERATURE"),
lc_admin=os.environ.get("LC_ADMIN"), lc_admin=os.environ.get("LC_ADMIN"),