feat: endpoint type log
This commit is contained in:
@@ -465,10 +465,6 @@ func GenRelayInfo(c *gin.Context, relayFormat types.RelayFormat, request dto.Req
|
||||
return nil, errors.New("invalid relay format")
|
||||
}
|
||||
|
||||
if info != nil {
|
||||
common.SetContextKey(c, constant.ContextKeyRelayFormat, string(info.RelayFormat))
|
||||
}
|
||||
|
||||
return info, nil
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user