Skip to content

Commit 84d7584

Browse files
committed
remove models field from brick list
1 parent 537694f commit 84d7584

File tree

4 files changed

+13
-23
lines changed

4 files changed

+13
-23
lines changed

internal/api/docs/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,11 +1365,6 @@ components:
13651365
type: string
13661366
id:
13671367
type: string
1368-
models:
1369-
items:
1370-
type: string
1371-
nullable: true
1372-
type: array
13731368
name:
13741369
type: string
13751370
status:

internal/e2e/client/client.gen.go

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

internal/orchestrator/bricks/bricks.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ func (s *Service) List() (BrickListResult, error) {
6464
Description: brick.Description,
6565
Category: brick.Category,
6666
Status: "installed",
67-
Models: f.Map(s.modelsIndex.GetModelsByBrick(brick.ID), func(m modelsindex.AIModel) string {
68-
return m.ID
69-
}),
7067
}
7168
}
7269
return res, nil

internal/orchestrator/bricks/types.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ type BrickListResult struct {
2020
}
2121

2222
type BrickListItem struct {
23-
ID string `json:"id"`
24-
Name string `json:"name"`
25-
Author string `json:"author"`
26-
Description string `json:"description"`
27-
Category string `json:"category"`
28-
Status string `json:"status"`
29-
Models []string `json:"models"`
23+
ID string `json:"id"`
24+
Name string `json:"name"`
25+
Author string `json:"author"`
26+
Description string `json:"description"`
27+
Category string `json:"category"`
28+
Status string `json:"status"`
3029
}
3130

3231
type AppBrickInstancesResult struct {

0 commit comments

Comments
 (0)