Closed wgordon17 closed 1 year ago
Right now our model has strict instructions to only update the existing command based on the output. We will look at tweaking it to allow it to suggest commands that require a pre-condition, such as authentication.
I am allowing the model to create a "precondition" script now, if you try this again the output is something along the lines of:
`kubectl config use-context <context-name> && kubectl get pods --all-namespaces -o json | jq '.items[] | {name: .metadata.name, namespace: .metadata.namespace, restarts: .status.containerStatuses[].restartCount}'
`
We will continue to iterate on this, including pulling in your history to fix broken commands, and allowing users to get more general help (e.g. how do I auth with kubernetes?). Thanks for providing such great feedback!
Testing out some more complex queries (after getting #4 resolves, thanks! 🎉) and I was very impressed at
um
s ability to query my shell history and find some really cool stuff! 🙌Purposefully just trying to see what it would do in a failure scenario,
um
doesn't seem to account for (or interpret) the stderr output and instead just sees the response a generic failure (return code was not 0
).Here's the example that I was running
So
um
saw the failure, but instead of interpretting the error response (error: You must be logged in to the server (Unauthorized)
), it just kept trying different iterations of the same command.