Vercel launched ai sdk which is a wrapper on top of the existing openai package. Can we use that for building our hackathon submission? I have tested out SambaNova endpoint and it works well with it, just wanted to clarify if the usage is limited to the openai sdk
OpenAPI with base URL changes works for basic REST calls, but dedicated AI SDKs provide critical features like proper typing, streaming support, specialized error handling, and helper utilities that you’d otherwise need to build yourself.
We’re using the Vercel AI SDK with SambaNova and streamText method. When calling streamText with DeepSeek model, we’re getting NaN values for token usage in onFinish callback.