So, here's my use case: I'm using an LLM to write a Dockerfile. I don't expect the LLM…
- User
So, here's my use case: I'm using an LLM to write a Dockerfile. I don't expect the LLM to get the Dockerfile correct the first time, so if there's an error I'll feed the docker output (stderr and stdout) back to the LLM so it can try again to write a better Dockerfile. I'll do this in a loop until the Dockerfile runs correctly or we hit a
MAX_ATTEMPTSthreshold. I want this loop to run quickly and without delay. At the end, if there is a working Dockerfile, we'll want to save the image and the output. This loop, ideally, would be in a Lambda function. Now that you know more, what's your best suggestion for how to do this? Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.