Skip to content

Commit ee00c62

Browse files
eddumelendezmarkpollack
authored andcommitted
Prepend 'http://' to host in ChromaConnectionDetails
Modify getHost method to return a properly formatted URL string. This ensures that the Chroma client can correctly connect to the service when using Docker Compose. Fixes #1395
1 parent c205c7d commit ee00c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ai-spring-boot-docker-compose/src/main/java/org/springframework/ai/docker/compose/service/connection/chroma/ChromaDockerComposeConnectionDetailsFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static class ChromaDockerComposeConnectionDetails extends DockerComposeConnectio
6060

6161
@Override
6262
public String getHost() {
63-
return this.host;
63+
return "http://%s".formatted(this.host);
6464
}
6565

6666
@Override

0 commit comments

Comments
 (0)