@@ -15,7 +15,7 @@ The recommended way to install the langfuse-java API client is via Maven Central
1515<dependency >
1616 <groupId >com.langfuse</groupId >
1717 <artifactId >langfuse-java</artifactId >
18- <version >0.1.0 </version >
18+ <version >0.1.3 </version >
1919</dependency >
2020```
2121
@@ -34,6 +34,8 @@ LangfuseClient client = LangfuseClient.builder()
3434 .build();
3535```
3636
37+ An async client is also available via ` AsyncLangfuseClient.builder() ` with the same configuration options.
38+
3739Make requests using the clients:
3840
3941``` java
@@ -43,8 +45,8 @@ import com.langfuse.client.resources.prompts.types.PromptMetaListResponse;
4345try {
4446 PromptMetaListResponse prompts = client. prompts(). list();
4547} catch (LangfuseClientApiException error) {
46- System . out. println(error. getBody ());
47- System . out. println(error. getStatusCode ());
48+ System . out. println(error. body ());
49+ System . out. println(error. statusCode ());
4850}
4951```
5052
@@ -104,7 +106,7 @@ To publish to Maven Central, you need to configure the following secrets in your
1041062 . Setup a new Java fern generator using
105107 ``` yaml
106108 - name : fernapi/fern-java-sdk
107- version : 2.20 .1
109+ version : 3.38 .1
108110 output :
109111 location : local-file-system
110112 path : ../../../../langfuse-java/src/main/java/com/langfuse/client/
@@ -113,6 +115,6 @@ To publish to Maven Central, you need to configure the following secrets in your
113115 ` ` `
1141163. Generate the new client code using ` npx fern-api generate --api server`.
1151174. Manually set the `package` across all files to `com.langfuse.client`.
116- 5. Overwrite `this.clientOptionsBuilder.addHeader("Authorization", "Basic " + encodedToken);` to `Basic` in com.langfuse.client.LangfuseClientBuilder.java .
118+ 5. Verify that `LangfuseClientBuilder.setAuthentication()` uses `Basic` auth (not `Bearer`) .
1171196. Adjust Javadoc strings with HTML properties as the apidocs package does not support them.
1181207. Commit the changes in langfuse-java and push them to the repository.
0 commit comments