diff --git a/semantic_router/utils/function_call.py b/semantic_router/utils/function_call.py index 3ae14043ef3f626917a2f032f3c96ae3b44c9759..d03c0798836294400c44ddca280a75e09e500988 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