James Sheldon

Results 3 comments of James Sheldon

Ya this is a 100000% required as an official library pattern. In my opinion any custom solution (thanks for sharing @e-simpson) seems like it would error prone to version change...

I don't know if this is related but even the normal open models for streamObject return NaN for usage values.

> @sheldonj for OpenAI it should work. In case you use `createOpenAI`, you need to set `compatibility` to `strict`: https://sdk.vercel.ai/providers/ai-sdk-providers/openai#provider-instance (this was necessary to prevent breaking changes with OpenAI-"compatible" providers)....