Skip to content

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

Merged
StrongMonkey merged 1 commit intoobot-platform:mainfrom
StrongMonkey:inline-prompting
Mar 31, 2025
Merged

Enhance: support prompting user to chosse pat/oauth#536
StrongMonkey merged 1 commit intoobot-platform:mainfrom
StrongMonkey:inline-prompting

Conversation

@StrongMonkey
Copy link
Contributor

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

oauth2/main.go Outdated
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

oauth2/go.mod Outdated

go 1.23.0

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

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

Signed-off-by: Daishan Peng <daishan@acorn.io>
@StrongMonkey StrongMonkey merged commit 0b5e2f3 into obot-platform:main Mar 31, 2025
1 check passed
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