gradido/backend/src/graphql/model/ChatGptMessage.ts
einhornimmond 987582c3ef Revert "use root biome config for backend, add useImportType rule"
This reverts commit bb8132791557fb9dcbf117ff7c3622a83e2e3730.
2025-04-30 09:29:09 +02:00

20 lines
320 B
TypeScript

import { Field, ObjectType } from 'type-graphql'
import { Message } from '@/apis/openai/model/Message'
@ObjectType()
export class ChatGptMessage {
@Field()
content: string
@Field()
role: string
@Field()
threadId: string
public constructor(data: Partial<Message>) {
Object.assign(this, data)
}
}