Skip to content

fix: astream() last call issue (#618)#626

Merged
HendrikStrobelt merged 2 commits into
mainfrom
hen/fix_618
Mar 12, 2026
Merged

fix: astream() last call issue (#618)#626
HendrikStrobelt merged 2 commits into
mainfrom
hen/fix_618

Conversation

@HendrikStrobelt

@HendrikStrobelt HendrikStrobelt commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Misc PR

Type of PR

  • Bug Fix
  • New Feature
  • Documentation
  • Other

Description

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code as added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

- astream() on computed MOT now raises error
- the last astream call does NOT contain the full text again. All astream() chunks concatenated will be the full text.

Related tests are added/modified.
# Conflicts:
#	mellea/core/base.py
@github-actions

Copy link
Copy Markdown
Contributor

The PR description has been updated. Please fill out the template for your PR to be reviewed.

@mergify

mergify Bot commented Mar 11, 2026

Copy link
Copy Markdown

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|release)(?:\(.+\))?:

@jakelorocco jakelorocco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm; we should be sure to highlight this behavior change in our release notes

@HendrikStrobelt
HendrikStrobelt added this pull request to the merge queue Mar 12, 2026
Merged via the queue into main with commit 3cedec7 Mar 12, 2026
8 of 11 checks passed
akihikokuroda pushed a commit to akihikokuroda/mellea that referenced this pull request May 27, 2026
- astream() on computed MOT now raises error
- the last astream call does NOT contain the full text again. All astream() chunks concatenated will be the full text.

Related tests are added/modified.
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.

Streaming returns the full text in the last chunk.

2 participants