Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI SDK v4.1.12 introduces a breaking change for Morphic with multiple tool steps #418

Open
bass3l opened this issue Feb 1, 2025 · 1 comment

Comments

@bass3l
Copy link

bass3l commented Feb 1, 2025

Currently, Morphic assumes that they are are two subsequent assistant messages, one contains the tool call or result and the second contains the LLM response.

AI SDK introduced a change with version v4.1.12 that merges the two messages into one with vercel/ai#4591 resulting in Morphic only showing the search tool result and no answer or related questions.

@nauxliu
Copy link

nauxliu commented Feb 3, 2025

I also noticed that when there are multiple tool calls in the same assistant message, it seems to mix up the message‐tool sequence. In other words, I’m seeing that subsequent tool calls can get appended out of order, making the final assistant message’s flow confusing. It’s especially noticeable in scenarios with more than one tool call. It would be great that each tool call is appended in the correct order and that no steps are reordered unexpectedly.

Before:
image

After
CleanShot 2025-02-03 at 14 48 56@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants