We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c46ef7 commit 714a630Copy full SHA for 714a630
src/codegate/db/models.py
@@ -276,7 +276,7 @@ def nd_array_custom_serializer(x):
276
NdArray = Annotated[
277
np.ndarray,
278
BeforeValidator(nd_array_custom_before_validator),
279
- PlainSerializer(nd_array_custom_serializer, return_type=str),
+ PlainSerializer(nd_array_custom_serializer, return_type=np.ndarray),
280
]
281
282
VALID_PERSONA_NAME_PATTERN = re.compile(r"^[a-zA-Z0-9_ -]+$")
0 commit comments