This commit is contained in:
2025-08-27 19:58:03 +08:00
parent 42fcb9e16d
commit 7ed2ddb03b

View File

@@ -0,0 +1,49 @@
package com.agentsflex.spring.boot.llm.ollama;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author hustlelr
* @since 2025-02-11
*/
@ConfigurationProperties(prefix = "agents-flex.llm.ollama")
public class OllamaProperties {
private String model;
private String endpoint = "http://localhost:11434";
private String apiKey;
private Boolean think;
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 Boolean getThink() {
return think;
}
public void setThink(Boolean think) {
this.think = think;
}
}