Skip to content

Commit 2b375e3

Browse files
Fix an inaccurate comment in chunk_and_stitch_embed
The up-front validate_embedding_input() comment claimed the guard covers empty and non-string inputs, but the validator only rejects an empty list. Drop the non-string claim so the comment matches the code.
1 parent 8a87c39 commit 2b375e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/openarmature/retrieval/_wire.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def chunk_and_stitch_embed(
122122
# (cap == 0) or a misleading empty-stitched validation failure (cap < 0).
123123
if cap <= 0:
124124
raise ValueError(f"cap must be positive (got {cap})")
125-
# Validate the input up front (empty / non-string) so an empty input raises
125+
# Validate the input up front so an empty input raises
126126
# provider_invalid_request -- the caller-side contract error -- rather than
127127
# falling through to a misclassified provider_invalid_response from the
128128
# empty stitched-count check. Providers already call this before the helper;

0 commit comments

Comments
 (0)