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:
parent
5d4d177a58
commit
cc49f37eb2
2 changed files with 12 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue