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