Skip to content

feat: add OpenRouter LLM integration with multi-model support#597

Open
zp6 wants to merge 1 commit into
Spectral-Finance:mainfrom
zp6:feat/issue-95-openrouter-integration
Open

feat: add OpenRouter LLM integration with multi-model support#597
zp6 wants to merge 1 commit into
Spectral-Finance:mainfrom
zp6:feat/issue-95-openrouter-integration

Conversation

@zp6
Copy link
Copy Markdown

@zp6 zp6 commented May 14, 2026

Closes #95

Overview

Implements OpenRouter integration providing access to 200+ LLM models through a single unified OpenAI-compatible API.

Features

  • OpenAI-compatible API client for OpenRouter
  • Support for multiple providers (OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek)
  • Tool/function calling support (Prisms, Beams, Lenses)
  • Cost tracking and estimation for popular models
  • Provider-specific headers (site_url, app_name)
  • OpenRouter-specific options (transforms, route)
  • Comprehensive error handling (auth, credits, rate limiting)
  • 14 unit tests covering all features

Acceptance Criteria

  • Implement OpenRouter API client
  • Add support for multiple models
  • Create unified interface matching other providers
  • Implement proper error handling and retries
  • Add cost tracking and reporting
  • Include comprehensive documentation
  • Add integration tests

…pectral-Finance#95)

- OpenAI-compatible API client for OpenRouter
- Support for 200+ models from multiple providers
- Tool/function calling support (Prisms, Beams, Lenses)
- Cost tracking and estimation for popular models
- Provider-specific headers (site_url, app_name)
- OpenRouter-specific options (transforms, route)
- Comprehensive test suite with 14 test cases
- Error handling for auth, credits, rate limiting
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.

OpenRouter Integration $500

1 participant