r2d4/llm.ts
Call any LLM with a single API. Zero dependencies.
This tool simplifies interacting with many different large language models (LLMs) from various providers like OpenAI, Cohere, and HuggingFace. You can send text prompts to one or many LLMs simultaneously and get their responses back in a unified format. It's designed for developers building applications that need to leverage multiple LLM capabilities.
215 stars. No commits in the last 6 months.
Use this if you are a developer integrating various LLMs into an application and want a consistent way to send prompts and receive responses across different providers.
Not ideal if you are a non-developer seeking a no-code solution for direct interaction with LLMs.
Stars
215
Forks
9
Language
TypeScript
License
MIT
Category
Last pushed
May 09, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/r2d4/llm.ts"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lmstudio-ai/lmstudio-js
LM Studio TypeScript SDK
lmstudio-ai/lms
LM Studio CLI
samestrin/llm-interface
A simple NPM interface for seamlessly interacting with 36 Large Language Model (LLM) providers,...
nbonamy/multi-llm-ts
A Typescript library to use LLM providers APIs in a unified way.
token-js/token.js
Integrate 200+ LLMs with one TypeScript SDK using OpenAI's format.