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

fix: add function schema handling for null string

parent ea7e3f49
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class BaseIndex(BaseModel): ...@@ -54,7 +54,7 @@ class BaseIndex(BaseModel):
( (
x["sr_route"], x["sr_route"],
x["sr_utterance"], x["sr_utterance"],
x.get("sr_function_schema", None), None if (fc := x.get("sr_function_schema", None)) == "null" else fc,
x.get("sr_metadata", {}), x.get("sr_metadata", {}),
) )
for x in metadata for x in metadata
......
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