This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit 6b50c44
committed
feat: add OpenAI-compatible base provider and migrate Moonshot to AI SDK
- Add OpenAICompatibleHandler base class using @ai-sdk/openai-compatible
- Migrate MoonshotHandler to extend OpenAICompatibleHandler
- Leverage AI SDK utilities (convertToAiSdkMessages, convertToolsForAiSdk, processAiSdkStreamPart)
- Update moonshot tests to mock AI SDK functions (streamText, generateText)
- Add @ai-sdk/openai-compatible dependency to src/package.json
- All 19 moonshot tests pass1 parent d7fa963 commit 6b50c44
6 files changed
Lines changed: 539 additions & 154 deletions
File tree
- src
- api/providers
- __tests__
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments