mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
15 lines
292 B
TypeScript
15 lines
292 B
TypeScript
import { IsOptional, IsString } from 'class-validator'
|
|
import { Field, InputType } from 'type-graphql'
|
|
|
|
@InputType()
|
|
export class OpenaiMessage {
|
|
@Field()
|
|
@IsString()
|
|
message: string
|
|
|
|
@Field(() => String, { nullable: true })
|
|
@IsOptional()
|
|
@IsString()
|
|
threadId?: string | null
|
|
}
|