Skip to content

Commit 7648bef

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

24 files changed

+1083
-387
lines changed

cli/testdata/TestProvisioners_Golden/list.golden

+1-1
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
+1-1
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

+1-2
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

-3
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

+187-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)