Commit ed1d542f authored by Anthony Jacob's avatar Anthony Jacob
Browse files

finalizing base POC

parent 4e5c7891
Loading
Loading
Loading
Loading
+135 −243

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Changes for package.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@
    "supertest": "^7.2.2",
    "ts-jest": "^29.4.6",
    "ts-loader": "^9.5.2",
    "ts-node": "^1.7.1",
    "ts-node": "^10.7.0",
    "tsconfig-paths": "^4.2.0",
    "typescript": "^5.7.3",
    "typescript-eslint": "^8.20.0"
+5
Changes for src/chat/chat-message.entity.ts: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,11 @@ export class ChatMessage {
    @Column({ type: 'text' })
    instruction: string;

    @Column({ type: 'boolean', nullable: false, default: false })
    isInstructionSuccess: boolean;

    @Column({ type: 'text', nullable: true })
    instructionLog: string | null;

    @Column({ name: 'token_usage', type: 'int', nullable: true })
    tokenUsage: number | null;
+180 −40

File changed.

Preview size limit exceeded, changes collapsed.

+6 −1
Changes for src/chat/dto/run-chat.dto.ts: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { IsNotEmpty, IsNumber, IsOptional, IsString, Min } from 'class-validator';

export class RunChatDto {
    @IsString()
@@ -12,4 +12,9 @@ export class RunChatDto {
    @IsString()
    @IsOptional()
    model?: string;

    @IsNumber()
    @Min(1)
    @IsOptional()
    timeoutMs?: number;
}
Loading