Session Update - max_tokens incorrect

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

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

1 Like