You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
refactor(init): use API base URL for AI configuration endpoint (#41)
The /ai/generate-configuration endpoint is now served by the general
Upsun API (api.upsun.com) instead of a separate AI service host
(ai.upsun.com). Remove the separate ai_url config field and
AIServiceURL references, using the existing API base URL instead.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: miguelsanchez-upsun <miguel.sanchez@platform.sh>
Copy file name to clipboardExpand all lines: internal/config/schema.go
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,12 @@ type Config struct {
48
48
UserAgentstring`validate:"omitempty" yaml:"user_agent,omitempty"`// a template - see UserAgent method
49
49
SessionIDstring`validate:"omitempty,ascii" yaml:"session_id,omitempty"`// the ID for the authentication session - defaults to "default"
50
50
51
-
OAuth2ClientIDstring`validate:"omitempty" yaml:"oauth2_client_id,omitempty"`// e.g. "upsun-cli"
52
-
OAuth2AuthorizeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_auth_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/authorize"
53
-
OAuth2RevokeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_revoke_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/revoke"
54
-
OAuth2TokenURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_token_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/token"
55
-
CertifierURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"certifier_url,omitempty"`// No longer used
56
-
57
-
AIServiceURLstring`validate:"omitempty,url" yaml:"ai_url,omitempty"`// The AI service URL, e.g. "https://ai.upsun.com".
58
-
EnableOrganizationsbool`validate:"omitempty" yaml:"organizations,omitempty"`// Whether the "organizations" feature is enabled.
51
+
OAuth2ClientIDstring`validate:"omitempty" yaml:"oauth2_client_id,omitempty"`// e.g. "upsun-cli"
52
+
OAuth2AuthorizeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_auth_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/authorize"
53
+
OAuth2RevokeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_revoke_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/revoke"
54
+
OAuth2TokenURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_token_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/token"
55
+
CertifierURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"certifier_url,omitempty"`// No longer used
56
+
EnableOrganizationsbool`validate:"omitempty" yaml:"organizations,omitempty"`// Whether the "organizations" feature is enabled.
59
57
} `validate:"required"`
60
58
Detectionstruct {
61
59
GitRemoteNamestring`validate:"required" yaml:"git_remote_name"`// e.g. "upsun"
0 commit comments