Skip to content

Commit

Permalink
Merge branch 'main' into image
Browse files Browse the repository at this point in the history
  • Loading branch information
smty2018 committed Oct 16, 2023
2 parents c2c7165 + ea8dec7 commit c6a40c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autogen/code_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ def execute_code(
If a list or a str of image name(s) is provided, the code will be executed in a docker container
with the first image successfully pulled.
If None, False or empty, the code will be executed in the current environment.
Default is True, which will be converted into a list.
Default is None, which will be converted into an empty list when docker package is available.
Expected behaviour:
- If `use_docker` is explicitly set to True and the docker package is available, the code will run in a Docker container.
- If `use_docker` is explicitly set to True but the Docker package is missing, an error will be raised.
- If `use_docker` is not set (i.e., left default to None) and the Docker package is not available, a warning will be displayed, but the code will run natively.
If the code is executed in the current environment,
the code must be trusted.
lang (Optional, str): The language of the code. Default is "python".
Expand Down

0 comments on commit c6a40c5

Please sign in to comment.