Skip to content

feat(openrouter): add OpenRouter provider for text generation#142

Merged
seanbrar merged 1 commit intomainfrom
feat/openrouter-text-generation
Mar 6, 2026
Merged

feat(openrouter): add OpenRouter provider for text generation#142
seanbrar merged 1 commit intomainfrom
feat/openrouter-text-generation

Conversation

@seanbrar
Copy link
Owner

@seanbrar seanbrar commented Mar 6, 2026

Summary

Add the first OpenRouter provider slice to Pollux using the direct HTTP API. This PR intentionally keeps the surface narrow: text generation plus history-based conversation, with explicit failure for OpenRouter features that are planned for later PRs.

Related issue

None

Test plan

  • uv run pytest tests/test_config.py tests/test_providers.py -q
  • just check

Notes

  • Uses direct httpx integration instead of the OpenRouter Python SDK.
  • Keeps OpenRouter text-output-only in this slice.
  • Fails fast on tools, uploads, URL/file inputs, caching, and other not-yet-supported OpenRouter features rather than degrading silently.

@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 66.44737% with 51 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pollux/providers/openrouter.py 66.89% 49 Missing ⚠️
src/pollux/providers/_errors.py 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@seanbrar seanbrar merged commit 725bc0e into main Mar 6, 2026
10 checks passed
@seanbrar seanbrar deleted the feat/openrouter-text-generation branch March 6, 2026 09:10
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