fix: add missing UpstreamModelName

This commit is contained in:
1808837298@qq.com
2024-03-02 21:05:02 +08:00
parent 7297c6269f
commit cbe0a1fa76
3 changed files with 1 additions and 4 deletions

View File

@@ -34,7 +34,6 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
userId := c.GetInt("id")
group := c.GetString("group")
tokenUnlimited := c.GetBool("token_unlimited_quota")
upstreamModelName := c.GetString("model_name")
startTime := time.Now()
apiType := constant.ChannelType2APIType(channelType)
@@ -53,7 +52,6 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
ApiType: apiType,
ApiVersion: c.GetString("api_version"),
ApiKey: strings.TrimPrefix(c.Request.Header.Get("Authorization"), "Bearer "),
UpstreamModelName: upstreamModelName,
}
if info.BaseUrl == "" {
info.BaseUrl = common.ChannelBaseURLs[channelType]