mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-26 16:48:13 +00:00
Enabled manual setting of docker base url for code interpreter tool. Goal is to avoid the error: CodeInterpreterTool Error while fetching server API version:
This commit is contained in:
@@ -40,7 +40,7 @@ class CodeInterpreterTool(BaseTool):
|
|||||||
"""
|
"""
|
||||||
Verify if the Docker image is available. Optionally use a user-provided Dockerfile.
|
Verify if the Docker image is available. Optionally use a user-provided Dockerfile.
|
||||||
"""
|
"""
|
||||||
client = docker.from_env() if self.user_docker_base_url != None else docker.DockerClient(base_url=self.user_docker_base_url)
|
client = docker.from_env() if self.user_docker_base_url == None else docker.DockerClient(base_url=self.user_docker_base_url)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client.images.get(self.default_image_tag)
|
client.images.get(self.default_image_tag)
|
||||||
|
|||||||
Reference in New Issue
Block a user