Skip to content

Commit

Permalink
Merge pull request HamaWhiteGG#44 from HamaWhiteGG/dev
Browse files Browse the repository at this point in the history
fix spotless
  • Loading branch information
HamaWhiteGG authored Jul 18, 2023
2 parents 717c0ae + 22029f8 commit 1766b71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

import lombok.Builder;
import lombok.experimental.SuperBuilder;
import okhttp3.Interceptor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import okhttp3.Interceptor;

import static com.hw.langchain.chat.models.openai.OpenAI.convertOpenAiToLangChain;
import static com.hw.langchain.utils.Utils.getOrEnvOrDefault;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

import lombok.Builder;
import lombok.experimental.SuperBuilder;
import okhttp3.Interceptor;

import java.util.*;
import okhttp3.Interceptor;

import static com.google.common.base.Preconditions.checkArgument;

Expand Down
6 changes: 3 additions & 3 deletions openai-client/src/main/java/com/hw/openai/OpenAiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
import com.hw.openai.service.OpenAiService;
import com.hw.openai.utils.ProxyUtils;

import java.util.List;
import okhttp3.Interceptor;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import lombok.Builder;
import lombok.Data;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.jackson.JacksonConverterFactory;

import java.util.List;
import java.util.concurrent.TimeUnit;

/**
Expand Down Expand Up @@ -121,7 +121,7 @@ public OpenAiClient init() {
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(LOG::debug);
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
httpClientBuilder.addInterceptor(loggingInterceptor);
if(this.interceptorList != null) {
if (this.interceptorList != null) {
this.interceptorList.forEach(httpClientBuilder::addInterceptor);
}

Expand Down

0 comments on commit 1766b71

Please sign in to comment.