### Run OpenRouter Plugin Tests with Bun Source: https://github.com/elizaos-plugins/plugin-openrouter/blob/1.x/__tests__/README.md Executes integration tests for the OpenRouter plugin using the Bun runtime. Supports running all tests or running tests in watch mode for continuous testing. ```bash # Run all tests bun run test # Run tests in watch mode bun run test:watch ``` -------------------------------- ### Configure OpenRouter Environment Variables Source: https://github.com/elizaos-plugins/plugin-openrouter/blob/1.x/__tests__/README.md Sets up the necessary environment variables for the OpenRouter plugin, including the API key and optional model configurations for different text and image processing tasks. ```env # Required OPENROUTER_API_KEY=your_api_key_here # Optional - defaults will be used if not specified # OPENROUTER_SMALL_MODEL=google/gemini-flash # OPENROUTER_LARGE_MODEL=google/gemini-pro # OPENROUTER_IMAGE_MODEL=x-ai/grok-2-vision-1212 # OPENROUTER_BASE_URL=https://openrouter.ai/api/v1 ``` -------------------------------- ### Configure OpenRouter API Key and Models using .env File Source: https://github.com/elizaos-plugins/plugin-openrouter/blob/1.x/README.md Set up your OpenRouter API key and optional model configurations using a .env file. These environment variables are read by the ElizaOS platform to configure the plugin. ```env OPENROUTER_API_KEY=your_openrouter_api_key OPENROUTER_BASE_URL=https://openrouter.ai/api/v1 OPENROUTER_SMALL_MODEL=google/gemini-flash OPENROUTER_LARGE_MODEL=google/gemini-pro OPENROUTER_IMAGE_MODEL=x-ai/grok-2-vision-1212 SMALL_MODEL=google/gemini-flash LARGE_MODEL=google/gemini-pro IMAGE_MODEL=x-ai/grok-2-vision-1212 ``` -------------------------------- ### Configure OpenRouter API Key and Models in ElizaOS Character Settings Source: https://github.com/elizaos-plugins/plugin-openrouter/blob/1.x/README.md Configure the OpenRouter plugin by setting your API key and optionally specifying preferred models for different tasks (small text, large text, image). These settings can be overridden by environment variables. ```json { "settings": { "OPENROUTER_API_KEY": "your_openrouter_api_key", "OPENROUTER_BASE_URL": "https://openrouter.ai/api/v1", "OPENROUTER_SMALL_MODEL": "google/gemini-flash", "OPENROUTER_LARGE_MODEL": "google/gemini-pro", "OPENROUTER_IMAGE_MODEL": "x-ai/grok-2-vision-1212", "SMALL_MODEL": "google/gemini-flash", "LARGE_MODEL": "google/gemini-pro", "IMAGE_MODEL": "x-ai/grok-2-vision-1212" } } ``` -------------------------------- ### Add OpenRouter Plugin to ElizaOS Character Source: https://github.com/elizaos-plugins/plugin-openrouter/blob/1.x/README.md This snippet shows how to include the OpenRouter plugin in your ElizaOS character's configuration file. Ensure the plugin name is correctly listed within the 'plugins' array. ```json { "plugins": ["@elizaos/plugin-openrouter"] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.