mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-16 22:57:53 +08:00
- 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
14 lines
413 B
Go
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)
|
|
}
|