Interface IOllamaLoginClientHelper
- All Known Implementing Classes:
OllamaLoginClientHelper
public interface IOllamaLoginClientHelper
A helper interface for handling API requests and responses related to Ollama login.
The OllamaLoginClientHelper
provides utility methods for creating URIs
and parsing JSON responses from the Ollama API.
-
Method Summary
Modifier and TypeMethodDescriptionCreates aURI
from the given endpoint string.parseOllamaModelsResponseToObject
(String responseBody) Parses the JSON response body into aGetOllamaModelsResponse
object.
-
Method Details
-
createUri
Creates aURI
from the given endpoint string. -
parseOllamaModelsResponseToObject
Parses the JSON response body into aGetOllamaModelsResponse
object.- Parameters:
responseBody
- the JSON response from the API.- Returns:
- a
GetOllamaModelsResponse
containing the list of available Ollama models.
-