Files
CLIProxyAPI/sdk/api/handlers/apply_patch_capability.go
Luis Pater 3ebee06516 fix(interactions): bridge apply_patch tool calls in responses translation
- Handle apply_patch custom tool call streaming deltas and snapshots for Responses API translation
- Track and resolve step indexes, function call identities, and error states across stream events
- Propagate apply_patch tool input errors and upstream failure states in stream and non-stream responses
2026-10-02 03:49:51 +08:00

14 lines
413 B
Go

package handlers
// SupportsApplyPatchModel follows the same public, non-image routing as execution.
func (h *BaseAPIHandler) SupportsApplyPatchModel(model string) bool {
if h == nil || h.AuthManager == nil {
return false
}
providers, _, errGetRequestDetails := h.getRequestDetails(model)
if errGetRequestDetails != nil {
return false
}
return h.AuthManager.SupportsApplyPatchForProviders(providers)
}