-
Notifications
You must be signed in to change notification settings - Fork 293
fix: misc improvements related to creds and prompting #536
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
Conversation
Signed-off-by: Grant Linville <[email protected]>
pkg/prompt/prompt.go
Outdated
if req.Message != "" && len(req.Fields) == 1 && strings.TrimSpace(req.Fields[0]) == "" { | ||
_, _ = fmt.Fprintln(os.Stderr, req.Message) | ||
_, _ = fmt.Fprintln(os.Stderr, "Press enter to continue...") | ||
_, _ = fmt.Fscanln(os.Stdin) | ||
return "", nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the prompt look a little bit better if all we want to do is display a message to the user instead of getting information from the user.
@@ -681,7 +681,7 @@ func streamProgress(callCtx *engine.Context, monitor Monitor) (chan<- types.Comp | |||
CallContext: callCtx.GetCallContext(), | |||
Type: EventTypeCallProgress, | |||
ChatCompletionID: status.CompletionID, | |||
Content: message.String(), | |||
Content: getEventContent(message.String(), *callCtx), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to prevent credential tool output from leaking to the terminal.
Signed-off-by: Grant Linville <[email protected]>
Co-authored-by: Donnie Adams <[email protected]> Signed-off-by: Grant Linville <[email protected]>
Signed-off-by: Grant Linville <[email protected]>
No description provided.