Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion astrbot/core/provider/sources/gemini_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ async def _prepare_query_config(
]

tool_config = None
if tools and tool_list:
has_func_decl = tool_list and any(
t.function_declarations for t in tool_list
)
if has_func_decl:
Comment thread
Soulter marked this conversation as resolved.
tool_config = types.ToolConfig(
function_calling_config=types.FunctionCallingConfig(
mode=(
Expand Down
Loading