genai-lib-1.3: genai-lib.cabal
cabal-version: 2.2
name: genai-lib
version: 1.3
synopsis: Library and command line tool for interacting with various generative
AI LLMs
description: Library and command line tool for performing completions and chats
with various generative AI LLMs (Large Language Models).
author: Dino Morelli
maintainer: dino@ui3.info
copyright: 2024 Dino Morelli
category: Unclassified
license: ISC
license-file: LICENSE
build-type: Simple
extra-source-files:
.gitignore
README.md
stack.yaml
stack.yaml.lock
extra-doc-files:
CHANGELOG.md
source-repository head
type: git
location: https://codeberg.org/dinofp/genai-lib
common lang
default-language: Haskell2010
default-extensions:
BangPatterns
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
EmptyCase
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
ImportQualifiedPost
InstanceSigs
KindSignatures
LambdaCase
MultiParamTypeClasses
MultiWayIf
NamedFieldPuns
NumericUnderscores
OverloadedStrings
ScopedTypeVariables
StandaloneDeriving
TupleSections
ghc-options:
-fwarn-tabs
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
build-depends:
aeson >= 2.1.2 && < 2.2
, base >= 3 && < 5
, formatting >= 7.2.0 && < 7.3
, text >= 1.2.5 && < 3
library
import: lang
exposed-modules:
GenAILib.Common
GenAILib.HTTP
GenAILib.Ollama
GenAILib.System.Log
hs-source-dirs:
src/lib
build-depends:
bytestring >= 0.11.4 && < 0.12
, hslogger >= 1.3.1 && < 1.4
, http-client >= 0.7.16 && < 0.8
, servant >= 0.20.1 && < 0.21
, servant-client >= 0.20 && < 0.21
, servant-client-core >= 0.20 && < 0.21
, string-conv >= 0.2.0 && < 0.3
executable genai
import: lang
main-is: Main.hs
hs-source-dirs:
src/app
other-modules:
GenAI.Common
GenAI.Opts
Paths_genai_lib
autogen-modules:
Paths_genai_lib
build-depends:
heredoc >= 0.2.0 && < 0.3
, genai-lib
, optparse-applicative >= 0.17.1 && < 0.19
, prettyprinter >= 1.7.1 && < 1.8