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.
This commit is contained in:
mohamedo rayen 2024-12-06 17:33:44 -07:00
parent 1367d95750
commit 1e79a038fe

View File

@ -137,6 +137,8 @@ And answer according to the language of the user's question.""",
# Return the updated messages
return messages
return messages
def run_completion(self, system_prompt: str, content: str) -> dict:
r = None
try: