From e1ef5a035800951b5aac9217ef136b0257b8ab8f Mon Sep 17 00:00:00 2001 From: James Briggs <james.briggs@hotmail.com> Date: Mon, 19 Aug 2024 14:59:33 +0200 Subject: [PATCH] fix: test --- semantic_router/utils/function_call.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/semantic_router/utils/function_call.py b/semantic_router/utils/function_call.py index 3ae14043..d03c0798 100644 --- a/semantic_router/utils/function_call.py +++ b/semantic_router/utils/function_call.py @@ -77,7 +77,11 @@ class FunctionSchema: "type": "object", "properties": { param.name: { - "description": param.description, + "description": ( + param.description + if isinstance(param.description, str) + else None + ), "type": self._ollama_type_mapping(param.type), } for param in self.parameters -- GitLab