Skip to content

Commit 7648bef

Browse files
committed
chore: make gen, fmt, lint
1 parent 1883081 commit 7648bef

File tree

24 files changed

+1083
-387
lines changed

24 files changed

+1083
-387
lines changed

cli/testdata/TestProvisioners_Golden/list.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ID CREATED AT LAST SEEN AT NAME VERSION TAGS KEY NAME STATUS CURRENT JOB ID CURRENT JOB STATUS PREVIOUS JOB ID PREVIOUS JOB STATUS ORGANIZATION
1+
ID CREATED AT LAST SEEN AT NAME VERSION TAGS KEY NAME STATUS CURRENT JOB ID CURRENT JOB STATUS PREVIOUS JOB ID PREVIOUS JOB STATUS ORGANIZATION
22
00000000-0000-0000-aaaa-000000000000 ====[timestamp]===== ====[timestamp]===== default-provisioner v0.0.0-devel map[owner: scope:organization] built-in idle <nil> <nil> 00000000-0000-0000-bbbb-000000000001 succeeded Coder
33
00000000-0000-0000-aaaa-000000000001 ====[timestamp]===== ====[timestamp]===== provisioner-1 v0.0.0 map[foo:bar owner: scope:organization] built-in busy 00000000-0000-0000-bbbb-000000000002 running <nil> <nil> Coder
44
00000000-0000-0000-aaaa-000000000002 ====[timestamp]===== ====[timestamp]===== provisioner-2 v0.0.0 map[owner: scope:organization] built-in offline <nil> <nil> 00000000-0000-0000-bbbb-000000000003 succeeded Coder
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CREATED AT LAST SEEN AT KEY NAME NAME VERSION STATUS TAGS
1+
CREATED AT LAST SEEN AT KEY NAME NAME VERSION STATUS TAGS
22
====[timestamp]===== ====[timestamp]===== built-in test v0.0.0-devel idle map[owner: scope:organization]

cli/testdata/server-config.yaml.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,7 @@ client:
521521
supportLinks: []
522522
# Configure AI providers.
523523
# (default: <unset>, type: struct[codersdk.AIConfig])
524-
ai:
525-
providers: []
524+
ai: {}
526525
# External Authentication providers.
527526
# (default: <unset>, type: struct[[]codersdk.ExternalAuthConfig])
528527
externalAuthProviders: []

coderd/ai/ai.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ func ModelsFromConfig(ctx context.Context, configs []codersdk.AIProviderConfig)
7070
config.Models[i] = model.ID
7171
}
7272
}
73-
break
7473
case "anthropic":
7574
client := anthropic.NewClient(anthropicoption.WithAPIKey(config.APIKey))
7675
streamFunc = func(ctx context.Context, options StreamOptions) (aisdk.DataStream, error) {
@@ -101,7 +100,6 @@ func ModelsFromConfig(ctx context.Context, configs []codersdk.AIProviderConfig)
101100
config.Models[i] = model.ID
102101
}
103102
}
104-
break
105103
case "google":
106104
client, err := genai.NewClient(ctx, &genai.ClientConfig{
107105
APIKey: config.APIKey,
@@ -143,7 +141,6 @@ func ModelsFromConfig(ctx context.Context, configs []codersdk.AIProviderConfig)
143141
config.Models[i] = model.Name
144142
}
145143
}
146-
break
147144
default:
148145
return nil, xerrors.Errorf("unsupported model type: %s", config.Type)
149146
}

coderd/apidoc/docs.go

Lines changed: 187 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy