V6 - #33
Merged
Merged
Conversation
requesty-JohnCosta27
force-pushed
the
v6
branch
from
December 23, 2025 11:25
e3847bf to
cc800c1
Compare
There was a problem hiding this comment.
Review by RecurseML
🔍 Review performed on 9a47cb3..e3847bf
| Severity | Location | Issue | Delete |
|---|---|---|---|
| src/requesty-chat-language-model.ts:286 | Missing undefined fallback for outputTokens | ||
| src/stream/index.ts:31 | Incorrect cache token mapping |
✅ Files analyzed, no issues (18)
• package.json
• pnpm-lock.yaml
• src/e2e/pizza.test.ts
• src/index.ts
• src/integration/chat.test.ts
• src/internal/index.ts
• src/map-requesty-finish-reason.ts
• src/messages/handle-assistant-message.test.ts
• src/messages/handle-assistant-message.ts
• src/messages/handle-system-message.ts
• src/messages/handle-tool-message.test.ts
• src/messages/handle-tool-message.ts
• src/messages/index.ts
• src/requesty-completion-language-model.ts
• src/requesty-completion-settings.ts
• src/requesty-provider.ts
• src/stream/index.test.ts
• src/util/set-provider-metadata.ts
requesty-JohnCosta27
force-pushed
the
v6
branch
2 times, most recently
from
December 23, 2025 11:52
851e878 to
ea335a3
Compare
requesty-JohnCosta27
force-pushed
the
v6
branch
from
December 23, 2025 11:53
ea335a3 to
98c5490
Compare
requesty-ditti
approved these changes
Dec 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
High-level PR Summary
This PR upgrades the provider implementation from
@ai-sdk/providerv2 to v3, removing the completion model API entirely and modernizing the chat model to use the new V3 specification. The changes include a major refactor of finish reason handling, usage metrics structure (now with separated cache/no-cache/reasoning tokens), tool approval flow preparation, and updates to all language model interfaces fromLanguageModelV2toLanguageModelV3. The PR also bumps the peer dependencyaifrom ^5.0.52 to ^6.0.1 and updates related test assertions to match the new usage structure.⏱️ Estimated Review Time: 1-3 hours
💡 Review Order Suggestion
package.jsonpnpm-lock.yamlsrc/index.tssrc/internal/index.tssrc/requesty-completion-language-model.tssrc/requesty-completion-settings.tssrc/map-requesty-finish-reason.tssrc/util/set-provider-metadata.tssrc/messages/handle-tool-message.tssrc/messages/handle-assistant-message.tssrc/messages/handle-system-message.tssrc/messages/index.tssrc/requesty-chat-language-model.tssrc/stream/index.tssrc/requesty-provider.tssrc/e2e/pizza.test.tssrc/integration/chat.test.tssrc/messages/handle-assistant-message.test.tssrc/messages/handle-tool-message.test.tssrc/stream/index.test.ts