Skip to content

Commit

Permalink
Fix langchain4j#444: Added missing GraalVM metadata for Gson and excl…
Browse files Browse the repository at this point in the history
…uded commons-logging (langchain4j#482)

This PR is a fix for langchain4j#444
- Missing metadata for Gson serialization was added for
`langchain4j-vertex-ai` module
- `commons-logging` was excluded from dependencies as it causes troubles
during native build
  • Loading branch information
langchain4j authored Jan 9, 2024
1 parent 93ff2f9 commit 8a7ad86
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
8 changes: 7 additions & 1 deletion langchain4j-vertex-ai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>3.24.0</version>
<version>3.33.0</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"name" : "dev.langchain4j.model.vertexai.VertexAiChatInstance",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "dev.langchain4j.model.vertexai.VertexAiChatInstance$Message",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "dev.langchain4j.model.vertexai.VertexAiEmbeddingInstance",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "dev.langchain4j.model.vertexai.VertexAiParameters",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "dev.langchain4j.model.vertexai.VertexAiTextInstance",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
}
]

0 comments on commit 8a7ad86

Please sign in to comment.