LLM authentication registry with provider registration, listing, and credential resolution.
// Source: https://github.com/MervinPraison/PraisonAI | License: MIT // Provided via justclaw.it.com; keep this notice with the code. /** * LLM auth (Python parity: `auth: Optional[str]` -> praisonaiagents.auth). * * A LEAF module, and that is the whole reason it is a file of its own. * * This block used to live in `llm/index.ts`, which is a barrel: it imports * `openai` and `llm/embeddings` at the top level. `agent/features/auth.ts` * needs exactly `resolveAuth`, `listAuthProviders` and `LLMAuth` from it -- * three symbols with no dependencies at all -- and reaching them through the * barrel dragged the whole OpenAI client and the embedding stack onto every * graph that could see `Agent`. On praisonai-mobile's webview bundle that was * measured at 326.7kB of `@ai-sdk/*` provide ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key