@Phil ****
according to chatGPT you can, but need to schedule and appointment online. This wasn't an option when I did it, but that was during covid so it may be possible again now. Just an FYI, the embassy in chaing mai does not do passport renewals, mail in or in person.
Apparently if you do it that way you will get to retain your old passport while you wait for the new one. Which will still take 2-5 weeks.