diff --git a/blueprints/function_calling_blueprint.py b/blueprints/function_calling_blueprint.py index f4739b0..0390ed5 100644 --- a/blueprints/function_calling_blueprint.py +++ b/blueprints/function_calling_blueprint.py @@ -168,6 +168,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 != "":