com.alibaba.dashscope.aigc.generation.GenerationOutput Maven / Gradle / Ivy
// Copyright (c) Alibaba, Inc. and its affiliates.
package com.alibaba.dashscope.aigc.generation;
import com.alibaba.dashscope.common.Message;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
@Data
public final class GenerationOutput {
// output message.
@Data
public class Choice {
@SerializedName("finish_reason")
private String finishReason;
private Integer index;
private Message message;
}
// output text
private String text;
@SerializedName("finish_reason")
private String finishReason;
private List choices;
}