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

Commit acce890

Browse files
committed
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 ede1d29 commit acce890

4 files changed

Lines changed: 806 additions & 118 deletions

File tree

pnpm-lock.yaml

Lines changed: 56 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)