We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca800b commit 1d31013Copy full SHA for 1d31013
main.go
@@ -45,6 +45,8 @@ var (
45
optionalScope = os.Getenv("OPTIONAL_SCOPE")
46
)
47
48
+const publicGatewayURL = "https://gateway-api.gptscript.ai"
49
+
50
func main() {
51
configPath, err := xdg.ConfigFile("gptscript/config.json")
52
if err != nil {
@@ -73,6 +75,10 @@ func main() {
73
75
integrationAppID = integration
74
76
}
77
78
+ if cfg.GatewayURL == "" {
79
+ cfg.GatewayURL = publicGatewayURL
80
+ }
81
82
var (
83
authorizeURL = fmt.Sprintf("%s/oauth-apps/%s/authorize", cfg.GatewayURL, integrationAppID)
84
refreshURL = fmt.Sprintf("%s/oauth-apps/%s/refresh", cfg.GatewayURL, integrationAppID)
0 commit comments