From efbd6b7e9be92f553bcbefcd71b47ab3755a1ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuana=20=C3=87elik?= Date: Mon, 17 Jun 2024 17:33:36 +0200 Subject: [PATCH] Update haystack_experimental/components/tools/openai/function_caller.py Co-authored-by: Massimiliano Pippi --- .../components/tools/openai/function_caller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haystack_experimental/components/tools/openai/function_caller.py b/haystack_experimental/components/tools/openai/function_caller.py index 306c5ff8..80544068 100644 --- a/haystack_experimental/components/tools/openai/function_caller.py +++ b/haystack_experimental/components/tools/openai/function_caller.py @@ -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]