Class OllamaModelManager
java.lang.Object
org.springframework.ai.ollama.management.OllamaModelManager
Manage the lifecycle of models in Ollama.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale
-
Constructor Summary
ConstructorDescriptionOllamaModelManager
(OllamaApi ollamaApi) OllamaModelManager
(OllamaApi ollamaApi, ModelManagementOptions options) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteModel
(String modelName) boolean
isModelAvailable
(String modelName) void
void
pullModel
(String modelName, PullModelStrategy pullModelStrategy)
-
Constructor Details
-
OllamaModelManager
-
OllamaModelManager
-
-
Method Details
-
isModelAvailable
-
deleteModel
-
pullModel
-
pullModel
-