File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/com/langfuse/client Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,5 @@ as well.
4646 ` ` `
47473. Generate the new client code using ` npx fern-api generate --api server`.
48484. Manually set the `package` across all files to `com.langfuse.client`.
49- 5. Commit the changes in langfuse-java and push them to the repository.
49+ 5. Overwrite `this.clientOptionsBuilder.addHeader("Authorization", "Bearer " + encodedToken);` to `Basic` in LangfuseClientBuilder.java.
50+ 6. Commit the changes in langfuse-java and push them to the repository.
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public LangfuseClientBuilder httpClient(OkHttpClient httpClient) {
7979 public LangfuseClient build () {
8080 String unencodedToken = username + ":" + password ;
8181 String encodedToken = Base64 .getEncoder ().encodeToString (unencodedToken .getBytes ());
82- this .clientOptionsBuilder .addHeader ("Authorization" , "Bearer " + encodedToken );
82+ this .clientOptionsBuilder .addHeader ("Authorization" , "Basic " + encodedToken );
8383 if (xLangfuseSdkName != null ) {
8484 this .clientOptionsBuilder .addHeader ("X-Langfuse-Sdk-Name" , this .xLangfuseSdkName );
8585 }
You can’t perform that action at this time.
0 commit comments