Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 82c2b55

Browse files
authored
Update the api desc (#933)
1 parent e0746e7 commit 82c2b55

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
lines changed

cortex-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"build:dev:linux": "chmod +x ./dist/src/command.js"
3838
},
3939
"dependencies": {
40+
"@cortexso/cortex.js": "^0.1.3",
4041
"@huggingface/gguf": "^0.1.5",
4142
"@huggingface/hub": "^0.15.1",
4243
"@nestjs/axios": "^3.0.2",
@@ -55,7 +56,6 @@
5556
"class-validator": "^0.14.1",
5657
"cli-progress": "^3.12.0",
5758
"cortex-cpp": "0.4.34",
58-
"@cortexso/cortex.js": "^0.1.3",
5959
"cpu-instructions": "^0.0.11",
6060
"decompress": "^4.2.1",
6161
"js-yaml": "^4.1.0",

cortex-js/src/app.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,14 @@ export const getApp = async () => {
5757
'Embeddings',
5858
'Endpoint for creating and retrieving embedding vectors from text inputs using specified models.',
5959
)
60-
.addTag(
61-
'Status',
62-
"Endpoint for actively querying the health status of the Cortex's API server.",
63-
)
64-
.addTag(
65-
'Processes',
66-
'Endpoint for terminating the Cortex API server processes.',
67-
)
68-
.addTag(
69-
'Events',
70-
'Endpoints for observing Cortex statuses through event notifications.',
71-
)
72-
.addTag(
73-
'Configurations',
74-
"Endpoints for customizing the Cortex's configurations.",
75-
)
7660
.addTag(
7761
'Engines',
7862
'Endpoints for managing the available engines within Cortex.',
7963
)
64+
.addTag(
65+
'System',
66+
'Endpoints for stopping the Cortex API server, checking its status, and fetching system events.',
67+
)
8068
.addServer('http://localhost:1337')
8169
.build();
8270
const document = SwaggerModule.createDocument(app, config);

cortex-js/src/infrastructure/controllers/engines.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class EnginesController {
9292
type: CommonResponseDto,
9393
})
9494
@ApiOperation({
95-
summary: 'Update the engine',
95+
summary: 'Update an engine',
9696
description: 'Updates the engine with configurations.',
9797
})
9898
@ApiParam({

cortex-js/src/infrastructure/controllers/models.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ export class ModelsController {
120120
type: CommonResponseDto,
121121
})
122122
@ApiOperation({
123-
summary: 'Download a remote model',
123+
summary: 'Pull a model',
124124
description:
125-
'Pulls a remote model template from cortex hub or huggingface and downloads it.',
125+
'Pulls a model from cortex hub or huggingface and downloads it.',
126126
})
127127
@ApiParam({
128128
name: 'modelId',

cortex-js/src/infrastructure/controllers/system.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export class SystemController {
4242
) {}
4343

4444
@ApiOperation({
45-
summary: 'Terminate api server',
46-
description: 'Terminates the Cortex API endpoint server for the detached mode.',
45+
summary: 'Stop api server',
46+
description: 'Stops the Cortex API endpoint server for the detached mode.',
4747
})
4848
@Delete()
4949
async delete() {

0 commit comments

Comments
 (0)