Uses of Class
io.github.amithkoujalgi.ollama4j.core.exceptions.OllamaBaseException
Packages that use OllamaBaseException
Package
Description
-
Uses of OllamaBaseException in io.github.amithkoujalgi.ollama4j.core
Methods in io.github.amithkoujalgi.ollama4j.core that throw OllamaBaseExceptionModifier and TypeMethodDescriptionOllamaAPI.chat
(OllamaChatRequestModel request) Ask a question to a model using anOllamaChatRequestModel
.OllamaAPI.chat
(OllamaChatRequestModel request, OllamaStreamHandler streamHandler) Ask a question to a model using anOllamaChatRequestModel
.OllamaAPI.chat
(String model, List<OllamaChatMessage> messages) Ask a question to a model based on a given message stack (i.e.void
OllamaAPI.createModelWithFilePath
(String modelName, String modelFilePath) Create a custom model from a model file.void
OllamaAPI.createModelWithModelFileContents
(String modelName, String modelFileContents) Create a custom model from a model file.void
OllamaAPI.deleteModel
(String modelName, boolean ignoreIfNotPresent) Delete a model from Ollama server.Convenience method to call Ollama API without streaming responses.OllamaAPI.generate
(String model, String prompt, Options options, OllamaStreamHandler streamHandler) Generate response for a question to a model running on Ollama server.OllamaAPI.generateEmbeddings
(OllamaEmbeddingsRequestModel modelRequest) Generate embeddings using aOllamaEmbeddingsRequestModel
.OllamaAPI.generateEmbeddings
(String model, String prompt) Generate embeddings for a given text from a modelOllamaAPI.generateWithImageFiles
(String model, String prompt, List<File> imageFiles, Options options) Convenience method to call Ollama API without streaming responses.OllamaAPI.generateWithImageFiles
(String model, String prompt, List<File> imageFiles, Options options, OllamaStreamHandler streamHandler) With one or more image files, ask a question to a model running on Ollama server.OllamaAPI.generateWithImageURLs
(String model, String prompt, List<String> imageURLs, Options options) Convenience method to call Ollama API without streaming responses.OllamaAPI.generateWithImageURLs
(String model, String prompt, List<String> imageURLs, Options options, OllamaStreamHandler streamHandler) With one or more image URLs, ask a question to a model running on Ollama server.OllamaAPI.getModelDetails
(String modelName) Gets model details from the Ollama server.OllamaAPI.listModels()
List available models from Ollama server.void
Pull a model on the Ollama server from the list of available models. -
Uses of OllamaBaseException in io.github.amithkoujalgi.ollama4j.core.models.request
Methods in io.github.amithkoujalgi.ollama4j.core.models.request that throw OllamaBaseExceptionModifier and TypeMethodDescriptionOllamaChatEndpointCaller.call
(OllamaRequestBody body, OllamaStreamHandler streamHandler) OllamaGenerateEndpointCaller.call
(OllamaRequestBody body, OllamaStreamHandler streamHandler) OllamaEndpointCaller.callSync
(OllamaRequestBody body) Calls the api server on the given host and endpoint suffix asynchronously, aka waiting for the response.