Actually, it’s the AI API (Which I use in my project) that requires the JSON in a specific format—like {"role":"user","content":"text"}—or it’ll throw an error saying the JSON is malformed.
If it has some same key name, how could i do ?
Like
{"role":"user","content":"text1","role":"system","content":"text2","role":"user","content":"text3"}........