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

This commit is contained in:
CaIon committed 2023-09-25 18:44:10 +08:00
1 parent 4199979c01
commit cba411ee9e
6 files changed
+45 -4

No files matched your search

+1
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())