Skip to content

chore: deprecate generators#11496

Merged
anakin87 merged 3 commits into
mainfrom
deprecate-generators
Jun 4, 2026
Merged

chore: deprecate generators#11496
anakin87 merged 3 commits into
mainfrom
deprecate-generators

Conversation

@anakin87
Copy link
Copy Markdown
Member

@anakin87 anakin87 commented Jun 3, 2026

Related Issues

Proposed Changes:

  • deprecate generators
    • I'm using a FutureWarning because I've noticed that DeprecationWarning does not get shown unless you use python -W all or other specific configs. Aligned for example with Scikit Learkn
  • add a clear release note, reusing content from v3 MIGRATION.md file

How did you test it?

CI, manual checks that the warning appears

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
haystack-docs Ignored Ignored Preview Jun 3, 2026 2:07pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/components/generators
  azure.py
  hugging_face_api.py
  hugging_face_local.py
  openai.py
  utils.py
Project Total  

This report was generated by python-coverage-comment-action

@anakin87 anakin87 marked this pull request as ready for review June 3, 2026 10:41
@anakin87 anakin87 requested a review from a team as a code owner June 3, 2026 10:41
@anakin87 anakin87 requested review from davidsbatista and removed request for a team June 3, 2026 10:41
@anakin87

This comment was marked as outdated.

@claude
Copy link
Copy Markdown

claude Bot commented Jun 3, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

1 similar comment
@claude
Copy link
Copy Markdown

claude Bot commented Jun 3, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

logger = logging.getLogger(__name__)


def _generators_deprecation_warning(generator_name: str, chatgenerator_name: str) -> None:
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.

👍🏽

Copy link
Copy Markdown
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

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

looks good!

@anakin87 anakin87 merged commit e407673 into main Jun 4, 2026
54 of 59 checks passed
@anakin87 anakin87 deleted the deprecate-generators branch June 4, 2026 08:02
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.

2 participants