Skip to content

Commit 8073e3c

Browse files
committed
remove models
1 parent 20bc5e0 commit 8073e3c

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed

internal/api/docs/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,11 +1390,6 @@ components:
13901390
type: string
13911391
id:
13921392
type: string
1393-
models:
1394-
items:
1395-
type: string
1396-
nullable: true
1397-
type: array
13981393
name:
13991394
type: string
14001395
require_model:

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
@@ -65,9 +65,6 @@ func (s *Service) List() (BrickListResult, error) {
6565
Category: brick.Category,
6666
Status: "installed",
6767
RequireModel: brick.RequireModel,
68-
Models: f.Map(s.modelsIndex.GetModelsByBrick(brick.ID), func(m modelsindex.AIModel) string {
69-
return m.ID
70-
}),
7168
}
7269
}
7370
return res, nil

internal/orchestrator/bricks/types.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ 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-
RequireModel bool `json:"require_model"`
30-
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"`
29+
RequireModel bool `json:"require_model"`
3130
}
3231

3332
type AppBrickInstancesResult struct {

0 commit comments

Comments
 (0)