Skip to content

Commit

Permalink
Merge pull request #637 from janhq/api-update
Browse files Browse the repository at this point in the history
api: Update the API decorator
  • Loading branch information
irfanpena authored May 31, 2024
2 parents bb51792 + 0b15da6 commit fe26363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cortex-js/src/infrastructure/controllers/chat.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import { ChatCompletionResponseDto } from '../dtos/chat/chat-completion-response
export class ChatController {
constructor(private readonly chatService: ChatUsecases) {}

@ApiOperation({
summary: 'Create chat completion',
description: "Creates a model response for the given conversation.",
})
@HttpCode(200)
@ApiResponse({
status: 200,
Expand Down
1 change: 0 additions & 1 deletion cortex-js/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ async function bootstrap() {
.setTitle('Cortex API')
.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.')
.setVersion('1.0')
.addTag('Cortex', 'These endpoints control the start and stop operations of the Cortex system.')
.addTag('Inference', 'This endpoint initiates interaction with a Language Learning Model (LLM).')
.addTag('Assistants', 'These endpoints manage the lifecycle of an Assistant within a conversation thread.')
.addTag('Models', 'These endpoints provide a list and descriptions of all available models within the Cortex framework.')
Expand Down

0 comments on commit fe26363

Please sign in to comment.