fix: playground chat

This commit is contained in:
feitianbubu
2025-07-16 23:41:31 +08:00
parent 31adc39353
commit 79522d7688
2 changed files with 14 additions and 3 deletions
+2 -3
View File
@@ -65,9 +65,8 @@ func Playground(c *gin.Context) {
Group: group,
}
_ = middleware.SetupContextForToken(c, tempToken)
_, err = getChannel(c, group, playgroundRequest.Model, 0)
if err != nil {
newAPIError = types.NewError(err, types.ErrorCodeGetChannelFailed)
_, newAPIError = getChannel(c, group, playgroundRequest.Model, 1)
if newAPIError != nil {
return
}
//middleware.SetupContextForSelectedChannel(c, channel, playgroundRequest.Model)