fix(linter): fix golines formatting issues on vertex provider and config struct

These fixes address the CI failure:
pkg/config/config.go:1051:1: File is not properly formatted (golines)
pkg/providers/vertex/provider.go:90:1: File is not properly formatted (golines)

Co-authored-by: TanLuong <28281768+TanLuong@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot] 2026-03-27 03:40:37 +00:00
parent 5d4d177a58
commit cc49f37eb2
2 changed files with 12 additions and 5 deletions

View file

@ -1048,10 +1048,10 @@ type SearXNGConfig struct {
} }
type GLMSearchConfig struct { type GLMSearchConfig struct {
Enabled bool `json:"enabled" env:"PICOCLAW_TOOLS_WEB_GLM_ENABLED"` Enabled bool `json:"enabled" env:"PICOCLAW_TOOLS_WEB_GLM_ENABLED"`
apiKey string apiKey string
secDirty bool secDirty bool
BaseURL string `json:"base_url" env:"PICOCLAW_TOOLS_WEB_GLM_BASE_URL"` BaseURL string `json:"base_url" env:"PICOCLAW_TOOLS_WEB_GLM_BASE_URL"`
// SearchEngine specifies the search backend: "search_std" (default), // SearchEngine specifies the search backend: "search_std" (default),
// "search_pro", "search_pro_sogou", or "search_pro_quark". // "search_pro", "search_pro_sogou", or "search_pro_quark".
SearchEngine string `json:"search_engine" env:"PICOCLAW_TOOLS_WEB_GLM_SEARCH_ENGINE"` SearchEngine string `json:"search_engine" env:"PICOCLAW_TOOLS_WEB_GLM_SEARCH_ENGINE"`

View file

@ -87,7 +87,14 @@ func (p *Provider) buildURL(model string, action string) string {
if region == "" { if region == "" {
region = "us-central1" region = "us-central1"
} }
baseURL = fmt.Sprintf("https://%s-aiplatform.googleapis.com/v1/projects/%s/locations/%s/publishers/google/models/%s:%s", region, p.projectID, region, model, action) baseURL = fmt.Sprintf(
"https://%s-aiplatform.googleapis.com/v1/projects/%s/locations/%s/publishers/google/models/%s:%s",
region,
p.projectID,
region,
model,
action,
)
} }
// Only append ?key= for custom apiBase endpoints // Only append ?key= for custom apiBase endpoints