-
Notifications
You must be signed in to change notification settings - Fork 2
Support for OpenRouter #21
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestFor Hacktoberfest Participants!For Hacktoberfest Participants!help wantedExtra attention is neededExtra attention is neededup-for-grabs
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfestFor Hacktoberfest Participants!For Hacktoberfest Participants!help wantedExtra attention is neededExtra attention is neededup-for-grabs
Add OpenRouter provider
Summary
Implement an OpenRouter provider backend so users can route to many hosted models with one key.
Scope
openrouter.OPENROUTER_API_KEYOPENROUTER_BASE_URL(defaulthttps://openrouter.ai/api/v1)modelid (e.g.,openrouter/anthropic/claude-3.5-sonnet,openrouter/qwen/qwen2.5-coder:latest)commitlm initprovider selection.commitlm generate --provider openrouter --model <id>.Tasks
Acceptance criteria
commitlm validateconfirms connectivity for OpenRouter.Test plan
Set
OPENROUTER_API_KEY; runcommitlm generate --provider openrouter --model <id>in a temp repo; verify outputs.