mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 06:07:13 +08:00
fix: memory and path bug
This commit is contained in:
@@ -245,8 +245,7 @@ class GoogleGeminiBot(Bot):
|
||||
gen_config = {}
|
||||
if kwargs.get("temperature") is not None:
|
||||
gen_config["temperature"] = kwargs["temperature"]
|
||||
if kwargs.get("max_tokens"):
|
||||
gen_config["maxOutputTokens"] = kwargs["max_tokens"]
|
||||
|
||||
if gen_config:
|
||||
payload["generationConfig"] = gen_config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user