From 317affbbaa20d010f15a509664f2d8764cd6da6d Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Mon, 25 Mar 2024 18:28:57 +0100 Subject: [PATCH 1/6] released 0.29.0 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- langchain4j-easy-rag-spring-boot-starter/pom.xml | 2 +- langchain4j-ollama-spring-boot-starter/pom.xml | 2 +- langchain4j-open-ai-spring-boot-starter/pom.xml | 2 +- langchain4j-spring-boot-starter/pom.xml | 2 +- pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index ccd0f278..a28ce02a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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.28.0 +- LangChain4j version: e.g. 0.29.0 - Java version: e.g. 11 - Spring Boot version: e.g. 2.7.18 diff --git a/langchain4j-easy-rag-spring-boot-starter/pom.xml b/langchain4j-easy-rag-spring-boot-starter/pom.xml index e16d86cf..9dc7f579 100644 --- a/langchain4j-easy-rag-spring-boot-starter/pom.xml +++ b/langchain4j-easy-rag-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.29.0-SNAPSHOT + 0.29.0 ../pom.xml diff --git a/langchain4j-ollama-spring-boot-starter/pom.xml b/langchain4j-ollama-spring-boot-starter/pom.xml index 26e911cb..52c65d7b 100644 --- a/langchain4j-ollama-spring-boot-starter/pom.xml +++ b/langchain4j-ollama-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.29.0-SNAPSHOT + 0.29.0 ../pom.xml diff --git a/langchain4j-open-ai-spring-boot-starter/pom.xml b/langchain4j-open-ai-spring-boot-starter/pom.xml index da853fef..af5fca38 100644 --- a/langchain4j-open-ai-spring-boot-starter/pom.xml +++ b/langchain4j-open-ai-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.29.0-SNAPSHOT + 0.29.0 ../pom.xml diff --git a/langchain4j-spring-boot-starter/pom.xml b/langchain4j-spring-boot-starter/pom.xml index a8b89b96..0f591543 100644 --- a/langchain4j-spring-boot-starter/pom.xml +++ b/langchain4j-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.29.0-SNAPSHOT + 0.29.0 ../pom.xml diff --git a/pom.xml b/pom.xml index a1e1886a..9f8bbe79 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.langchain4j langchain4j-spring - 0.29.0-SNAPSHOT + 0.29.0 pom langchain4j-spring parent POM From b4bfeb5196dc5f476c845813273f9f8e428895ce Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Mon, 25 Mar 2024 19:20:05 +0100 Subject: [PATCH 2/6] released 0.29.0 --- langchain4j-anthropic-spring-boot-starter/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain4j-anthropic-spring-boot-starter/pom.xml b/langchain4j-anthropic-spring-boot-starter/pom.xml index 9be3489a..45b4357a 100644 --- a/langchain4j-anthropic-spring-boot-starter/pom.xml +++ b/langchain4j-anthropic-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.29.0-SNAPSHOT + 0.29.0 ../pom.xml From c907581378bc3c91b41a2f386b7b4040974aef18 Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Mon, 25 Mar 2024 19:29:56 +0100 Subject: [PATCH 3/6] released 0.29.0 --- .github/workflows/main.yaml | 1 + .github/workflows/release.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bbcc082b..f3f5671e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,6 +28,7 @@ jobs: - name: Build with JDK ${{ matrix.java_version }} run: mvn -U -B deploy env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 772fb7fd..e99efc92 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,6 +27,7 @@ jobs: - name: release run: mvn -B -U --fail-at-end -Psign clean deploy env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} From 768b97bc2906a9392b2b6269e5b4b756702515b5 Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Mon, 25 Mar 2024 19:37:00 +0100 Subject: [PATCH 4/6] released 0.29.0 --- .../java/dev/langchain4j/anthropic/spring/AutoConfigIT.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java b/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java index d150f7ae..c38d24da 100644 --- a/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java +++ b/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java @@ -7,6 +7,7 @@ import dev.langchain4j.model.chat.ChatLanguageModel; import dev.langchain4j.model.chat.StreamingChatLanguageModel; import dev.langchain4j.model.output.Response; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.ApplicationContextRunner; @@ -23,6 +24,11 @@ class AutoConfigIT { ApplicationContextRunner contextRunner = new ApplicationContextRunner() .withConfiguration(AutoConfigurations.of(AutoConfig.class)); + @AfterEach + void afterEach() throws InterruptedException { + Thread.sleep(10_000); // to avoid hitting rate limits + } + @Test void should_provide_chat_model() { contextRunner From 687f9c066c574d1e23a234d9ee26c212e2f5a17d Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Mon, 25 Mar 2024 19:43:18 +0100 Subject: [PATCH 5/6] released 0.29.0 --- .../java/dev/langchain4j/anthropic/spring/AutoConfigIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java b/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java index c38d24da..d046e3cb 100644 --- a/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java +++ b/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java @@ -8,6 +8,7 @@ import dev.langchain4j.model.chat.StreamingChatLanguageModel; import dev.langchain4j.model.output.Response; import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.ApplicationContextRunner; @@ -17,6 +18,7 @@ import static java.util.concurrent.TimeUnit.SECONDS; import static org.assertj.core.api.Assertions.assertThat; +@Disabled class AutoConfigIT { private static final String API_KEY = System.getenv("ANTHROPIC_API_KEY"); From e6a8bc2ad00b245a8128de6c4daf8124fcf57f8b Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Tue, 26 Mar 2024 12:03:25 +0100 Subject: [PATCH 6/6] released 0.29.0 --- .../java/dev/langchain4j/anthropic/spring/AutoConfigIT.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java b/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java index d046e3cb..c38d24da 100644 --- a/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java +++ b/langchain4j-anthropic-spring-boot-starter/src/test/java/dev/langchain4j/anthropic/spring/AutoConfigIT.java @@ -8,7 +8,6 @@ import dev.langchain4j.model.chat.StreamingChatLanguageModel; import dev.langchain4j.model.output.Response; import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.ApplicationContextRunner; @@ -18,7 +17,6 @@ import static java.util.concurrent.TimeUnit.SECONDS; import static org.assertj.core.api.Assertions.assertThat; -@Disabled class AutoConfigIT { private static final String API_KEY = System.getenv("ANTHROPIC_API_KEY");