Skip to content

Commit 3773395

Browse files
authored
Merge pull request #1606 from diegolovison/ollama
Implement mcp-sse-client-server locally with ollama and mistral
2 parents 977f926 + 189d2b5 commit 3773395

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

samples/mcp-sse-client-server/mcp-client/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
<groupId>io.quarkiverse.langchain4j</groupId>
5050
<artifactId>quarkus-langchain4j-mcp</artifactId>
5151
</dependency>
52+
<dependency>
53+
<groupId>io.quarkiverse.langchain4j</groupId>
54+
<artifactId>quarkus-langchain4j-ollama</artifactId>
55+
</dependency>
5256
<dependency>
5357
<groupId>io.quarkiverse.langchain4j</groupId>
5458
<artifactId>quarkus-langchain4j-openai</artifactId>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
quarkus.langchain4j.log-requests=true
2+
quarkus.langchain4j.chat-model.provider=openai
3+
%ollama.quarkus.langchain4j.chat-model.provider=ollama
4+
%ollama.quarkus.langchain4j.ollama.chat-model.model-id=mistral
25

36
quarkus.langchain4j.mcp.weather.transport-type=http
47
quarkus.langchain4j.mcp.weather.url=http://localhost:8081/mcp/sse/
58

69
quarkus.http.port=8080
710

811
quarkus.langchain4j.timeout=30s
12+
%ollama.quarkus.langchain4j.timeout=1000s
13+
%ollama.quarkus.vertx.max-worker-execute-time=${%ollama.quarkus.langchain4j.timeout}
14+
15+
#quarkus.log.category."io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodImplementationSupport".level=DEBUG

0 commit comments

Comments
 (0)