# Max\_new\_token issue when send query

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-new-token-issue-when-send-query%2F79116%3E%5C
**Category:** Beginners\
**Created:** [March 28, 2024, 11:29am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-new-token-issue-when-send-query%2F79116 "2024-03-28T11:29:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![13Ankur](https://avatars.discourse-cdn.com/v4/letter/1/ecd19e/32.png) [@13Ankur](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2F13Ankur)%5C
**Post date:** [March 28, 2024, 11:29am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-new-token-issue-when-send-query%2F79116%2F1 "2024-03-28T11:29:42Z")

</div>

i am getting this error :- {‘error’: ‘Input validation error: `max_new_tokens` must be \<= 488. Given: 1024’, ‘error\_type’: ‘validation’} =========\> {‘error’: ‘Input validation error: `max_new_tokens` must be \<= 488. Given: 1024’, ‘error\_type’: ‘validation’} what i can do for it

when i set to 487 it doesn’t gives full answer
