28 lines
650 B
Java
28 lines
650 B
Java
package com.klp.common.config;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Data
|
|
@Component
|
|
@ConfigurationProperties(prefix = "image.recognition")
|
|
public class ImageRecognitionConfig {
|
|
|
|
/**
|
|
* AI API配置
|
|
*/
|
|
private String apiUrl;
|
|
private String modelName;
|
|
private String apiKey;
|
|
private Integer maxRetries = 3;
|
|
private Double temperature = 0.0;
|
|
private Integer maxTokens = 4096;
|
|
|
|
/**
|
|
* 图片处理配置
|
|
*/
|
|
private Integer maxImageDimension = 512;
|
|
private Integer imageQuality = 60;
|
|
}
|