Replies: 1 comment 4 replies
-
Would you happen to have any suggestions here? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Description:
When using AutoGen with Docker-based code execution, there seems to be an issue with accessing environment variables within the executed functions. Specifically, when trying to use environment variables to store sensitive information like API keys, the variables are not accessible within the Docker container where the code is executed.
For example, consider the following scenario:
However, if the API key and base URL are hardcoded directly in the function, it works correctly:
This behavior suggests that environment variables set on the host machine are not being properly passed to or accessed within the Docker container during tool execution.
Questions:
Any insights or guidance on this issue would be greatly appreciated, as it impacts the security and portability of AutoGen applications that rely on environment variables for configuration.
Beta Was this translation helpful? Give feedback.
All reactions