Skip to content

Commit 0d43a59

Browse files
committed
chore: update readme
1 parent 3805fa4 commit 0d43a59

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
3739
Make requests using the clients:
3840

3941
```java
@@ -43,8 +45,8 @@ import com.langfuse.client.resources.prompts.types.PromptMetaListResponse;
4345
try {
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
104106
2. 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
```
114116
3. Generate the new client code using `npx fern-api generate --api server`.
115117
4. 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`).
117119
6. Adjust Javadoc strings with HTML properties as the apidocs package does not support them.
118120
7. Commit the changes in langfuse-java and push them to the repository.

0 commit comments

Comments
 (0)