feat: Add Parameters Override

This commit is contained in:
JoeyLearnsToCode
2025-03-29 14:39:39 +08:00
parent a378665b8c
commit 1b07282153
6 changed files with 51 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, mode
c.Set("channel_name", channel.Name)
c.Set("channel_type", channel.Type)
c.Set("channel_setting", channel.GetSetting())
c.Set("param_override", channel.GetParamOverride())
if nil != channel.OpenAIOrganization && "" != *channel.OpenAIOrganization {
c.Set("channel_organization", *channel.OpenAIOrganization)
}