28 lines
603 B
Java
28 lines
603 B
Java
|
|
package com.yundage.chat.config;
|
||
|
|
|
||
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* LLM API配置属性类
|
||
|
|
*/
|
||
|
|
@ConfigurationProperties(prefix = "llm")
|
||
|
|
public class LlmApiProperties {
|
||
|
|
private String baseUrl;
|
||
|
|
private String apiKey; // 可选,预留未来认证使用
|
||
|
|
|
||
|
|
public String getBaseUrl() {
|
||
|
|
return baseUrl;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setBaseUrl(String baseUrl) {
|
||
|
|
this.baseUrl = baseUrl;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getApiKey() {
|
||
|
|
return apiKey;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setApiKey(String apiKey) {
|
||
|
|
this.apiKey = apiKey;
|
||
|
|
}
|
||
|
|
}
|