Skip to content

[0.x] Fix conversational message iterable handling in text generation#345

Open
Button99 wants to merge 1 commit intolaravel:0.xfrom
Button99:0.x
Open

[0.x] Fix conversational message iterable handling in text generation#345
Button99 wants to merge 1 commit intolaravel:0.xfrom
Button99:0.x

Conversation

@Button99
Copy link
Copy Markdown
Contributor

@Button99 Button99 commented Apr 1, 2026

This PR fixes a contract mismatch in the text generation flow.

Conversational::messages() returns iterable but the prompt and stream paths were treating the return value as an array and appending it to $messages[].

It can work for arrays but for other iterable types will break.

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

Successfully merging this pull request may close these issues.

1 participant