File tree 3 files changed +31
-9
lines changed
src/main/java/org/myrobotlab/service
3 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 589
589
<artifactId >ollama4j</artifactId >
590
590
<version >1.0.79</version >
591
591
<scope >provided</scope >
592
+ <exclusions >
593
+ <exclusion >
594
+ <groupId >org.slf4j</groupId >
595
+ <artifactId >slf4j-api</artifactId >
596
+ </exclusion >
597
+ <exclusion >
598
+ <groupId >log4j</groupId >
599
+ <artifactId >log4j</artifactId >
600
+ </exclusion >
601
+ <exclusion >
602
+ <groupId >org.slf4j</groupId >
603
+ <artifactId >slf4j-log4j12</artifactId >
604
+ </exclusion >
605
+ </exclusions >
592
606
</dependency >
593
607
<!-- LLM end -->
594
608
2113
2127
<system >github</system >
2114
2128
<url >https://github.com/MyRobotLab/myrobotlab/issues</url >
2115
2129
</issueManagement >
2116
- </project >
2130
+ </project >
Original file line number Diff line number Diff line change @@ -556,6 +556,17 @@ public static void main(String[] args) {
556
556
557
557
Response response = null ;
558
558
LLM llm = (LLM ) Runtime .start ("llm" , "LLM" );
559
+
560
+ WebGui webgui = (WebGui ) Runtime .create ("webgui" , "WebGui" );
561
+ webgui .autoStartBrowser (false );
562
+ webgui .startService ();
563
+
564
+ boolean done = true ;
565
+ if (done ) {
566
+ return ;
567
+ }
568
+
569
+
559
570
LLM imagellm = (LLM ) Runtime .start ("imagellm" , "LLM" );
560
571
561
572
llm .config .url = "http://192.168.0.24:11434/v1/chat/completions" ;
@@ -566,14 +577,6 @@ public static void main(String[] args) {
566
577
System .out .println (response .msg );
567
578
}
568
579
569
- WebGui webgui = (WebGui ) Runtime .create ("webgui" , "WebGui" );
570
- webgui .autoStartBrowser (false );
571
- webgui .startService ();
572
-
573
- boolean done = true ;
574
- if (done ) {
575
- return ;
576
- }
577
580
578
581
OpenCV cv = (OpenCV ) Runtime .start ("cv" , "OpenCV" );
579
582
cv .capture ();
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ public LLMMeta() {
20
20
21
21
addDependency ("io.github.ollama4j" , "ollama4j" , "1.0.79" );
22
22
23
+ exclude ("org.slf4j" , "slf4j-api" );
24
+ exclude ("log4j" , "log4j" );
25
+ exclude ("org.slf4j" , "slf4j-log4j12" );
26
+
27
+
23
28
// add it to one or many categories
24
29
addCategory ("AI" );
25
30
You can’t perform that action at this time.
0 commit comments