openai-hs icon indicating copy to clipboard operation
openai-hs copied to clipboard

Minor release for BaseUrl support possible? E.g. for Ollama

Open malteneuss opened this issue 1 year ago • 1 comments

I would like to try out the OpenAI api on a self-hosted Ollama instance, which tries to follow the api. Unfortunately, the latest Hackage release doesn't yet include the ability to provide a custom "BaseUrl".

Would a minor release bump possible? Ideally with Haddock support to make the documentation easier to browse. If it works, i could add a section to the Readme or documentation about Ollama and/or self-hosting.

For everyone else, in the mean time we can use the raw git repository with cabal.project as described in the Cabal docs:

packages: <myproject>.cabal

source-repository-package
   type:     git
   location: https://github.com/agrafix/openai-hs.git
   tag:      c44adfc24172a6d0bb5f291308337b8f2845d2fc
   subdir:   openai-hs

source-repository-package
   type:     git
   location: https://github.com/agrafix/openai-hs.git
   tag:      c44adfc24172a6d0bb5f291308337b8f2845d2fc
   subdir:   openai-servant

malteneuss avatar Jun 12 '24 20:06 malteneuss

Great point @malteneuss, and it would also be nice to add to Stackage per https://github.com/agrafix/openai-hs/issues/25.

@agrafix can you make me a Hackage maintainer and I'll cut a release (or you can!)

nickhs avatar Jul 13 '24 18:07 nickhs

any progress here?

11111000000 avatar Apr 06 '25 18:04 11111000000

The whole Github account seems mostly abandoned. I suggest taking a look at https://hackage.haskell.org/package/openai by Gabriella Gonzales.

malteneuss avatar Apr 07 '25 07:04 malteneuss