mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-07-08 22:11:43 +08:00
修复非流式模式下移除代码执行工具的逻辑
This commit is contained in:
@@ -172,7 +172,8 @@ class ChatService:
|
||||
|
||||
if not stream:
|
||||
# 非流式模式下,移除代码执行工具
|
||||
tools.remove({"code_execution": {}})
|
||||
if {"code_execution": {}} in tools:
|
||||
tools.remove({"code_execution": {}})
|
||||
payload = {
|
||||
"contents": gemini_messages,
|
||||
"generationConfig": {"temperature": temperature},
|
||||
|
||||
Reference in New Issue
Block a user