Skip to content

feat: add Openrouter support#75

Merged
nicky-ru merged 5 commits intomainfrom
openrouter
May 12, 2025
Merged

feat: add Openrouter support#75
nicky-ru merged 5 commits intomainfrom
openrouter

Conversation

@nicky-ru
Copy link
Contributor

No description provided.

nicky-ru added 5 commits May 12, 2025 09:50
- Introduce ModelProvider abstraction for LLM service
- Added ModelProviderName enum and ModelProviders mapping to centralize model provider definitions, enhancing maintainability and readability.
- Updated LLMService to utilize the new ModelProviderName for provider identification, improving code clarity.
- Refactored getProviderFromModel method to return ModelProviderName values, streamlining model provider retrieval logic.
- Introduced openrouter support in LLMService, expanding model provider capabilities.
- Introduced a new test suite for ModelAdapter to validate error handling for unsupported providers.
- Enhanced existing tests for DummyLLM to ensure comprehensive coverage of LLM functionalities.
- This update improves the robustness of the testing framework and ensures adherence to expected behaviors in the LLM module.
- Upgraded versions of several @AI-SDK packages to their latest releases for improved functionality and compatibility.
- Updated the "ai" package from version 4.3 to 4.3.15 to ensure alignment with the latest features and enhancements.
- Added @openrouter/ai-sdk-provider dependency to support new functionalities.
…ct data

- Modified RevenueProjectSchema to allow nullable fields for arr, mrr, and normalizedRevenueFor30Days, enhancing data flexibility.
- Updated RevenueDataExecutor to handle null values by converting them to 0, ensuring consistent data structure when fetching project data.
- Added error handling for cases where no project data is returned, improving robustness and user feedback.
- Upgraded several @AI-SDK packages to their latest versions, including '@ai-sdk/anthropic' to 1.2.11, '@ai-sdk/deepseek' to 0.2.14, and '@ai-sdk/openai' to 1.3.22, enhancing functionality and compatibility.
- Added '@openrouter/ai-sdk-provider' version 0.4.5 to support new features.
- Updated the 'ai' package from version 4.3.13 to 4.3.15 for improved performance and stability.
@nicky-ru nicky-ru merged commit d5865fc into main May 12, 2025
2 checks passed
@nicky-ru nicky-ru deleted the openrouter branch May 12, 2025 12:39
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