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

feat: update header title for OpenRouter channel type

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

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

@@ -226,7 +226,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-OpenRouter-Title", "New API")
 	}
 	return nil
 }