ollama-haskell-0.1.0.0: Ollama Haskell library
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Ollama.Pull

Synopsis

Downloaded Models

pull Source #

Arguments

:: Text

Model Name

-> IO () 

Pull a model using default options. This simplifies the pull operation by not requiring additional options.

Example:

pull "myModel"

This will pull "myModel" using default settings (no insecure connections and no streaming).

pullOps Source #

Arguments

:: Text

Model Name

-> Maybe Bool

Insecure

-> Maybe Bool

Stream

-> IO () 

Pull a model with additional options for insecure connections and streaming. This function interacts directly with the Ollama API to download the specified model.

Example:

pullOps "myModel" (Just True) (Just True)

This will attempt to pull "myModel" with insecure connections allowed and enable streaming.