Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit10b534c

Browse files
committed
chore: make gen, fmt, lint
1 parent9068d8b commit10b534c

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 ATNAME 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 ATKEY 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,optionsStreamOptions) (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
returnnil,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 aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp