models


Description:

public async ArrayList<Model> models () throws Error

Lists all available models (OpenAI-compatible).

Retrieves a list of all models that are available for use on the server. This calls the /api/v1/model endpoint (OpenAI API standard), which works with Ollama and other OpenAI-compatible servers.

Returns:

ArrayList of Response.Model objects representing available models

Exceptions:

Error

if the request fails or response is invalid

Since:

1.0