enhancementgood first issue
Repository metrics
- Stars
- (1,930 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
Description
Add support for OpenRouter as an LLM provider to enable access to multiple models through a single API.
Files to Look At
Provider Implementation
apps/webapp/app/lib/batch/providers/anthropic.ts- Reference for provider structureapps/webapp/app/lib/batch/providers/openai.ts- Another provider example
Configuration
docs/providers/- Provider documentation directorydocs/self-hosting/environment-variables.mdx- Where to add new env vars
Implementation Tasks
- Create
apps/webapp/app/lib/batch/providers/openrouter.ts - Add OpenRouter API integration
- Add environment variable configuration (OPENROUTER_API_KEY)
- Create documentation in
docs/providers/openrouter.mdx - Update environment variables documentation
- Add model selection UI if needed
Technical Notes
- OpenRouter uses an OpenAI-compatible API, so you can likely extend/adapt the OpenAI provider
- API endpoint:
https://openrouter.ai/api/v1 - Requires
HTTP-RefererandX-Titleheaders for attribution - Supports streaming responses
Resources
Labels
good first issue, enhancement