Different responses assistant playground vs api - using same assistant id

The response from the playground give accurate and wanted response, but using the api the accuracy is poor. I am using the same assistant. I followed the process of how to implement the assistant from the openai documentation. Not sure how best to troubleshoot this/ is there an obvious fix?