Skip to content

Conversation

fzowl
Copy link
Contributor

@fzowl fzowl commented Oct 14, 2025

Adding contextual model support
Counting the tokens and batching
Tests

fzowl added 2 commits October 14, 2025 16:50
Supporting contextual models
Extending the tests
cursor[bot]

This comment was marked as outdated.

)
# Early return for empty input
if not input:
return []
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Early Return Alters Expected Error Handling

The __call__ method's new early return for empty input now returns an empty list. This bypasses the expected ValueError for empty inputs, which existing tests and ChromaDB's EmbeddingFunction validation rely on.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant