Playground gets the correct file path but when same question asked from API it takes a wrong path

I have an OpenAI assistant with one file. It is being used to search for and retrieve data from the file. It works perfectly in the playground, but when doing the same from API calls, it loads the file up wrong. We can see the path to the file is wrong.

This worked perfectly with YouTube links being there in the file. When the links were changed to Azure, it started causing all these problems.