Found the solution!!! All I had to do was check what version of Ktor is compatible with allam-openai. Turns out, it was 2.3.2 instead of 3.0.2 which I was using.
It was all 1 ChatGPT search away :sobbing: ChatGPT output