package com.smyhub.infogenie.infogeniebackendjava.dto.request;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

/**
 * Request body for POST /api/aimodelapp/chat and /api/aimodelapp/chat/stream.
 */
@Data
public class ChatRequest {

    @NotEmpty(message = "messages must not be empty")
    @Valid
    private List<ChatMessage> messages;

    /** Defaults to "deepseek" when absent. */
    private String provider;

    /** Defaults to "deepseek-chat" when absent. */
    private String model;

    @Data
    public static class ChatMessage {
        private String role;
        private String content;
    }
}
