Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 6b50c44

Browse files
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 pass
1 parent d7fa963 commit 6b50c44

6 files changed

Lines changed: 539 additions & 154 deletions

File tree

pnpm-lock.yaml

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)