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

Enhance: support prompting user to chosse pat/oauth #536

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

StrongMonkey
Copy link
Contributor

Add ability to do prompting to user to choose pat/oauth.

return "", fmt.Errorf("promptForSelect: failed to unmarshal prompt response: %w", err)
}

authType := authType(m[fieldName])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
authType := authType(m[fieldName])
selectedAuthType := authType(m[fieldName])

Optional. I was just confused by the variable name lol, as it is also a custom type

@@ -2,21 +2,23 @@ module gateway-oauth2

go 1.23.0

replace github.com/gptscript-ai/go-gptscript => ../../go-gptscript
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure you remove this before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants