feat: endpoint type log

This commit is contained in:
Seefs
2025-10-13 22:44:40 +08:00
parent 9718568179
commit b3fc7255ee
6 changed files with 113 additions and 39 deletions

View File

@@ -165,8 +165,8 @@ func RelayTaskSubmit(c *gin.Context, info *relaycommon.RelayInfo) (taskErr *dto.
}
}
other := make(map[string]interface{})
if info.RelayFormat != "" {
other["relay_format"] = string(info.RelayFormat)
if c != nil && c.Request != nil && c.Request.URL != nil {
other["request_path"] = c.Request.URL.Path
}
other["model_price"] = modelPrice
other["group_ratio"] = groupRatio