From 2367d4916771460851adf843ac83ca5bad625be4 Mon Sep 17 00:00:00 2001 From: GaoYongWei <240590367@qq.com> Date: Mon, 4 Mar 2024 19:48:04 +0800 Subject: [PATCH] Update function_utils.py --- kwaiagents/utils/function_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwaiagents/utils/function_utils.py b/kwaiagents/utils/function_utils.py index 27120e7..f9e83ec 100644 --- a/kwaiagents/utils/function_utils.py +++ b/kwaiagents/utils/function_utils.py @@ -15,7 +15,7 @@ def transform_to_openai_function(func): } returns = { - "description": parsed.returns.description if hasattr(parsed.returns, "returns") else "", + "description": parsed.returns.description if hasattr(parsed.returns, "description") else "", "type": parsed.returns.type_name if hasattr(parsed.returns, "type_name") else "" }