cog
c9c9a012 - fix: support dict and bare list as prediction output types in schema gen

Commit
12 days ago
fix: support dict and bare list as prediction output types in schema gen The tree-sitter schema parser rejected unparameterized dict and list return types with 'unsupported type'. This broke the resnet example and any predictor returning -> dict or -> list. - dict/Dict map to TypeAny (JSON Schema: {"type": "object"}) - list/List map to OutputList with TypeAny (JSON Schema: {"type": "array", "items": {"type": "object"}}) This matches the old Python schema gen behavior exactly: dict -> Dict[str, Any] -> {"type": "object"} list -> List[Any] -> {"type": "array", "items": {"type": "object"}}
Author
Committer
Parents
Loading