You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
@@ -40,7 +33,10 @@ export class ModelsController {
40
33
description: 'The model has been successfully created.',
41
34
type: StartModelSuccessDto,
42
35
})
43
-
@ApiOperation({summary: 'Create model',description: "Creates a model `.json` instance file manually."})
36
+
@ApiOperation({
37
+
summary: 'Create model',
38
+
description: 'Creates a model `.json` instance file manually.',
39
+
})
44
40
@Post()
45
41
create(@Body()createModelDto: CreateModelDto){
46
42
returnthis.modelsUsecases.create(createModelDto);
@@ -52,8 +48,15 @@ export class ModelsController {
52
48
description: 'The model has been successfully started.',
53
49
type: StartModelSuccessDto,
54
50
})
55
-
@ApiOperation({summary: 'Start model',description: "Starts a model operation defined by a model `id`."})
56
-
@ApiParam({name: 'modelId',required: true,description: "The unique identifier of the model."})
51
+
@ApiOperation({
52
+
summary: 'Start model',
53
+
description: 'Starts a model operation defined by a model `id`.',
54
+
})
55
+
@ApiParam({
56
+
name: 'modelId',
57
+
required: true,
58
+
description: 'The unique identifier of the model.',
59
+
})
57
60
@Post(':modelId/start')
58
61
startModel(
59
62
@Param('modelId')modelId: string,
@@ -68,8 +71,15 @@ export class ModelsController {
68
71
description: 'The model has been successfully stopped.',
69
72
type: StartModelSuccessDto,
70
73
})
71
-
@ApiOperation({summary: 'Stop model',description: "Stops a model operation defined by a model `id`."})
72
-
@ApiParam({name: 'modelId',required: true,description: "The unique identifier of the model."})
74
+
@ApiOperation({
75
+
summary: 'Stop model',
76
+
description: 'Stops a model operation defined by a model `id`.',
77
+
})
78
+
@ApiParam({
79
+
name: 'modelId',
80
+
required: true,
81
+
description: 'The unique identifier of the model.',
82
+
})
73
83
@Post(':modelId/stop')
74
84
stopModel(@Param('modelId')modelId: string){
75
85
returnthis.modelsUsecases.stopModel(modelId);
@@ -81,8 +91,15 @@ export class ModelsController {
81
91
description: 'Ok',
82
92
type: DownloadModelResponseDto,
83
93
})
84
-
@ApiOperation({summary: 'Download model',description: "Downloads a specific model instance."})
85
-
@ApiParam({name: 'modelId',required: true,description: "The unique identifier of the model."})
94
+
@ApiOperation({
95
+
summary: 'Download model',
96
+
description: 'Downloads a specific model instance.',
97
+
})
98
+
@ApiParam({
99
+
name: 'modelId',
100
+
required: true,
101
+
description: 'The unique identifier of the model.',
102
+
})
86
103
@Get('download/:modelId')
87
104
downloadModel(@Param('modelId')modelId: string){
88
105
returnthis.modelsUsecases.downloadModel(modelId);
@@ -94,7 +111,11 @@ export class ModelsController {
94
111
description: 'Ok',
95
112
type: ListModelsResponseDto,
96
113
})
97
-
@ApiOperation({summary: 'List models',description: "Lists the currently available models, and provides basic information about each one such as the owner and availability. [Equivalent to OpenAI's list model](https://platform.openai.com/docs/api-reference/models/list)."})
114
+
@ApiOperation({
115
+
summary: 'List models',
116
+
description:
117
+
"Lists the currently available models, and provides basic information about each one such as the owner and availability. [Equivalent to OpenAI's list model](https://platform.openai.com/docs/api-reference/models/list).",
118
+
})
98
119
@Get()
99
120
findAll(){
100
121
returnthis.modelsUsecases.findAll();
@@ -106,8 +127,16 @@ export class ModelsController {
106
127
description: 'Ok',
107
128
type: ModelDto,
108
129
})
109
-
@ApiOperation({summary: 'Get model',description: "Retrieves a model instance, providing basic information about the model such as the owner and permissions. [Equivalent to OpenAI's list model](https://platform.openai.com/docs/api-reference/models/retrieve)."})
110
-
@ApiParam({name: 'id',required: true,description: "The unique identifier of the model."})
130
+
@ApiOperation({
131
+
summary: 'Get model',
132
+
description:
133
+
"Retrieves a model instance, providing basic information about the model such as the owner and permissions. [Equivalent to OpenAI's list model](https://platform.openai.com/docs/api-reference/models/retrieve).",
134
+
})
135
+
@ApiParam({
136
+
name: 'id',
137
+
required: true,
138
+
description: 'The unique identifier of the model.',
139
+
})
111
140
@Get(':id')
112
141
findOne(@Param('id')id: string){
113
142
returnthis.modelsUsecases.findOne(id);
@@ -119,8 +148,15 @@ export class ModelsController {
119
148
description: 'The model has been successfully updated.',
120
149
type: UpdateModelDto,
121
150
})
122
-
@ApiOperation({summary: 'Update model',description: "Updates a model instance defined by a model's `id`."})
123
-
@ApiParam({name: 'id',required: true,description: "The unique identifier of the model."})
151
+
@ApiOperation({
152
+
summary: 'Update model',
153
+
description: "Updates a model instance defined by a model's `id`.",
154
+
})
155
+
@ApiParam({
156
+
name: 'id',
157
+
required: true,
158
+
description: 'The unique identifier of the model.',
0 commit comments