Skip to content

Commit 2b5d36a

Browse files
committed
chore: update package
1 parent 32821a0 commit 2b5d36a

File tree

182 files changed

+724
-1023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+724
-1023
lines changed

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,29 @@ See the [Langfuse API reference](https://api.reference.langfuse.com) for more de
88
Add the langfuse-java API client as a dependency using
99
```xml
1010
<dependency>
11-
<groupId>com.langfuse</groupId>
12-
<artifactId>langfuse-java</artifactId>
13-
<version>0.0.1-SNAPSHOT</version>
11+
<groupId>com.langfuse</groupId>
12+
<artifactId>langfuse-java</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
1414
</dependency>
1515
```
1616
to fetch our [GitHub package](https://github.com/langfuse/langfuse-java/packages/2423464).
1717

18+
If you're not scanning the GitHub Package Registry by default, you'll have to add
19+
```xml
20+
<repositories>
21+
<repository>
22+
<id>github</id>
23+
<name>GitHub Package Registry</name>
24+
<url>https://maven.pkg.github.com/langfuse/langfuse-java</url>
25+
</repository>
26+
</repositories>
27+
```
28+
as well.
29+
30+
## Usage
31+
32+
33+
1834
## Updating
1935

2036
1. Ensure that langfuse-java is placed in the same directory as the main [langfuse](https://github.com/langfuse/langfuse) repository.
@@ -24,7 +40,10 @@ to fetch our [GitHub package](https://github.com/langfuse/langfuse-java/packages
2440
version: 2.20.1
2541
output:
2642
location: local-file-system
27-
path: ../../../../langfuse-java/src/main/java/com/langfuse/
43+
path: ../../../../langfuse-java/src/main/java/com/langfuse/client/
44+
config:
45+
client-class-name: LangfuseClient
2846
```
2947
3. Generate the new client code using `npx fern-api generate --api server`.
30-
4. Commit the changes in langfuse-java and push them to the repository.
48+
4. 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.

src/main/java/com/langfuse/LangfuseLangfuseClient.java

Lines changed: 0 additions & 155 deletions
This file was deleted.

src/main/java/com/langfuse/LangfuseLangfuseClientBuilder.java

Lines changed: 0 additions & 93 deletions
This file was deleted.

src/main/java/com/langfuse/core/ClientOptions.java renamed to src/main/java/com/langfuse/client/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import java.lang.String;
88
import java.util.HashMap;
@@ -27,7 +27,7 @@ private ClientOptions(Environment environment, Map<String, String> headers,
2727
this.environment = environment;
2828
this.headers = new HashMap<>();
2929
this.headers.putAll(headers);
30-
this.headers.putAll(new HashMap<String,String>() {{put("X-Fern-Language", "JAVA");put("X-Fern-SDK-Name", "com.langfuse.fern:langfuse-sdk");put("X-Fern-SDK-Version", "0.0.106");}});
30+
this.headers.putAll(new HashMap<String,String>() {{put("X-Fern-Language", "JAVA");put("X-Fern-SDK-Name", "com.langfuse.fern:langfuse-sdk");put("X-Fern-SDK-Version", "0.0.120");}});
3131
this.headerSuppliers = headerSuppliers;
3232
this.httpClient = httpClient;
3333
this.timeout = timeout;

src/main/java/com/langfuse/core/DateTimeDeserializer.java renamed to src/main/java/com/langfuse/client/core/DateTimeDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import com.fasterxml.jackson.core.JsonParser;
88
import com.fasterxml.jackson.core.JsonToken;

src/main/java/com/langfuse/core/Environment.java renamed to src/main/java/com/langfuse/client/core/Environment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import java.lang.String;
88

src/main/java/com/langfuse/core/FileStream.java renamed to src/main/java/com/langfuse/client/core/FileStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import java.io.InputStream;
88
import java.util.Objects;

src/main/java/com/langfuse/core/InputStreamRequestBody.java renamed to src/main/java/com/langfuse/client/core/InputStreamRequestBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import java.io.IOException;
88
import java.io.InputStream;

src/main/java/com/langfuse/core/MediaTypes.java renamed to src/main/java/com/langfuse/client/core/MediaTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import okhttp3.MediaType;
88

src/main/java/com/langfuse/core/ObjectMappers.java renamed to src/main/java/com/langfuse/client/core/ObjectMappers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
package core;
5+
package com.langfuse.client.core;
66

77
import com.fasterxml.jackson.annotation.JsonInclude;
88
import com.fasterxml.jackson.databind.DeserializationFeature;

0 commit comments

Comments
 (0)