fix(openai): support o-series models in `get_num_tokens_from_messages` (#38710)