When using the Claude model, standard chat functionalities work perfectly fine. However, triggering a “create file” action causes an error and fails. Interestingly, if I switch the model to Gemini, the exact same file creation process completes successfully without any issues.
Based on the error logs, it seems the file creation workflow uses the “assistant message prefill” feature (ending the conversation payload with an assistant message) when calling the API, but the currently integrated Claude model does not support this format.
Error Logs:
-
Trajectory ID: `a4ac628c-cb60-4ea2-9518-88202c8e…
-
Error:
HTTP 400 Bad Request -
TraceID: `0x2036d0d8abf22f..
Sherlog / Headers:
{
“Alt-Svc”: [“h3=”:443"; ma=2592000,h3-29=“:443”; ma=2592000"],
“Content-Length”: [“328”],
“Content-Type”: [“text/event-stream”],
“Date”: [“Thu, 28 May 2026 18:19:30 GMT”],
“Server”: [“ESF”],
“Server-Timing”: [“gfet4t7; dur=1319”],
“Vary”: [“Origin”,“X-Origin”,“Referer”],
“X-Cloudaicompanion-Trace-Id”: [“2036d0d8abf22f89”],
“X-Content-Type-Options”: [“nosniff”],
“X-Frame-Options”: [“SAMEORIGIN”],
“X-Xss-Protection”: [“0”]
}
Error Body:
{
“error”: {
“code”: 400,
“message”: “{“type”:“error”,“error”:{“type”:“invalid_request_error”,“message”:“This model does not support assistant message prefill. The conversation must end with a user message.”},“request_id”:“req_vrtx_011CbVRohMJpnjdouz7xHwm7”}”,
“status”: “INVALID_ARGUMENT”
}
}