Преглед изворни кода

🔧 refactor(adaptor): update HTTP referer to new API domain

CaIon пре 8 месеци
родитељ
комит
265c7d93a2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      relay/channel/openai/adaptor.go

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

@@ -145,7 +145,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info *
 		header.Set("Authorization", "Bearer "+info.ApiKey)
 	}
 	if info.ChannelType == constant.ChannelTypeOpenRouter {
-		header.Set("HTTP-Referer", "https://github.com/Calcium-Ion/new-api")
+		header.Set("HTTP-Referer", "https://www.newapi.ai")
 		header.Set("X-Title", "New API")
 	}
 	return nil