mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(vector): make embedding URL and model fields final
This commit is contained in:
@@ -12,8 +12,8 @@ import java.util.Map;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class OllamaVectorClient extends VectorClient {
|
public class OllamaVectorClient extends VectorClient {
|
||||||
|
|
||||||
private String ollamaEmbeddingUrl;
|
private final String ollamaEmbeddingUrl;
|
||||||
private String ollamaEmbeddingModel;
|
private final String ollamaEmbeddingModel;
|
||||||
|
|
||||||
protected OllamaVectorClient(String url, String model) {
|
protected OllamaVectorClient(String url, String model) {
|
||||||
this.ollamaEmbeddingUrl = url;
|
this.ollamaEmbeddingUrl = url;
|
||||||
|
|||||||
Reference in New Issue
Block a user