[ON_HOLD] Vercel SDK migration V4 -> V5 #1565
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Yesterday I started applying blindly the codemods linked in the Migration guide and I realized this is going to change things in our
I'm trying a different approach here to just change the translation layer between latitude and Vercel SDK without affecting what users send to our servers if possible
TODO
responseMessages
in both legacy and new stream manager. Same as the format. Reuse.content.input
usecontent.args
old names to keep compatibility.Things that changed (And affect us)
I'll try to gather here a list of things that we need to change
providerOptions
instead ofproviderMetadata
for input we already were doing this for input.reasoning
part has be renamed totext
I think this one affect us even is for their UI sdk@api-sdk/rsc
instead ofai/rsc
reasoning
event renamed toreasoning-delta
maxTokens
so users with existing prompts using this prop don't have to change it. I'll do a test for this.usage
tokens renaming We need to handle this. Now Vercel SDK returnstotalTokens
when the steps finish.parameters
now are calledinputsSchema
maxSteps
to vercel SDKtemperature
default removal. We need to decide if Latitude add a default temperature.