OllamaClient.listModels

Retrieves a list of available models from the Ollama server in a formatted JSON string.

class OllamaClient
string
listModels
()

Return Value

Type: string

A string containing the JSON-formatted list of model details, pretty-printed.

Meta