feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+4
View File
@@ -2,6 +2,7 @@ package middleware
import (
"context"
"time"
"github.com/QuantumNous/new-api/common"
"github.com/gin-gonic/gin"
@@ -9,6 +10,9 @@ import (
func RequestId() func(c *gin.Context) {
return func(c *gin.Context) {
if c.Request.URL.Path == "/v1/responses" {
c.Set("request_received_at", time.Now())
}
id := common.NewRequestId()
c.Set(common.RequestIdKey, id)
ctx := context.WithValue(c.Request.Context(), common.RequestIdKey, id)