Moein
05/24/2025, 2:45 PMmodel.systemPrompt: "This is a system prompt"
However, it appears that the API now expects the system prompt to be included in a new structure under model.messages, like so:
model.messages: [
{
"role": "system",
"content": "Sample prompt for me."
}
]
This looks like a breaking change that isn’t backward compatible. and I couldn’t find any announcement or changelog about it!Shubham Bajaj
05/26/2025, 5:06 AM