400 Error during API Call

Your “build_prompt” variable returns a string, but the requirement for the chat API completion param is JSON array.

:slight_smile: