Skip to content

Commit 54e99b6

Browse files
committed
Another
1 parent ef801ca commit 54e99b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llms_wrapper/llms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def toolnames2funcs(tools, tool_map: dict = None):
123123
else:
124124
func = get_func_by_name(name)
125125
if func is None:
126-
raise Exception(f"Function {name} not found")
126+
raise Exception(f"Function {name} not found, tool_map is: {tool_map}")
127127
fmap[name] = func
128128
return fmap
129129

@@ -773,7 +773,9 @@ def cleaned_args(args: dict):
773773
# Not known/supported by litellm, apparently
774774
# if "parallel_tool_choice" not in completion_kwargs:
775775
# completion_kwargs["parallel_tool_choice"] = True
776+
print(f"DEBUG: creating map for tools, tool_map is {tool_map}")
776777
fmap = toolnames2funcs(tools, tool_map=tool_map)
778+
print(f"DEBUG: create fmap: {fmap}")
777779
else:
778780
fmap = {}
779781
if via_streaming:

llms_wrapper/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import importlib.metadata
2-
__version__ = "0.9.1.3"
2+
__version__ = "0.9.1.4"
33

0 commit comments

Comments
 (0)