Skip to content

Commit

Permalink
fix: playground request_start_time
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Dec 28, 2024
1 parent 8f4a2df commit 65d1cde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import (
"github.com/gin-gonic/gin"
"net/http"
"one-api/common"
"one-api/constant"
"one-api/dto"
"one-api/middleware"
"one-api/model"
"one-api/service"
"one-api/setting"
"time"
)

func Playground(c *gin.Context) {
Expand Down Expand Up @@ -62,5 +64,6 @@ func Playground(c *gin.Context) {
return
}
middleware.SetupContextForSelectedChannel(c, channel, playgroundRequest.Model)
c.Set(constant.ContextKeyRequestStartTime, time.Now())
Relay(c)
}

0 comments on commit 65d1cde

Please sign in to comment.