diff --git a/blueprints/function_calling_blueprint.py b/blueprints/function_calling_blueprint.py index f4739b06..0390ed56 100644 --- a/blueprints/function_calling_blueprint.py +++ b/blueprints/function_calling_blueprint.py @@ -168,6 +168,7 @@ def run_completion(self, system_prompt: str, content: str) -> dict: response = r.json() content = response["choices"][0]["message"]["content"] + content = content[content.find('{'):content.rfind('}') + 1] # Parse the function response if content != "":