@@ -68,7 +68,7 @@ public class OpenAiModerationApi {
6868 */
6969 public OpenAiModerationApi (String baseUrl , ApiKey apiKey , MultiValueMap <String , String > headers ,
7070 RestClient .Builder restClientBuilder , ResponseErrorHandler responseErrorHandler ) {
71- this (baseUrl , OpenAiApiConstants . DEFAULT_MODERATION_PATH , apiKey , headers , restClientBuilder ,
71+ this (baseUrl , apiKey , headers , OpenAiApiConstants . DEFAULT_MODERATION_PATH , restClientBuilder ,
7272 responseErrorHandler );
7373 }
7474
@@ -79,9 +79,8 @@ public OpenAiModerationApi(String baseUrl, ApiKey apiKey, MultiValueMap<String,
7979 * @param restClientBuilder the rest client builder to use.
8080 * @param moderationPath the moderation path to use.
8181 */
82- public OpenAiModerationApi (String baseUrl , String moderationPath , ApiKey apiKey ,
83- MultiValueMap <String , String > headers , RestClient .Builder restClientBuilder ,
84- ResponseErrorHandler responseErrorHandler ) {
82+ public OpenAiModerationApi (String baseUrl , ApiKey apiKey , MultiValueMap <String , String > headers ,
83+ String moderationPath , RestClient .Builder restClientBuilder , ResponseErrorHandler responseErrorHandler ) {
8584 Assert .hasText (moderationPath , "moderationPath cannot be null or empty" );
8685
8786 this .moderationPath = moderationPath ;
@@ -251,7 +250,7 @@ public Builder responseErrorHandler(ResponseErrorHandler responseErrorHandler) {
251250
252251 public OpenAiModerationApi build () {
253252 Assert .notNull (this .apiKey , "apiKey must be set" );
254- return new OpenAiModerationApi (this .baseUrl , this .moderationPath , this .apiKey , this .headers ,
253+ return new OpenAiModerationApi (this .baseUrl , this .apiKey , this .headers , this .moderationPath ,
255254 this .restClientBuilder , this .responseErrorHandler );
256255 }
257256
0 commit comments