You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add a parameter to the Jina Reader API that allows limiting the output length (e.g., max_output_tokens). This would let users retrieve partial content, such as the first 5,000 tokens, without hitting the token budget errors or receiving full responses. It would improve efficiency for workflows that only need the initial portion of extracted text.
Activity
AyusKumarPathak commentedon Jan 4, 2026
@MatejRojec @joshdevins @nomagick @hanxiao @crazyurus
Hello maintainers 👋
I want to implement support for the
max_output_tokensparameter.Solution plan:
Please assign this to me if that’s okay.
— AyusKumarPathak
nomagick commentedon May 11, 2026
Solved. Now you can pass
x-max-tokens: nwhere n needs to be > 500.reader/src/dto/crawler-options.ts
Lines 254 to 257 in 6d96149