@@ -32,13 +32,13 @@ class ChromaContainer(DockerContainer):
32
32
33
33
def __init__ (
34
34
self ,
35
- image : str = "chromadb/chroma:latest " ,
35
+ image : str = "chromadb/chroma:1.0.0 " ,
36
36
port : int = 8000 ,
37
37
** kwargs ,
38
38
) -> None :
39
39
"""
40
40
Args:
41
- image: Docker image to use for the MinIO container.
41
+ image: Docker image to use for the ChromaDB container.
42
42
port: Port to expose on the container.
43
43
access_key: Access key for client connections.
44
44
secret_key: Secret key for client connections.
@@ -55,7 +55,7 @@ def get_config(self) -> dict:
55
55
including the endpoint.
56
56
57
57
Returns:
58
- dict: {`endpoint`: str}
58
+ dict: {`endpoint`: str, `host`: str, `port`: int }
59
59
"""
60
60
host_ip = self .get_container_host_ip ()
61
61
exposed_port = self .get_exposed_port (self .port )
@@ -69,7 +69,7 @@ def get_config(self) -> dict:
69
69
def _healthcheck (self ) -> None :
70
70
"""This is an internal method used to check if the Chroma container
71
71
is healthy and ready to receive requests."""
72
- url = f"http://{ self .get_config ()['endpoint' ]} /api/v1 /heartbeat"
72
+ url = f"http://{ self .get_config ()['endpoint' ]} /api/v2 /heartbeat"
73
73
response : Response = get (url )
74
74
response .raise_for_status ()
75
75
0 commit comments