Skip to content

feat(embedding): return token limit details in the error - #21

Merged
HarshMN2345 merged 2 commits into
masterfrom
fix-embedding-too-long-error
Nov 18, 2026
Merged

HarshMN2345 merged 2 commits into
masterfrom
fix-embedding-too-long-error

docs: document the token limit error body

e98bbfd
Select commit
Loading
Failed to load commit list.
Appwrite / Hansi succeeded Nov 18, 2026 in 32s

Tier S: Ready to merge

Text-over-limit errors now retain the offending text index, token count, and limit, and the HTTP endpoint returns those details in a typed error object. Other error responses continue to use the existing string-valued error field.