aiprodcoder 3 месяцев назад
Родитель
Сommit
c48bd6bf7f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      common/constants.go
  2. 1 1
      relay/channel/openai/adaptor.go

+ 1 - 1
common/constants.go

@@ -11,7 +11,7 @@ import (
 
 var StartTime = time.Now().Unix() // unit: second
 var Version = "v0.0.0"            // this hard coding will be replaced automatically when building, no need to manually change
-var SystemName = "New API"
+var SystemName = "Mix API"
 var Footer = ""
 var Logo = ""
 var TopUpLink = ""

+ 1 - 1
relay/channel/openai/adaptor.go

@@ -147,7 +147,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info *
 	}
 	if info.ChannelType == constant.ChannelTypeOpenRouter {
 		header.Set("HTTP-Referer", "https://www.newapi.ai")
-		header.Set("X-Title", "New API")
+		header.Set("X-Title", "Mix API")
 	}
 	return nil
 }