LLM helpers and Parakeet methods
Get Information about a model
ShowModelInformation retrieves information about a model from the specified URL.
Parameters:
url: the base URL of the API.model: the name of the model to retrieve information for.
Returns:
ModelInformation: the information about the model.int: the HTTP status code of the response.error: an error if the request fails.
โ Remark: if the model does not exist, it will return an error with a status code of 404.
If you use a protected Ollama endpoint, use this function:
Pull a model
PullModel sends a POST request to the specified URL to pull a model with the given name.
Parameters:
url: The URL to send the request to.model: The name of the model to pull.
Returns:
PullResult: The result of the pull operation.int: The HTTP status code of the response.error: An error if the request fails.
If you use a protected Ollama endpoint, use this function:
Get the list of the installed models
GetModelsList sends a GET request to the specified URL to fetch the list of the installed models.
Parameters:
url: The URL to send the request to.
Returns:
ModelList: The result of the reques, use themodelsproperty to get the list.int: The HTTP status code of the response.error: An error if the request fails.
If you use a protected Ollama endpoint, use this function: