Uses of Class
io.github.amithkoujalgi.ollama4j.core.models.OllamaResult
Packages that use OllamaResult
Package
Description
-
Uses of OllamaResult in io.github.amithkoujalgi.ollama4j.core
Methods in io.github.amithkoujalgi.ollama4j.core that return OllamaResultModifier and TypeMethodDescriptionConvenience 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.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. -
Uses of OllamaResult in io.github.amithkoujalgi.ollama4j.core.models.chat
Subclasses of OllamaResult in io.github.amithkoujalgi.ollama4j.core.models.chatModifier and TypeClassDescriptionclass
Specific chat-API result that contains the chat history sent to the model and appends the answer asOllamaChatResult
given by theOllamaChatMessageRole.ASSISTANT
role. -
Uses of OllamaResult in io.github.amithkoujalgi.ollama4j.core.models.request
Methods in io.github.amithkoujalgi.ollama4j.core.models.request that return OllamaResultModifier 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.