Skip to content
Snippets Groups Projects
Commit e1ef5a03 authored by James Briggs's avatar James Briggs
Browse files

fix: test

parent f2936780
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,11 @@ class FunctionSchema: ...@@ -77,7 +77,11 @@ class FunctionSchema:
"type": "object", "type": "object",
"properties": { "properties": {
param.name: { param.name: {
"description": param.description, "description": (
param.description
if isinstance(param.description, str)
else None
),
"type": self._ollama_type_mapping(param.type), "type": self._ollama_type_mapping(param.type),
} }
for param in self.parameters for param in self.parameters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment