소스 검색

feat: update header title for OpenRouter channel type

CaIon 2 달 전
부모
커밋
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
 }