All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.langchain4j.model.chatglm.ChatCompletionRequest Maven / Gradle / Ivy

The newest version!
package dev.langchain4j.model.chatglm;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(NON_NULL)
@JsonNaming(SnakeCaseStrategy.class)
class ChatCompletionRequest {

    private String prompt;
    private Double temperature;
    private Double topP;
    private Integer maxLength;
    private List> history;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy