Skip to content

Commit

Permalink
Added the desc for the tensorrt engine, fix the dtos
Browse files Browse the repository at this point in the history
  • Loading branch information
irfanpena committed Jun 27, 2024
1 parent 0cde51e commit 1494736
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ChatController {

@ApiOperation({
summary: 'Create chat completion',
description: 'Creates a model response for the given conversation.',
description: 'Creates a model response for the given conversation. The following parameters are not working for the `TensorRT-LLM` engine:\n- `frequency_penalty`\n- `presence_penalty`\n- `top_p`',
})
@HttpCode(200)
@ApiResponse({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class ChatCompletionMessage {
@ApiProperty({ description: 'The Content of the chat message.', example: 'Hello World', })
@ApiProperty({ description: 'The Content of the chat message.', })
@IsString()
content: string;

@ApiProperty({
description: 'The role of the entity in the chat completion.',
example: 'user',
})
role: 'user' | 'assistant';
}
2 changes: 0 additions & 2 deletions cortex-js/src/infrastructure/dtos/chat/message.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ export class MessageDto {
@ApiProperty({
description:
'The textual content of the chat message or completion generated by the model.',
example: 'Hello World',
type: String,
})
content: string;

@ApiProperty({
description:
"The role of the participant in the chat, such as 'user' or 'system', indicating who is the sender of the message.",
example: 'user',
type: String,
})
role: string;
Expand Down

0 comments on commit 1494736

Please sign in to comment.