feat: add /v1/resources/ long-op and content-type handling

This commit is contained in:
tian 2026-05-06 12:31:37 +08:00
parent 749587f98f
commit 559fd2c85c

View File

@ -90,6 +90,8 @@ func defaultContentTypeForPath(path string) string {
switch {
case strings.HasPrefix(path, "/v1/models/"):
return "application/octet-stream"
case strings.HasPrefix(path, "/v1/resources/"):
return "application/octet-stream"
case path == "/v1/face-gallery":
return "application/octet-stream"
default:
@ -113,6 +115,9 @@ func isLongOp(method, path string) bool {
if strings.HasPrefix(path, "/v1/models/") {
return true
}
if strings.HasPrefix(path, "/v1/resources/") {
return true
}
if path == "/v1/face-gallery" {
return true
}