From 995a9090e08b6c4f3244d1ffe99ffa79d5b48222 Mon Sep 17 00:00:00 2001 From: samsucik Date: Tue, 5 Nov 2024 17:18:27 +0100 Subject: [PATCH] fix bug in constructing function calling params --- prompterator/models/openai_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prompterator/models/openai_models.py b/prompterator/models/openai_models.py index 1a72656..ac25f67 100644 --- a/prompterator/models/openai_models.py +++ b/prompterator/models/openai_models.py @@ -108,7 +108,7 @@ def build_function_calling_tooling(json_schema, function_name): "function": { "name": function_name, "description": description, - "parameters": function, + "parameters": function["parameters"], }, } ]