feat: 渠道新可选是否自动禁用功能

This commit is contained in:
CaIon
2023-09-25 18:44:10 +08:00
parent 3d55548c92
commit 80271b33ba
6 changed files with 45 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ func Distribute() func(c *gin.Context) {
c.Set("channel", channel.Type)
c.Set("channel_id", channel.Id)
c.Set("channel_name", channel.Name)
c.Set("auto_ban", channel.AutoBan)
c.Set("model_mapping", channel.GetModelMapping())
c.Request.Header.Set("Authorization", fmt.Sprintf("Bearer %s", channel.Key))
c.Set("base_url", channel.GetBaseURL())