The error below happens every time I send the following payload, I think either because the provider has a bug or there's one in the Completions <-> Responses API conversion. I see that the default OpenRouter's chat interface uses Responses with the LLM, so it may be the cause. Haven't tested with other models.
{
"error": {
"message": "Provider returned error",
"code": 400,
"metadata": {
"raw": "ERROR",
"provider_name": "Stealth"
}
},
"user_id": "user_xxx"
}
{
"messages": [
{
"content": "Continue numbers",
"role": "system"
},
{
"content": "123",
"role": "user"
},
{
"content": null,
"name": "number_agent",
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "777",
"function": {
"name": "start_file_agent",
"arguments": "{\"question\": \"What are the numbers available?\"}"
}
}
]
},
{
"content": "Some system string",
"name": "number_agent_test_system",
"role": "system"
},
{
"content": "4, 5, 6",
"role": "tool",
"tool_call_id": "777"
}
],
"model": "openrouter/polaris-alpha",
"stream": false
}