Skip to content

Conversation

andresgutgon
Copy link
Contributor

@andresgutgon andresgutgon commented Aug 12, 2025

What?

The reason for this is to try to use gpt-5 as a reasoning model so we can pass reasoing.effort: minimal when we need no-reasoning

Migration guide

https://ai-sdk.dev/docs/migration-guides/migration-guide-5-0

TODO

  • Make client tool calling work
  • Fix Typescript errors
  • QA Latitude tools calls
  • QA old models like gpt-4o
  • QA other providers like Claude antropic
  • Review Typescript SDK after Vercel SDK changes
  • Review Python SDK after Vercel SDK changes
  • QA generate synthetic dataset

Telemetry

Now Vercel SDK output different names for things like usage. Now is usage.inputTokens and usage.outputTokens. Review how this affects telemetry.

The reason for this is to try to use gpt-5 as a reasoning model so we
can pass reasoing.effort: `minimal` when we need no-reasoning
@andresgutgon andresgutgon added the 🚧 wip Work in progress label Aug 12, 2025
geclos
geclos previously approved these changes Aug 12, 2025
Copy link
Collaborator

@geclos geclos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No breaking changes that affect us?

@@ -355,9 +292,6 @@ export function useProviderEventHandler({
case 'reasoning':
handleReasoning(data)
break
case 'redacted-reasoning':
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been removed from Vercel SDK. Here you can see the codemod to do the v4 -> v5 migration
https://github.com/vercel/ai/blob/main/packages/codemod/src/codemods/v5/replace-redacted-reasoning-type.ts#L67-L100

@andresgutgon
Copy link
Contributor Author

No breaking changes that affect us?

I fear a lot. This is ultra WIP

@andresgutgon
Copy link
Contributor Author

Closing this one in favour of a more surgical approach #1565

@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚧 wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants