Add File
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user