Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Aug 19, 2024
1 parent f293678 commit e1ef5a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion semantic_router/utils/function_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def to_ollama(self):
"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
Expand Down

0 comments on commit e1ef5a0

Please sign in to comment.