# Session Update - max\_tokens incorrect

**URL:** <https://community.openai.com/t/session-update-max-tokens-incorrect/971017>\
**Category:** Bugs\
**Tags:** realtime\
**Created:** [October 8, 2024, 1:46am UTC](https://community.openai.com/t/session-update-max-tokens-incorrect/971017 "2024-10-08T01:46:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Echoshard](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/echoshard/32/419861_2.png) [@Echoshard](https://community.openai.com/u/Echoshard)\
**Post date:** [October 8, 2024, 1:46am UTC](https://community.openai.com/t/session-update-max-tokens-incorrect/971017/1 "2024-10-08T01:46:29Z")

</div>

When trying to limit the max tokens from infinite when sending session-update it’s  
`max_response_output_tokens` not `max_output_tokens`

The documentation is incorrect. [https://platform.openai.com/docs/api-reference/realtime-client-events/session-update](https://platform.openai.com/docs/api-reference/realtime-client-events/session-update)

Just in case anyone else was trying to limit how much it responded back
