Skip to content

Commit

Permalink
released 0.28.0 (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed Mar 11, 2024
1 parent a46fd20 commit 90fe304
Show file tree
Hide file tree
Showing 56 changed files with 240 additions and 194 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -23,7 +23,7 @@ Please provide a relevant code snippets to reproduce this bug.
A clear and concise description of what you expected to happen.

**Please complete the following information:**
- LangChain4j version: e.g. 0.27.1
- LangChain4j version: e.g. 0.28.0
- Java version: e.g. 11
- Spring Boot version (if applicable): e.g. 2.7.14

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-snapshot.yaml
Expand Up @@ -29,4 +29,4 @@ jobs:
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# Notes:
# - tests already run in a separate action (main)
run: mvn -B -U --fail-at-end -DskipTests -DskipLocalAiITs -DskipMongoDbAtlasITs -DskipOllamaITs -DskipVearchITs -DskipVertexAiGeminiITs clean deploy
run: mvn -B -U --fail-at-end -DskipTests -DskipAnthropicITs -DskipLocalAiITs -DskipMilvusITs -DskipMongoDbAtlasITs -DskipOllamaITs -DskipVearchITs -DskipVertexAiGeminiITs clean deploy
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Expand Up @@ -35,8 +35,9 @@ jobs:
token: ${{ secrets.TC_CLOUD_TOKEN }}

- name: release
run: mvn -B -U --fail-at-end -DskipLocalAiITs -DskipMongoDbAtlasITs -DskipOllamaITs -DskipVearchITs -DskipVertexAiGeminiITs -Psign clean deploy
run: mvn -B -U --fail-at-end -DskipTests -DskipAnthropicITs -DskipLocalAiITs -DskipMilvusITs -DskipMongoDbAtlasITs -DskipOllamaITs -DskipVearchITs -DskipVertexAiGeminiITs -Psign clean deploy
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_KEY: ${{ secrets.AZURE_OPENAI_KEY }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -270,12 +270,12 @@ See example [here](https://github.com/langchain4j/langchain4j-examples/blob/main
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-open-ai</artifactId>
<version>0.27.1</version>
<version>0.28.0</version>
</dependency>
```
- Gradle:
```groovy
implementation 'dev.langchain4j:langchain4j-open-ai:0.27.1'
implementation 'dev.langchain4j:langchain4j-open-ai:0.28.0'
```

2. Import your OpenAI API key:
Expand Down
Expand Up @@ -7,13 +7,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-code-execution-engine-graalvm-polyglot</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: GraalVM Polyglot/Truffle</name>
<description>Implementation of JavaScript and Python code execution engines and tools using GraalVM Polyglot/Truffle</description>

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/get-started.md
Expand Up @@ -24,13 +24,13 @@ In this case, we should add the OpenAI dependency:
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-open-ai</artifactId>
<version>0.27.1</version>
<version>0.28.0</version>
</dependency>
```

- For Gradle in `build.gradle`:
```groovy
implementation 'dev.langchain4j:langchain4j-open-ai:0.27.1'
implementation 'dev.langchain4j:langchain4j-open-ai:0.28.0'
```

Then, import your OpenAI API key.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/language-models/anthropic.md
Expand Up @@ -10,7 +10,7 @@ sidebar_position: 5
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-anthropic</artifactId>
<version>0.27.1</version>
<version>0.28.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/spring-boot-integration.md
Expand Up @@ -13,7 +13,7 @@ To use one of the Spring Boot starters, first import the corresponding dependenc
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-open-ai-spring-boot-starter</artifactId>
<version>0.27.1</version>
<version>0.28.0</version>
</dependency>
```

Expand Down
Expand Up @@ -7,13 +7,12 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-document-loader-amazon-s3</artifactId>
<name>LangChain4j :: Document loader :: Amazon S3</name>
<packaging>jar</packaging>

<dependencies>

Expand Down
Expand Up @@ -7,13 +7,12 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-document-loader-azure-storage-blob</artifactId>
<name>LangChain4j :: Document loader :: Azure Blob Storage</name>
<packaging>jar</packaging>

<dependencies>

Expand Down
3 changes: 1 addition & 2 deletions document-loaders/langchain4j-document-loader-github/pom.xml
Expand Up @@ -7,13 +7,12 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-document-loader-github</artifactId>
<name>LangChain4j :: Document loader :: GitHub</name>
<packaging>jar</packaging>

<dependencies>

Expand Down
Expand Up @@ -6,13 +6,12 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-document-loader-tencent-cos</artifactId>
<name>LangChain4j :: Document loader :: Tencent COS</name>
<packaging>jar</packaging>

<dependencies>
<dependency>
Expand Down
Expand Up @@ -7,13 +7,12 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-document-parser-apache-pdfbox</artifactId>
<name>LangChain4j :: Document parser :: Apache PDFBox</name>
<packaging>jar</packaging>

<dependencies>

Expand Down
Expand Up @@ -7,13 +7,12 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-document-parser-apache-poi</artifactId>
<name>LangChain4j :: Document parser :: Apache POI</name>
<packaging>jar</packaging>

<properties>
<apache.poi.version>5.2.5</apache.poi.version>
Expand Down
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../../langchain4j-parent/pom.xml</relativePath>
</parent>

Expand Down
18 changes: 17 additions & 1 deletion langchain4j-anthropic/pom.xml
Expand Up @@ -5,13 +5,17 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-anthropic</artifactId>
<name>LangChain4j :: Integration :: Anthropic</name>

<properties>
<skipAnthropicITs>false</skipAnthropicITs>
</properties>

<dependencies>

<dependency>
Expand Down Expand Up @@ -97,6 +101,18 @@

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skipTests>${skipAnthropicITs}</skipTests>
</configuration>
</plugin>
</plugins>
</build>

<licenses>
<license>
<name>Apache-2.0</name>
Expand Down
Expand Up @@ -91,12 +91,12 @@ private AnthropicChatModel(String baseUrl,

public static class AnthropicChatModelBuilder {

AnthropicChatModelBuilder modelName(String modelName) {
public AnthropicChatModelBuilder modelName(String modelName) {
this.modelName = modelName;
return this;
}

AnthropicChatModelBuilder modelName(AnthropicChatModelName modelName) {
public AnthropicChatModelBuilder modelName(AnthropicChatModelName modelName) {
this.modelName = modelName.toString();
return this;
}
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-azure-ai-search/pom.xml
Expand Up @@ -7,13 +7,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-azure-ai-search</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: Azure AI Search</name>

<dependencies>
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-azure-open-ai/pom.xml
Expand Up @@ -7,13 +7,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-azure-open-ai</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: Azure OpenAI</name>

<dependencies>
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-bedrock/pom.xml
Expand Up @@ -6,13 +6,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-bedrock</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: Amazon Bedrock</name>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion langchain4j-bom/pom.xml
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion langchain4j-cassandra/pom.xml
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

Expand Down
4 changes: 1 addition & 3 deletions langchain4j-chatglm/pom.xml
Expand Up @@ -6,13 +6,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-chatglm</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: ChatGLM</name>

<dependencies>
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-chroma/pom.xml
Expand Up @@ -7,13 +7,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-chroma</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: Chroma</name>

<dependencies>
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-cohere/pom.xml
Expand Up @@ -6,13 +6,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-cohere</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: Cohere</name>

<dependencies>
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-core/pom.xml
Expand Up @@ -12,13 +12,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-core</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Core</name>
<description>Core classes and interfaces of LangChain4j</description>

Expand Down
4 changes: 1 addition & 3 deletions langchain4j-dashscope/pom.xml
Expand Up @@ -7,13 +7,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-dashscope</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: DashScope</name>

<dependencies>
Expand Down
4 changes: 1 addition & 3 deletions langchain4j-elasticsearch/pom.xml
Expand Up @@ -7,13 +7,11 @@
<parent>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-parent</artifactId>
<version>0.28.0-SNAPSHOT</version>
<version>0.28.0</version>
<relativePath>../langchain4j-parent/pom.xml</relativePath>
</parent>

<artifactId>langchain4j-elasticsearch</artifactId>
<packaging>jar</packaging>

<name>LangChain4j :: Integration :: Elasticsearch</name>

<dependencies>
Expand Down

0 comments on commit 90fe304

Please sign in to comment.