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

Commit 29724d9

Browse files
roomotedaniel-lxs
authored andcommitted
feat: migrate SambaNova provider to AI SDK
- Replace BaseOpenAiCompatibleProvider with BaseProvider + AI SDK - Use dedicated sambanova-ai-provider package - Implement createMessage() using streamText with streaming support - Implement completePrompt() using generateText - Add processUsageMetrics() for cache token handling from providerMetadata - Add getMaxOutputTokens() and getLanguageModel() helpers - Use shared AI SDK utilities (convertToAiSdkMessages, handleAiSdkError, etc.) - Set default temperature to 0.5 following Fireworks pattern - Update tests to match AI SDK streaming behavior with async generators - Add comprehensive tests for usage metrics, temperature handling, tool handling, and error handling
1 parent b020f6b commit 29724d9

4 files changed

Lines changed: 833 additions & 124 deletions

File tree

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)