File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 44author_url: https://github.com/owndev/
55project_url: https://github.com/owndev/Open-WebUI-Functions
66funding_url: https://github.com/sponsors/owndev
7- version: 1.6.7
7+ version: 1.6.8
88required_open_webui_version: 0.6.26
99license: Apache License 2.0
1010description: Highly optimized Google Gemini pipeline with advanced image generation capabilities, intelligent compression, and streamlined processing workflows.
@@ -1416,12 +1416,12 @@ def _configure_generation(
14161416 params = __metadata__ .get ("params" , {})
14171417 if __tools__ is not None and params .get ("function_calling" ) == "native" :
14181418 for name , tool_def in __tools__ .items ():
1419- tool = self . _create_tool ( tool_def )
1420- self . log . debug (
1421- f"Adding tool ' { name } ' with signature { tool . __signature__ } "
1422- )
1423-
1424- gen_config_params .setdefault ("tools" , []).append (tool )
1419+ if not name . startswith ( "_" ):
1420+ tool = tool_def [ "callable" ]
1421+ self . log . debug (
1422+ f"Adding tool ' { name } ' with signature { tool . __signature__ } "
1423+ )
1424+ gen_config_params .setdefault ("tools" , []).append (tool )
14251425
14261426 # Filter out None values for generation config
14271427 filtered_params = {k : v for k , v in gen_config_params .items () if v is not None }
You can’t perform that action at this time.
0 commit comments