Thank you, it seems that I fixed the issue based on your advice, I changed the code so it uses chat completion, and my fine-tuning model instead, and now it works fine.
Thank you both for your help @Foxalabs @sps