-
Notifications
You must be signed in to change notification settings - Fork 42
Enhance: Add ability to do inline prompt to choose oauth/pat #2305
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
pkg/render/render.go
Outdated
} | ||
|
||
extraEnv = append(extraEnv, oauthEnv...) | ||
extraEnv = append(extraEnv, fmt.Sprintf("OAUTH_SERVER_URL=%s", oauthServerURL)) |
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.
dropping all the existing env url that we are passing down to the oauth tool. It is no longer needed(used to determine whether tool need to do oauth or not) and oauth tool can figure out the url by itself given the server url. obot-platform/tools@156b7bd#diff-9ae2ae74ccd09b47849da90bbe83ab989b5cf7bdc4d074c82046370972269defR78
name={field.name} | ||
bind:value={promptCredentials[field.name]} | ||
/> | ||
{#if field.options} |
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.
new ui components to handle field with options. For now, it is buttons but we can customize it to be dropdowns
<dialog bind:this={dialog} class="h-1/4 min-h-[300px] w-1/3 min-w-[300px] overflow-visible p-5"> | ||
<dialog | ||
bind:this={dialog} | ||
class="max-h-[90vh] min-h-[300px] w-1/3 min-w-[300px] overflow-visible p-5" |
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.
fix the dialog not extending :)
30ae6c0
to
88391e8
Compare
Signed-off-by: Daishan Peng <[email protected]>
Add ability to support inline prompt to allow user to select oauth/pat in tools. It drops the existing oauth env variables we use and in oauth tool add ability to prompt user to select auth type.
https://www.loom.com/share/e73f61cd9c884607be592ed7d34d89ba
#2140
need
gptscript-ai/go-gptscript#96
gptscript-ai/gptscript#955
obot-platform/tools#536