diff --git a/blueprints/function_calling_blueprint.py b/blueprints/function_calling_blueprint.py index ad6a386..cb32c30 100644 --- a/blueprints/function_calling_blueprint.py +++ b/blueprints/function_calling_blueprint.py @@ -170,6 +170,7 @@ And answer according to the language of the user's question.""", response = r.json() content = response["choices"][0]["message"]["content"] + content = content[content.find('{'):content.rfind('}') + 1] # Parse the function response if content != "":