Assistant API does not work while assistant in Playground works perfectly (same inputs)

I had a similar issue. However, I took a different approach. I still used the assistant API but with manual embedding. This will require a few changes when the vector store issue is sorted.

Here is my approach in case you want to try it: