feat: 删除冗余接口
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user