This commit is contained in:
2025-08-27 19:58:01 +08:00
parent 6523fc8667
commit 1489f71d7e

View File

@@ -0,0 +1,66 @@
package com.agentsflex.spring.boot.llm.openai;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author 王帅
* @since 2024-04-10
*/
@ConfigurationProperties(prefix = "agents-flex.llm.openai")
public class OpenAIProperties {
private String model = "gpt-3.5-turbo";
private String endpoint = "https://api.openai.com";
private String apiKey;
private String apiSecret;
private String chatPath = "/v1/chat/completions";
private String embedPath = "/v1/embeddings";
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getApiSecret() {
return apiSecret;
}
public void setApiSecret(String apiSecret) {
this.apiSecret = apiSecret;
}
public String getChatPath() {
return chatPath;
}
public void setChatPath(String chatPath) {
this.chatPath = chatPath;
}
public String getEmbedPath() {
return embedPath;
}
public void setEmbedPath(String embedPath) {
this.embedPath = embedPath;
}
}