Skip to content

Commit

Permalink
Update haystack_experimental/components/tools/openai/function_caller.py
Browse files Browse the repository at this point in the history
Co-authored-by: Massimiliano Pippi <[email protected]>
  • Loading branch information
TuanaCelik and masci authored Jun 17, 2024
1 parent 26a71ed commit efbd6b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "OpenAIFunctionCaller":
for name, path in available_function_paths.items():
available_functions[name] = deserialize_callable(path)

return default_from_dict(cls, data)
return default_from_dict(cls, available_functions)

@component.output_types(
function_replies=List[ChatMessage], assistant_replies=List[ChatMessage]
Expand Down

0 comments on commit efbd6b7

Please sign in to comment.