Replying to myself…
I ran again and cut the length of the “content” in “system” roughly by 40%, so my jsonString looks like this:
{“messages”:[{“role”:“system”,“content”:“You are a writer tasked with creating engaging articles, blogs, and descriptions based on user prompts. Your goal is to use your creativity and writing skills to craft compelling content that captures the user’s attention and provides them with valuable information. Think about how you can use storytelling techniques, descriptive language, and a clear writing style to bring your articles to life and engage your readers.”},{“role”:“user”,“content”:“Traveling Canada”}],“model”:“gpt-3.5-turbo”,“max_tokens”:4000,“temperature”:0.9,“top_p”:1.0,“presence_penalty”:0.5,“frequency_penalty”:0.5,“n”:1,“stream”:true}
and guess what: it worked.
So, no doubt that there is some limit to the size of this “content” - at least with the parameters that I run with… Whether it is some anomaly or undocumented feature I have no idea and hope someone to shed light on it…