feat: Integrate OpenRouter as an LLM provider#2
Open
ArmDaniel wants to merge 3 commits intofirecrawl:mainfrom
Open
feat: Integrate OpenRouter as an LLM provider#2ArmDaniel wants to merge 3 commits intofirecrawl:mainfrom
ArmDaniel wants to merge 3 commits intofirecrawl:mainfrom
Conversation
ArmDaniel
commented
Jun 28, 2025
- Adds OpenRouter as a selectable LLM provider alongside OpenAI.
- Users can choose the provider and select specific models from OpenRouter.
- Includes UI for managing OpenRouter API keys, similar to Firecrawl keys.
- Updates backend API to handle requests to OpenRouter.
- Modifies API key checking to include OpenRouter keys.
- Updates README with new features and environment variables.
- Adds OpenRouter as a selectable LLM provider alongside OpenAI. - Users can choose the provider and select specific models from OpenRouter. - Includes UI for managing OpenRouter API keys, similar to Firecrawl keys. - Updates backend API to handle requests to OpenRouter. - Modifies API key checking to include OpenRouter keys. - Updates README with new features and environment variables.
- Adds `components/ui/select.tsx` and `components/ui/label.tsx` to resolve compilation errors. - These components were used by the new OpenRouter configuration UI but were not explicitly added to the project.
- Replaces OpenRouter model selection dropdown with a searchable Combobox. - Removes client-side 'chat' model filtering, displaying all models from OpenRouter. - Adds `cmdk` and necessary Shadcn UI components (Combobox, Command, Popover) for the new model selector. - Updates UI for theme consistency: configuration section and search input now use light backgrounds (bg-gray-50 and bg-white respectively) with dark text, removing specific dark-mode styling for these elements to align with the overall light theme.
anthonywu
suggested changes
Aug 28, 2025
anthonywu
left a comment
There was a problem hiding this comment.
I think the v2 Fireplexity refactoring is gonna require a re-write of this PR. However I'm here to +1 OpenRouter as a model provider.
IMO the maintainers probably don't want to add every provider, but OpenRouter and Ollama in my #10 are good placeholders for most use cases without too much scope creep.
I think for most prod use cases that want to use this framework, they would just fork the repo and implement their specific providers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.