Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Requests] Docker and API Keys #264

Open
WAS-PlaiLabs opened this issue May 27, 2024 · 6 comments
Open

[Requests] Docker and API Keys #264

WAS-PlaiLabs opened this issue May 27, 2024 · 6 comments
Labels
enhancement New feature or request Integrations

Comments

@WAS-PlaiLabs
Copy link

WAS-PlaiLabs commented May 27, 2024

Could you provide internal methods to utilize docker, like autogen and other LLM tools that execute code? Figuring out how to wrap LaVague externally doesn't make me confident in helping secure execution of code.

API Keys are currently provided only through environ, which is not the best method for parallel services (where users use their own keys). Please provide a method to input the OpenAI API key as a param, like in Llama-Index itself.

@dhuynh95
Copy link
Collaborator

We could technically export the code to be rerun elsewhere but the issue is that due to the interactive notion of Agents, we would have to do every execution in a sandbox.
Not impossible of course but a bit involved.

We are aware it's not perfect and we do have it in the roadmap.

Could you point to the specific resources in Llama-index and autogen that could serve as inspiration? We would be happy to explore them, and thanks for pointing these out!

@dhuynh95 dhuynh95 added enhancement New feature or request help wanted Extra attention is needed labels May 27, 2024
@WAS-PlaiLabs
Copy link
Author

WAS-PlaiLabs commented May 27, 2024

So in Autogen they have a flag param for the LLM config use_docker which would then use docker if running and configured correctly. You can provide a custom image name in this flag apparently as well (say you needed specific tools installed for the LLMs).

https://microsoft.github.io/autogen/blog/2024/01/23/Code-execution-in-docker/

I'm stuck on my phone and not getting the same results I did before with source code hits so sorry for vague-ness.

@lyie28
Copy link
Contributor

lyie28 commented May 28, 2024

This would be great to have.

@dukejones
Copy link

OpenDevin has an action loop for coding that runs completely Dockerized. Might be worth borrowing some of the methods there! https://github.com/OpenDevin/OpenDevin

@WAS-PlaiLabs
Copy link
Author

WAS-PlaiLabs commented Jun 4, 2024 via email

@dukejones
Copy link

there was some speculation that GPT Code Interpreter was implemented by spinning up hosted docker sandboxes. could do with some kind of kubernetes for bin-packing containers, plug it into a hosted dev environment offering like replit, gitpod, etc.
If somebody wants to fund doing this & run the company, I have a few friends at the intersection of devops & ai, and also doing an ai (gpu) hardware cloud platform..... they'd probably be stoked to work on something like that

@lyie28 lyie28 removed the help wanted Extra attention is needed label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integrations
Projects
Status: No status
Development

No branches or pull requests

4 participants