From e298f2e5a473b608627cf700fa1ef1810c20b186 Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Thu, 10 Oct 2024 13:34:29 +0800 Subject: [PATCH] feat: playground token name --- controller/relay.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/relay.go b/controller/relay.go index 28c8c80..ef04232 100644 --- a/controller/relay.go +++ b/controller/relay.go @@ -73,6 +73,7 @@ func Playground(c *gin.Context) { } else { c.Set("group", group) } + c.Set("token_name", "playground-"+group) channel, err := model.CacheGetRandomSatisfiedChannel(group, playgroundRequest.Model, 0) if err != nil { message := fmt.Sprintf("当前分组 %s 下对于模型 %s 无可用渠道", group, playgroundRequest.Model)