Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Switch Voyage HTTP client to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdbartholomew committed Apr 3, 2024
1 parent 8ccd7b2 commit c194ba1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public VoyageEmbeddingService(VoyageApiConfig conf) throws MalformedURLException
this.token = conf.accessKey;
this.modelUrl = new URL(conf.vgUrl);

this.httpClient = HttpClient.newHttpClient();
this.httpClient =
HttpClient.newBuilder()
.version(HttpClient.Version.HTTP_1_1) // Force HTTP/1.1
.build();
}

@Override
Expand Down

0 comments on commit c194ba1

Please sign in to comment.