Feat/solved #6 issue and sync with PR #7 #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 功能概述
从官方仓库 PR #7 cherry-pick 了 OpenRouter Provider 功能,为 Kode SDK 添加多提供商支持。
来源: #7
✨ 新增功能
1. OpenRouter Provider
OpenRouterProvider类2. 提供商架构重构
createModelProvider工厂函数AnthropicProvider移至src/infra/providers/目录3. 新增示例
examples/openrouter-example.ts- 完整的使用示例📝 使用方法
基础用法