Bump LangChain4J to version 1.0.0
This commit is contained in:
parent
2e6778a29b
commit
38cf75f8c9
5 changed files with 10 additions and 9 deletions
10
pom.xml
10
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.thauvin.erik.mobibot</groupId>
|
||||
<artifactId>mobibot</artifactId>
|
||||
<version>0.8.0-rc+20250515203523</version>
|
||||
<version>0.8.0-rc+20250515215148</version>
|
||||
<name>mobibot</name>
|
||||
<description></description>
|
||||
<url></url>
|
||||
|
@ -114,25 +114,25 @@
|
|||
<dependency>
|
||||
<groupId>dev.langchain4j</groupId>
|
||||
<artifactId>langchain4j-open-ai</artifactId>
|
||||
<version>0.36.2</version>
|
||||
<version>1.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dev.langchain4j</groupId>
|
||||
<artifactId>langchain4j-google-ai-gemini</artifactId>
|
||||
<version>0.36.2</version>
|
||||
<version>1.0.0-beta5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dev.langchain4j</groupId>
|
||||
<artifactId>langchain4j-core</artifactId>
|
||||
<version>0.36.2</version>
|
||||
<version>1.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dev.langchain4j</groupId>
|
||||
<artifactId>langchain4j</artifactId>
|
||||
<version>0.36.2</version>
|
||||
<version>1.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -82,7 +82,7 @@ public class MobibotBuild extends Project {
|
|||
|
||||
var log4j = version(2, 24, 3);
|
||||
var kotlin = version(2, 1, 21);
|
||||
var langchain = version(0, 36, 2);
|
||||
var langchain = version(1, 0, 0);
|
||||
scope(compile)
|
||||
// PircBotX
|
||||
.include(dependency("com.github.pircbotx", "pircbotx", "2.3.1"))
|
||||
|
@ -108,7 +108,7 @@ public class MobibotBuild extends Project {
|
|||
.include(dependency("org.apache.logging.log4j", "log4j-slf4j2-impl", log4j))
|
||||
// LangChain4J
|
||||
.include(dependency("dev.langchain4j", "langchain4j-open-ai", langchain))
|
||||
.include(dependency("dev.langchain4j", "langchain4j-google-ai-gemini", langchain))
|
||||
.include(dependency("dev.langchain4j", "langchain4j-google-ai-gemini", "1.0.0-beta5"))
|
||||
.include(dependency("dev.langchain4j", "langchain4j-core", langchain))
|
||||
.include(dependency("dev.langchain4j", "langchain4j", langchain))
|
||||
// Misc.
|
||||
|
|
|
@ -77,7 +77,7 @@ class ChatGpt2 : AbstractModule() {
|
|||
.maxTokens(maxTokens)
|
||||
.build()
|
||||
|
||||
return model.generate(query)
|
||||
return model.chat(query)
|
||||
} catch (e: Exception) {
|
||||
throw ModuleException(
|
||||
"$CHATGPT_CMD($query): IO",
|
||||
|
|
|
@ -90,7 +90,7 @@ class Gemini2 : AbstractModule() {
|
|||
.maxOutputTokens(maxTokens)
|
||||
.build()
|
||||
|
||||
return gemini.generate(query)
|
||||
return gemini.chat(query)
|
||||
} catch (e: Exception) {
|
||||
throw ModuleException("$GEMINI_CMD($query): IO", IO_ERROR, e)
|
||||
}
|
||||
|
|
|
@ -71,6 +71,7 @@ class ChatGpt2Test : LocalProperties() {
|
|||
.isInstanceOf(ModuleException::class.java)
|
||||
.hasNoCause()
|
||||
}
|
||||
|
||||
private val apiKey = getProperty(ChatGpt2.API_KEY_PROP)
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue