From 447717f420dcdb95c9c9aa589fc02a7e46322a27 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Thu, 19 Sep 2024 00:37:57 +0200 Subject: [PATCH] pin djl to 0.29.0 --- .github/dependabot.yml | 3 +++ build.gradle | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1d4ef9ee628..c6203947596 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,9 @@ updates: - dependency-name: com.microsoft.azure:applicationinsights-logging-log4j2 versions: - ">= 2.5.a" # Blocked by https://github.com/microsoft/ApplicationInsights-Java/issues/1155 + - dependency-name: ai.djl:bom + versions: + - ">= 0.30.0" # Blocked by https://github.com/deepjavalibrary/djl/issues/3473 - package-ecosystem: gradle directory: "buildSrc/" schedule: diff --git a/build.gradle b/build.gradle index cd344966b18..53fd9f838f3 100644 --- a/build.gradle +++ b/build.gradle @@ -327,7 +327,7 @@ dependencies { // YAML formatting implementation 'org.yaml:snakeyaml:2.3' - // AI + // region AI implementation 'dev.langchain4j:langchain4j:0.34.0' // Even though we use jvm-openai for LLM connection, we still need this package for tokenization. implementation('dev.langchain4j:langchain4j-open-ai:0.34.0') { @@ -336,9 +336,12 @@ dependencies { implementation('dev.langchain4j:langchain4j-mistral-ai:0.34.0') implementation('dev.langchain4j:langchain4j-google-ai-gemini:0.34.0') implementation('dev.langchain4j:langchain4j-hugging-face:0.34.0') - implementation 'ai.djl:api:0.30.0' - implementation 'ai.djl.pytorch:pytorch-model-zoo:0.30.0' - implementation 'ai.djl.huggingface:tokenizers:0.29.0' + + implementation platform('ai.djl:bom:0.29.0') + implementation 'ai.djl:api' + implementation 'ai.djl.huggingface:tokenizers' + implementation 'ai.djl.pytorch:pytorch-model-zoo' + implementation 'io.github.stefanbratanov:jvm-openai:0.11.0' // openai depends on okhttp, which needs kotlin - see https://github.com/square/okhttp/issues/5299 for details implementation ('com.squareup.okhttp3:okhttp:4.12.0') { @@ -346,6 +349,7 @@ dependencies { } // GemxFX also (transitively) depends on kotlin implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.20' + // endregion implementation 'commons-io:commons-io:2.16.1'