Просмотр исходного кода

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

CaIon 8 месяцев назад
Родитель
Сommit
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)
 		header.Set("Authorization", "Bearer "+info.ApiKey)
 	}
 	}
 	if info.ChannelType == constant.ChannelTypeOpenRouter {
 	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")
 		header.Set("X-Title", "New API")
 	}
 	}
 	return nil
 	return nil