Changes in embedding.py and symbold.py
Using another schema generation
This commit is contained in:
1 parent
78e5e5b878
commit
69efd51bb5
2 files changed
+2
-2
No files matched your search
@@ -23,7 +23,7 @@ class Symbol:
|
||||
}
|
||||
|
||||
return core_schema.json_or_python_schema(
|
||||
python_schema=core_schema.dataclass_schema(cls),
|
||||
python_schema=handler.generate_schema(cls),
|
||||
json_schema=core_schema.plain_serializer_function_ser_schema(
|
||||
serialize, when_used='json'
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user