We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd781d5 commit 4748e68Copy full SHA for 4748e68
libs/labelbox/src/labelbox/schema/data_row_metadata.py
@@ -65,7 +65,6 @@ class DataRowMetadataSchema(BaseModel):
65
DataRowMetadataSchema.model_rebuild()
66
67
Embedding: Type[List[float]] = conlist(float, min_length=128, max_length=128)
68
-String: Type[str] = Field(max_length=4096)
69
70
71
# Metadata base class
@@ -1011,10 +1010,6 @@ def _validate_parse_text(
1011
1010
raise ValueError(
1012
f"Expected a string type for the text field. Found {type(field.value)}"
1013
)
1014
- if len(field.value) > String.metadata[0].max_length:
1015
- raise ValueError(
1016
- f"String fields cannot exceed {String.metadata.max_length} characters."
1017
- )
1018
return [field.model_dump(by_alias=True)]
1019
1020
0 commit comments