Skip to content

feat: add OpenRouter as LLM provider - #3

Closed
Renziiiii wants to merge 1 commit into
Vertex-Mods:mainfrom
Renziiiii:main
Closed

feat: add OpenRouter as LLM provider#3
Renziiiii wants to merge 1 commit into
Vertex-Mods:mainfrom
Renziiiii:main

Conversation

@Renziiiii

Copy link
Copy Markdown

What

Adds OpenRouter as a new LLM provider, giving users access to 300+ models through a single API key.

How

OpenRouter exposes an OpenAI-compatible API endpoint (https://openrouter.ai/api/v1), so no new SDK dependency is needed — it reuses the existing createOpenAI() with a custom baseURL.

Changes

  • browse-bot.uc.mjs: Added OPENROUTER_API_KEY / OPENROUTER_MODEL pref keys, defaults, provider definition with 16 curated models, and registration in AVAILABLE_PROVIDERS
  • preferences.json: Added dropdown option, API key field, and model selector with the 16 models

Models included

Provider Models
OpenAI GPT-4.1, GPT-4.1 Mini, GPT-4o, GPT-4o Mini, o3 Mini, o4 Mini
Anthropic Claude Sonnet 4, Claude Opus 4
Google Gemini 2.5 Flash, Gemini 2.5 Pro
Meta Llama 4 Maverick, Llama 4 Scout
DeepSeek DeepSeek V3, DeepSeek R1
Qwen Qwen3 235B
Mistral Mistral Large

Default model: google/gemini-2.5-flash

Adds OpenRouter support using the existing OpenAI-compatible API endpoint.
Reuses createOpenAI() with baseURL set to https://openrouter.ai/api/v1.

Includes 16 popular models from OpenAI, Anthropic, Google, Meta, DeepSeek,
Qwen, and Mistral — all accessible through a single OpenRouter API key.
@github-actions

Copy link
Copy Markdown

⚠️ Pull Requests Are Not Accepted Here

Thank you for your interest in contributing! However, this repository is automatically maintained and synchronized from the main repository.

🔗 Please contribute to the main repository instead:

Main Repository: BibekBhusal0/zen-custom-js/findbar-ai

📝 How to Contribute:

  1. Fork the main repository: https://github.com/BibekBhusal0/zen-custom-js
  2. Make your changes in the findbar-ai directory
  3. Open a pull request in the main repository

For detailed contribution guidelines, see CONTRIBUTING.md.


This pull request will be automatically closed. Thank you for understanding! 🙏

@github-actions github-actions Bot closed this Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant