Skip to content

Commit 8ca800b

Browse files
Merge pull request #4 from ibuildthecloud/messages
chore: Change message to default tell client to open the browser
2 parents bf48210 + ff80be7 commit 8ca800b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ func main() {
7070

7171
integrationAppID, ok := cfg.Integrations[integration]
7272
if !ok {
73-
fmt.Printf("integration %q not found\n", integration)
74-
os.Exit(1)
73+
integrationAppID = integration
7574
}
7675

7776
var (
@@ -191,6 +190,7 @@ func main() {
191190
}
192191

193192
metadata := map[string]string{
193+
"authType": "oauth",
194194
"toolContext": "credential",
195195
"toolDisplayName": fmt.Sprintf("%s%s Integration", strings.ToTitle(integration[:1]), integration[1:]),
196196
"authURL": u.String(),
@@ -203,7 +203,7 @@ func main() {
203203
}
204204

205205
run, err := gs.Run(context.Background(), "sys.prompt", gptscript.Options{
206-
Input: fmt.Sprintf(`{"metadata":%s,"message":%q}`, b, fmt.Sprintf("Opening browser to %s. If there is an issue, paste this link into a browser manually.", u.String())),
206+
Input: fmt.Sprintf(`{"metadata":%s,"message":%q}`, b, fmt.Sprintf("To authenticate please open your browser to %s.", u.String())),
207207
})
208208
if err != nil {
209209
fmt.Printf("failed to run sys.prompt: %v\n", err)

0 commit comments

Comments
 (0)