@agentxin-ai/plugin-openrouter
v0.0.1
Published
`@agentxin-ai/plugin-openrouter` connects [OpenRouter](https://openrouter.ai/) endpoints to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. OpenRouter provides a unified interface to access various LLMs (Large Language Models) from dif
Readme
AgentXin Plugin: OpenRouter
Overview
@agentxin-ai/plugin-openrouter connects OpenRouter endpoints to the AgentXinAI platform. OpenRouter provides a unified interface to access various LLMs (Large Language Models) from different providers.
Core Features
- Ships
OpenRouterModule, which registers the NestJS provider strategy, lifecycle hooks, and configuration schema required by the plugin runtime. - Implements
OpenRouterLargeLanguageModel, which extendsLargeLanguageModelto support OpenRouter's OpenAI-compatible API. - Supports configuring API key and other parameters via the AgentXinAI console.
Installation
npm install @agentxin-ai/plugin-openrouterConfiguration
To use this plugin, you need to configure the following credentials in the AgentXinAI console:
- API Key: Your OpenRouter API key.
Model Capabilities
- Large Language Models: Supports a wide range of models available on OpenRouter (e.g.,
google/gemma-2-9b-it,meta-llama/llama-3.1-8b-instruct, etc.).
Development & Debugging
From the repo root, run Nx commands for this package:
cd agentxinai
npx nx build @agentxin-ai/plugin-openrouter
npx nx test @agentxin-ai/plugin-openrouter