fi.evolver.ai.vaadin.view.ImageGenerationBaseView Maven / Gradle / Ivy
package fi.evolver.ai.vaadin.view;
import java.io.Serial;
import fi.evolver.ai.spring.image.ImageApi;
import fi.evolver.ai.vaadin.ChatAttachmentRepository;
import fi.evolver.ai.vaadin.ChatRepository;
import fi.evolver.ai.vaadin.PromptRepository;
import fi.evolver.ai.vaadin.component.AiImageComponent;
public class ImageGenerationBaseView extends ChatHistoryAwareView {
@Serial
private static final long serialVersionUID = 1L;
private final AiImageComponent aiImageComponent;
public ImageGenerationBaseView(
ImageApi imageApi,
ChatRepository chatRepository,
PromptRepository promptRepository,
ChatAttachmentRepository chatAttachmentRepository) {
this.aiImageComponent = new AiImageComponent(imageApi, chatRepository, promptRepository, chatAttachmentRepository, getClass());
}
@Override
public AiImageComponent getChatComponent() {
return aiImageComponent;
}
@Override
public boolean isFullSize() {
return false;
}
}