You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
617 B
29 lines
617 B
package cn.teammodel.ai;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
/**
|
|
* @author winter
|
|
* @create 2023-12-15 14:29
|
|
*/
|
|
|
|
@Data
|
|
@Configuration
|
|
@ConfigurationProperties(prefix = "spark.gpt")
|
|
public class SparkGptProperties {
|
|
private String endpoint;
|
|
private String appId;
|
|
private String apiKey;
|
|
private String apiSecret;
|
|
/**
|
|
* 单个会话的缓存过期时间
|
|
*/
|
|
private Long cache_timeout;
|
|
/**
|
|
* 历史上下文数
|
|
*/
|
|
private Integer cache_context;
|
|
}
|