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 Details

    • createUri

      URI createUri(String endpoint)
      Creates a URI from the given endpoint string.
      Parameters:
      endpoint - the API endpoint as a String.
      Returns:
      the corresponding URI.
    • parseOllamaModelsResponseToObject

      GetOllamaModelsResponse parseOllamaModelsResponseToObject(String responseBody)
      Parses the JSON response body into a GetOllamaModelsResponse object.
      Parameters:
      responseBody - the JSON response from the API.
      Returns:
      a GetOllamaModelsResponse containing the list of available Ollama models.