fix(lint): gofmt formatting fixes for 3 files
Align struct field assignments and fix indentation detected by golangci-lint v2.9's gofmt checker.
This commit is contained in:
@@ -125,9 +125,9 @@ func GroupFromServiceAdmin(g *service.Group) *AdminGroup {
|
|||||||
Group: groupFromServiceBase(g),
|
Group: groupFromServiceBase(g),
|
||||||
ModelRouting: g.ModelRouting,
|
ModelRouting: g.ModelRouting,
|
||||||
ModelRoutingEnabled: g.ModelRoutingEnabled,
|
ModelRoutingEnabled: g.ModelRoutingEnabled,
|
||||||
MCPXMLInject: g.MCPXMLInject,
|
MCPXMLInject: g.MCPXMLInject,
|
||||||
DefaultMappedModel: g.DefaultMappedModel,
|
DefaultMappedModel: g.DefaultMappedModel,
|
||||||
SupportedModelScopes: g.SupportedModelScopes,
|
SupportedModelScopes: g.SupportedModelScopes,
|
||||||
AccountCount: g.AccountCount,
|
AccountCount: g.AccountCount,
|
||||||
SortOrder: g.SortOrder,
|
SortOrder: g.SortOrder,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ type AnthropicContentBlock struct {
|
|||||||
|
|
||||||
// AnthropicTool describes a tool available to the model.
|
// AnthropicTool describes a tool available to the model.
|
||||||
type AnthropicTool struct {
|
type AnthropicTool struct {
|
||||||
Type string `json:"type,omitempty"` // e.g. "web_search_20250305" for server tools
|
Type string `json:"type,omitempty"` // e.g. "web_search_20250305" for server tools
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
InputSchema json.RawMessage `json:"input_schema"` // JSON Schema object
|
InputSchema json.RawMessage `json:"input_schema"` // JSON Schema object
|
||||||
|
|||||||
@@ -165,8 +165,8 @@ func (r *apiKeyRepository) GetByKeyForAuth(ctx context.Context, key string) (*se
|
|||||||
group.FieldModelRouting,
|
group.FieldModelRouting,
|
||||||
group.FieldMcpXMLInject,
|
group.FieldMcpXMLInject,
|
||||||
group.FieldSupportedModelScopes,
|
group.FieldSupportedModelScopes,
|
||||||
group.FieldAllowMessagesDispatch,
|
group.FieldAllowMessagesDispatch,
|
||||||
group.FieldDefaultMappedModel,
|
group.FieldDefaultMappedModel,
|
||||||
)
|
)
|
||||||
}).
|
}).
|
||||||
Only(ctx)
|
Only(ctx)
|
||||||
|
|||||||
@@ -78,11 +78,11 @@ func TestAPIKey_EffectiveUsage(t *testing.T) {
|
|||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
key APIKey
|
key APIKey
|
||||||
want5h float64
|
want5h float64
|
||||||
want1d float64
|
want1d float64
|
||||||
want7d float64
|
want7d float64
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "all windows active",
|
name: "all windows active",
|
||||||
|
|||||||
Reference in New Issue
Block a user