@andrao/llm-client
v1.0.1
Published
[](https://badge.fury.io/js/@andrao/llm-client) 
Readme
🤖 @andrao/llm-client
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 |
