mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
feat: playground token name
This commit is contained in:
parent
8cea6dff4a
commit
e298f2e5a4
@ -73,6 +73,7 @@ func Playground(c *gin.Context) {
|
|||||||
} else {
|
} else {
|
||||||
c.Set("group", group)
|
c.Set("group", group)
|
||||||
}
|
}
|
||||||
|
c.Set("token_name", "playground-"+group)
|
||||||
channel, err := model.CacheGetRandomSatisfiedChannel(group, playgroundRequest.Model, 0)
|
channel, err := model.CacheGetRandomSatisfiedChannel(group, playgroundRequest.Model, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
message := fmt.Sprintf("当前分组 %s 下对于模型 %s 无可用渠道", group, playgroundRequest.Model)
|
message := fmt.Sprintf("当前分组 %s 下对于模型 %s 无可用渠道", group, playgroundRequest.Model)
|
||||||
|
Loading…
Reference in New Issue
Block a user