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

Commit fe26363

Browse files
authored
Merge pull request #637 from janhq/api-update
api: Update the API decorator
2 parents bb51792 + 0b15da6 commit fe26363

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import { ChatCompletionResponseDto } from '../dtos/chat/chat-completion-response
1717
export class ChatController {
1818
constructor(private readonly chatService: ChatUsecases) {}
1919

20+
@ApiOperation({
21+
summary: 'Create chat completion',
22+
description: "Creates a model response for the given conversation.",
23+
})
2024
@HttpCode(200)
2125
@ApiResponse({
2226
status: 200,

cortex-js/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ async function bootstrap() {
2727
.setTitle('Cortex API')
2828
.setDescription('Cortex API provides a command-line interface (CLI) for seamless interaction with large language models (LLMs). Fully compatible with the [OpenAI API](https://platform.openai.com/docs/api-reference), it enables straightforward command execution and management of LLM interactions.')
2929
.setVersion('1.0')
30-
.addTag('Cortex', 'These endpoints control the start and stop operations of the Cortex system.')
3130
.addTag('Inference', 'This endpoint initiates interaction with a Language Learning Model (LLM).')
3231
.addTag('Assistants', 'These endpoints manage the lifecycle of an Assistant within a conversation thread.')
3332
.addTag('Models', 'These endpoints provide a list and descriptions of all available models within the Cortex framework.')

0 commit comments

Comments
 (0)