ollama-haskell-0.1.3.0: Haskell bindings for ollama.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Ollama.Common.Utils

Synopsis

Documentation

newtype OllamaClient Source #

Constructors

OllamaClient 

Fields

Instances

Instances details
Show OllamaClient Source # 
Instance details

Defined in Data.Ollama.Common.Types

Eq OllamaClient Source # 
Instance details

Defined in Data.Ollama.Common.Types

encodeImage :: FilePath -> IO (Maybe Text) Source #

encodeImage is a utility function that takes an image file path (jpg, jpeg, png) and returns the image data in Base64 encoded format. Since GenerateOps' images field expects image data in base64. It is helper function that we are providing out of the box.