Skip to content

Add OpenRouter as alternative LLM and scoring provider#73

Merged
prasjaiswal merged 2 commits intomainfrom
feat/openrouter-provider
Feb 17, 2026
Merged

Add OpenRouter as alternative LLM and scoring provider#73
prasjaiswal merged 2 commits intomainfrom
feat/openrouter-provider

Conversation

@prasjaiswal
Copy link
Collaborator

Summary

  • Adds nlweb-openrouter-models package with OpenRouterProvider (generative) and OpenRouterScoringProvider (scoring)
  • Uses the OpenAI-compatible SDK with openrouter.ai/api/v1 base URL, supporting any model available on OpenRouter
  • Includes commented-out config examples in config.yaml for both generative and scoring use
  • Registers the package as a workspace member with uv source, pyright path, and dependency entries

Test plan

  • make check passes (ruff, pyright 0 errors, 295 tests pass)
  • Verified existing query paths still work: aajtak.in (vector DB + Pi Labs), izzywheels.com (Wix MCP), hashipottery.com (Shopify MCP)
  • End-to-end test with OPENROUTER_API_KEY set and config uncommented

🤖 Generated with Claude Code

Adds nlweb-openrouter-models package with OpenRouterProvider (generative)
and OpenRouterScoringProvider (scoring) using the OpenAI-compatible SDK
with openrouter.ai base URL. Includes commented-out config examples.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@prasjaiswal prasjaiswal merged commit 9a9d4e9 into main Feb 17, 2026
5 checks passed
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