Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Ollama.Common.Utils
Synopsis
- defaultOllamaUrl :: Text
- newtype OllamaClient = OllamaClient {}
- encodeImage :: FilePath -> IO (Maybe Text)
Documentation
newtype OllamaClient Source #
Constructors
OllamaClient | |
Instances
Show OllamaClient Source # | |
Defined in Data.Ollama.Common.Types Methods showsPrec :: Int -> OllamaClient -> ShowS # show :: OllamaClient -> String # showList :: [OllamaClient] -> ShowS # | |
Eq OllamaClient Source # | |
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.