What is Nostr?
Paul Ganssle /
npub1z6z…rqwn
2024-11-21 14:57:18

Paul Ganssle on Nostr: Is there a good library out there in Python that provides a simple abstraction over ...

Is there a good library out there in Python that provides a simple abstraction over the major LLM providers, such that it's easy for me to swap out which one I'm using for a given project?

I find myself writing my own version of this because each of the LLMs have strengths and weaknesses, and sometimes for a project I want to test them all out before committing to use a specific one.

A few months back I looked at nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqf6a33pfyp67y8llhunlhrf855xm47n3fdqymvxfj7yx78c6vqf4sy8ssyg (nprofile…ssyg)'s `llm`, but from what I could tell it was mostly wrapping ChatGPT or compatible APIs, and I wasn't sure how to use it for everything.
Author Public Key
npub1z6zd8mmmkhavga8lrz3rwxrz5m2vadvdmvtvn2s5hn7gqd70nprquprqwn