Repository navigation
Ollama Cloud Does Not Support custom_tool_call Payload Used by Copilot CLI #3839
Description
Summary
When using Copilot CLI v1.0.63 in Fleet Mode with a BYOK model routed through Ollama Cloud, requests may fail with the following error:
400 litellm.BadRequestError: OpenAIException - {"error":{"message":"input[69]: unknown input item type: \"custom_tool_call\"","type":"invalid_request_error","param":null,"code":null}}
Received Model Group=glm-5.2:cloud
Available Model Group Fallbacks=None
The failure does not appear to be model-specific.
Instead, the request generated by Copilot CLI Fleet Mode contains a custom_tool_call input item type that Ollama Cloud currently does not support.
Environment
- Copilot CLI
- Fleet Mode enabled
- BYOK Provider: Ollama Cloud
- Gateway: LiteLLM
- Example Model:
glm-5.2:cloud
Actual Behavior
When Fleet Mode invokes tools or agent workflows, Copilot CLI sends one or more custom_tool_call items within the request payload.
Ollama Cloud rejects the request with:
unknown input item type: "custom_tool_call"
The request is rejected before reaching model inference.
Expected Behavior
One of the following should happen:
- Ollama Cloud supports the
custom_tool_callinput type used by Fleet Mode. - Copilot CLI detects that the target provider does not support
custom_tool_calland falls back to a compatible format. - Copilot CLI provides a configuration option to disable Fleet-specific tool payloads for OpenAI-compatible providers with limited feature support.
Reproduction
- Configure Copilot CLI to use a BYOK model through LiteLLM.
- Configure LiteLLM to route requests to Ollama Cloud.
- Enable Fleet Mode.
- Execute a prompt that triggers agent or tool execution.
- Observe the following error:
400 litellm.BadRequestError: OpenAIException - {"error":{"message":"input[69]: unknown input item type: \"custom_tool_call\"","type":"invalid_request_error","param":null,"code":null}}
Notes
Based on the error message, the request appears to be rejected by the Ollama Cloud API compatibility layer before reaching the underlying model.
This suggests the issue is related to Fleet Mode request formatting and provider capability compatibility rather than the specific model being used.
Any model hosted through Ollama Cloud may be affected when Fleet Mode emits custom_tool_call payloads.
Activity
[-]When using Copilot CLI with a BYOK (Bring Your Own Key) model provider, some non-OpenAI compatible models fail because the request payload contains an unsupported input item type: custom_tool_call. The issue was reproduced using the glm-5.2:cloud model.[/-][+]Ollama Cloud Does Not Support custom_tool_call Payload Used by Copilot CLI[/+]weweaaa commentedon Jun 17, 2026
From the error message, it looks like the request is rejected by the Ollama Cloud compatibility layer before reaching the model. Therefore, the issue appears to be related to API feature support (custom_tool_call) rather than the specific model (glm-5.2:cloud) being used.
patniko commentedon Oct 26, 2026
Thanks for the report. We've shipped fixes in this area since this was filed (most recently in Copilot CLI v1.0.102), and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.