Skip to content

Commit 4cf2535

Browse files
committed
rename struct
1 parent 2b7e966 commit 4cf2535

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

internal/api/docs/openapi.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,15 @@ components:
11471147
$ref: '#/components/schemas/ErrorResponse'
11481148
description: Precondition Failed
11491149
schemas:
1150+
AIModel:
1151+
properties:
1152+
description:
1153+
type: string
1154+
id:
1155+
type: string
1156+
name:
1157+
type: string
1158+
type: object
11501159
AIModelItem:
11511160
properties:
11521161
brick_ids:
@@ -1171,15 +1180,6 @@ components:
11711180
runner:
11721181
type: string
11731182
type: object
1174-
AIModelLite:
1175-
properties:
1176-
description:
1177-
type: string
1178-
id:
1179-
type: string
1180-
name:
1181-
type: string
1182-
type: object
11831183
AIModelsListResult:
11841184
properties:
11851185
models:
@@ -1325,7 +1325,7 @@ components:
13251325
type: string
13261326
models:
13271327
items:
1328-
$ref: '#/components/schemas/AIModelLite'
1328+
$ref: '#/components/schemas/AIModel'
13291329
nullable: true
13301330
type: array
13311331
name:

internal/e2e/client/client.gen.go

Lines changed: 8 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ func (s *Service) BricksDetails(id string, idProvider *app.IDProvider,
202202
ApiDocsPath: apiDocsPath,
203203
CodeExamples: codeExamples,
204204
UsedByApps: usedByApps,
205-
Models: f.Map(s.modelsIndex.GetModelsByBrick(brick.ID), func(m modelsindex.AIModel) AIModelLite {
206-
return AIModelLite{
205+
Models: f.Map(s.modelsIndex.GetModelsByBrick(brick.ID), func(m modelsindex.AIModel) AIModel {
206+
return AIModel{
207207
ID: m.ID,
208208
Name: m.Name,
209209
Description: m.ModuleDescription,

internal/orchestrator/bricks/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ type BrickDetailsResult struct {
7777
ApiDocsPath string `json:"api_docs_path"`
7878
CodeExamples []CodeExample `json:"code_examples"`
7979
UsedByApps []AppReference `json:"used_by_apps"`
80-
Models []AIModelLite `json:"models"`
80+
Models []AIModel `json:"models"`
8181
}
8282

83-
type AIModelLite struct {
83+
type AIModel struct {
8484
ID string `json:"id"`
8585
Name string `json:"name"`
8686
Description string `json:"description"`

0 commit comments

Comments
 (0)