Skip to content

Commit 0ff948a

Browse files
committed
Bedrock
1 parent 755b5fc commit 0ff948a

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

chat-server/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ dependencies {
3030
implementation("org.springframework.ai:spring-ai-mcp-client-spring-boot-starter")
3131

3232
// ollama
33-
implementation("org.springframework.ai:spring-ai-ollama-spring-boot-starter")
33+
// implementation("org.springframework.ai:spring-ai-ollama-spring-boot-starter")
3434

3535
// bedrock
36-
// implementation("org.springframework.ai:spring-ai-bedrock-converse-spring-boot-starter")
37-
// implementation("org.springframework.ai:spring-ai-bedrock-ai-spring-boot-starter")
36+
implementation("org.springframework.ai:spring-ai-bedrock-converse-spring-boot-starter")
37+
implementation("org.springframework.ai:spring-ai-bedrock-ai-spring-boot-starter")
3838

3939
implementation("org.springframework.ai:spring-ai-pgvector-store-spring-boot-starter")
4040
runtimeOnly("org.postgresql:postgresql")
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
spring:
2+
ai:
3+
bedrock:
4+
aws:
5+
access-key: "${AWS_ACCESS_KEY_ID}"
6+
secret-key: "${AWS_SECRET_ACCESS_KEY}"
7+
region: "${AWS_REGION:eu-central-1}"
8+
converse:
9+
chat:
10+
enabled: true
11+
options:
12+
model: "${AWS_BEDROCK_CHAT_MODEL}"
13+
cohere:
14+
embedding:
15+
enabled: true
16+
model: "${AWS_BEDROCK_EMBEDDING_MODEL}"
17+
vectorstore:
18+
pgvector:
19+
dimensions: 1024
20+
initialize-schema: true

chat-server/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring:
22
profiles:
3-
active: "ollama"
3+
active: "bedrock"
44
application:
55
name: chat-server
66
datasource:

chat-server/src/test/kotlin/com/rogervinas/ChatServerApplicationTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import java.util.UUID
3939
@ActiveProfiles("test", "ollama")
4040
@TestMethodOrder(MethodOrderer.OrderAnnotation::class)
4141
@Testcontainers
42+
@DisabledIfCI
4243
class ChatServerApplicationTest {
4344

4445
companion object {

0 commit comments

Comments
 (0)