From 1e79a038fe39100c502fd65596b3ed4bb9696afd Mon Sep 17 00:00:00 2001 From: mohamedo rayen <135092019+mohameodo@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:33:44 -0700 Subject: [PATCH] Fix errors in function calling blueprint, reload function, and URL conversion Add a return statement to the `call_function` method in `blueprints/function_calling_blueprint.py`. * Add a return statement after adding the function result to the system prompt in the `call_function` method. * Ensure the `call_function` method returns the updated messages. --- blueprints/function_calling_blueprint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blueprints/function_calling_blueprint.py b/blueprints/function_calling_blueprint.py index f4739b06..ad6a386e 100644 --- a/blueprints/function_calling_blueprint.py +++ b/blueprints/function_calling_blueprint.py @@ -137,6 +137,8 @@ def call_function(self, result, messages: list[dict]) -> list[dict]: # Return the updated messages return messages + return messages + def run_completion(self, system_prompt: str, content: str) -> dict: r = None try: