packages feed

langchain-hs-openai-0.0.6.0: langchain-hs-openai.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.39.6.
--
-- see: https://github.com/sol/hpack

name:           langchain-hs-openai
version:        0.0.6.0
synopsis:       OpenAI provider and embeddings for langchain-hs
description:    OpenAI ChatModel provider, streaming support, structured output, and text embeddings integration for langchain-hs. Compatible with OpenAI and OpenAI-compatible endpoints (OpenRouter, Fireworks, Together AI).
category:       AI
homepage:       https://github.com/tusharad/langchain-hs#readme
bug-reports:    https://github.com/tusharad/langchain-hs/issues
author:         Tushar Adhatrao
maintainer:     tusharadhatrao@gmail.com
copyright:      2025-2026 Tushar Adhatrao
license:        MIT
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 9.12.4
  , GHC == 9.10.3
  , GHC == 9.8.4
extra-source-files:
    README.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/tusharad/langchain-hs

library
  exposed-modules:
      Langchain.Provider.OpenAI
      Langchain.Embeddings.OpenAI
  other-modules:
      Paths_langchain_hs_openai
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      aeson >=2.0 && <3
    , async ==2.2.*
    , base >=4.17 && <5
    , bytestring >=0.10 && <0.13
    , conduit ==1.3.*
    , containers >=0.6 && <0.9
    , http-client ==0.7.*
    , http-client-tls >=0.3 && <0.5
    , http-conduit ==2.*
    , http-types >=0.11 && <0.13
    , langchain-hs-core ==0.0.6.*
    , mtl >=2.2 && <2.4
    , openai >=2.2.1 && <3
    , servant >=0.19 && <0.21
    , servant-client >=0.19 && <0.21
    , servant-client-core >=0.19 && <0.21
    , servant-conduit >=0.15 && <0.17
    , servant-event-stream ==0.4.*
    , text >=1.2 && <3
    , transformers >=0.5 && <0.7
    , vector >=0.12 && <0.14
  default-language: Haskell2010

test-suite langchain-hs-openai-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Test.Langchain.Provider.OpenAI
      Test.Langchain.Provider.TestSseServer
      Paths_langchain_hs_openai
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      aeson
    , async ==2.2.*
    , base >=4.17 && <5
    , bytestring
    , conduit ==1.3.*
    , containers
    , http-client ==0.7.*
    , http-client-tls >=0.3 && <0.5
    , http-conduit ==2.*
    , http-types >=0.11 && <0.13
    , langchain-hs-core
    , langchain-hs-openai
    , mtl >=2.2 && <2.4
    , openai
    , resourcet
    , servant >=0.19 && <0.21
    , servant-client >=0.19 && <0.21
    , servant-client-core >=0.19 && <0.21
    , servant-conduit >=0.15 && <0.17
    , servant-event-stream ==0.4.*
    , stm
    , tasty
    , tasty-hunit
    , text
    , transformers >=0.5 && <0.7
    , vector >=0.12 && <0.14
    , wai
    , warp
  default-language: Haskell2010