@andrao/llm-client

1.0.1 • Public • Published

🤖 @andrao/llm-client

npm version build

This repo provides a single interface for interacting with LLMs from Anthropic, OpenAI, Together.ai, and, locally, Ollama.

Primary exports

Function Description
runChatCompletion Interoperable chat completion function

Secondary exports

Function Description
getAnthropicClient Lazy-init an Anthropic SDK client
getOllamaClient Lazy-init an Ollama client via the OpenAI SDK
getOpenAIClient Lazy-init an OpenAI SDK client
getTogetherClient Lazy-init a Togeter.ai client via the OpenAI SDK

Readme

Keywords

none

Package Sidebar

Install

npm i @andrao/llm-client

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

19 kB

Total Files

25

Last publish

Collaborators

  • andrao