Skip to content

feat: AI SDK v6 support#18433

Merged
rekram1-node merged 45 commits intodevfrom
ai-sdk-v6
Mar 27, 2026
Merged

feat: AI SDK v6 support#18433
rekram1-node merged 45 commits intodevfrom
ai-sdk-v6

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

@rekram1-node rekram1-node commented Mar 20, 2026

TODO:

  • do we need to disable this logger? https://ai-sdk.dev/docs/migration-guides/migration-guide-6-0#warning-logger (it's already disabled)
  • fix model convertions in message-v2
  • finish migrating the copilot sdk
  • get gitlab ai sdk migrated to v6
  • Figure out what we should do since "unknown" -> "other" (see here: feat: expose raw finish reason vercel/ai#11338 forget why we had the "unknown" case in the first place) << This should be addressed but we may encounter some providers that we need to handle the RAW finish reason more precisely
  • ensure header wont be an issue
  • try to find work around for temp top_p for minimax like providers

@rekram1-node rekram1-node marked this pull request as draft March 20, 2026 20:14
…t before this PR can be merged VERYYYY IMPORTANTgcleangclean
…is LanguageModelV3 instead of LanuageModel union (should fix compat in llm.ts)
…t and tool-approval-response, fix type inference w/ union stuff
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
@kitlangton
Copy link
Copy Markdown
Contributor

/review and don't you dare just say LGTM

@github-actions
Copy link
Copy Markdown
Contributor

lgtm

@rekram1-node
Copy link
Copy Markdown
Collaborator Author

I don't think that the header thing should be an issue for many if any providers, should it become one we will explore approaches to fix it depending on use case.

As a work around if someone were to encounter an issue they could always temporarily create a provider hook that overrides the fetch impl and drops the headers. See codex.ts for example of how to override fetch. (U could also downgrade ofc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants