Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Update the API decorator #637

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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