Spaces:
Running
Running
fahmiaziz98
commited on
Commit
·
396e77c
1
Parent(s):
f55bc7f
init
Browse files
src/models/schemas/requests.py
CHANGED
|
@@ -79,8 +79,6 @@ class EmbedRequest(BaseEmbedRequest):
|
|
| 79 |
for idx, text in enumerate(v):
|
| 80 |
if not isinstance(text, str):
|
| 81 |
raise ValueError(f"texts[{idx}] must be a string")
|
| 82 |
-
if not text.strip():
|
| 83 |
-
raise ValueError(f"texts[{idx}] cannot be empty or whitespace only")
|
| 84 |
validated.append(text)
|
| 85 |
|
| 86 |
return validated
|
|
|
|
| 79 |
for idx, text in enumerate(v):
|
| 80 |
if not isinstance(text, str):
|
| 81 |
raise ValueError(f"texts[{idx}] must be a string")
|
|
|
|
|
|
|
| 82 |
validated.append(text)
|
| 83 |
|
| 84 |
return validated
|