# Max\_new\_token issue when send query

**URL:** <https://discuss.huggingface.co/t/max-new-token-issue-when-send-query/79116>\
**Category:** Beginners\
**Created:** [March 28, 2024, 11:29am UTC](https://discuss.huggingface.co/t/max-new-token-issue-when-send-query/79116 "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](https://discuss.huggingface.co/u/13Ankur)\
**Post date:** [March 28, 2024, 11:29am UTC](https://discuss.huggingface.co/t/max-new-token-issue-when-send-query/79116/1 "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
