Skip to content

Update haystack-ai requirement from >=2.9.0 to >=2.30.0#8

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/haystack-ai-gte-2.30.0
Open

Update haystack-ai requirement from >=2.9.0 to >=2.30.0#8
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/haystack-ai-gte-2.30.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Jun 4, 2026

Updates the requirements on haystack-ai to permit the latest version.

Release notes

Sourced from haystack-ai's releases.

v2.30.0

⭐️ Highlights

🐍 Syntax-aware Python code splitting with PythonCodeSplitter

The new PythonCodeSplitter is a syntax-aware splitter for Python source files, built for code-RAG and code-search pipelines where naive line-based splitting tends to cut through functions and lose structural context. It parses sources with the ast module and greedily merges units, such as module docstring, import blocks, top-level functions, class headers, methods, and nested classes, into chunks of roughly max_effective_lines, keeping whole functions and methods together. For functions that exceed oversized_factor * max_effective_lines, it falls back to a line-based secondary split with overlap.

Two options make the resulting chunks more useful downstream: strip_docstrings=True moves docstrings into chunk metadata, and preserve_class_definition=True prepends the enclosing class signature to chunks whose members live in a later chunk. Each chunk also carries rich metadata including start_line, end_line, unit_kinds, include_classes, decorators, docstrings, source_id, and split_id.

from haystack.components.preprocessors import PythonCodeSplitter
splitter = PythonCodeSplitter(
max_effective_lines=80,
strip_docstrings=True,
preserve_class_definition=True,
)
result = splitter.run(documents=[doc])

💬 Pass a plain string to any ChatGenerator

All Haystack ChatGenerator components now accept a plain string for the messages parameter in addition to a list of ChatMessage objects. The string is automatically wrapped in a ChatMessage with the user role. This makes switching from a Generator to a ChatGenerator a one-line change. The change applies to AzureOpenAIChatGenerator, AzureOpenAIResponsesChatGenerator, FallbackChatGenerator, HuggingFaceAPIChatGenerator, HuggingFaceLocalChatGenerator, OpenAIChatGenerator, and OpenAIResponsesChatGenerator, and will soon be rolled out to the ChatGenerators in Haystack Core Integrations.

from haystack.components.generators.chat import OpenAIChatGenerator
generator = OpenAIChatGenerator()
passing a string is equivalent to passing [ChatMessage.from_user("...")]
response = generator.run("What's Natural Language Processing?")
print(response["replies"][0].text)

⬆️ Upgrade Notes

  • DALLEImageGenerator has been updated to account for OpenAI's retirement of the DALL-E models. The default model is now gpt-image-2 (previously dall-e-3). To migrate:

    • Update model value: besides gpt-image-2, gpt-image-1 and gpt-image-1-mini are also supported.
    • Update quality value: the new accepted values are auto, high, medium, or low (previously standard or hd).
    • Update size value: the new accepted values are 1024x1024, 1024x1536, 1536x1024, or auto. gpt-image-2 also supports arbitrary sizes.
    • The response_format parameter is now ignored. The component always returns base64-encoded JSON.
  • LLM.run and LLM.run_async no longer accept messages and streaming_callback as positional arguments — they must now be passed as keyword arguments. Update any direct calls accordingly:

    # Before
    llm.run([message], my_callback)
    After

... (truncated)

Commits
  • cdd105e bump version to 2.30.0
  • b24edf7 bump version to 2.30.0-rc1
  • 817cecf ci: fix release branch-off permissions and gate releases on maintainer role (...
  • 41c2722 test: use 'is None' instead of '== None' (CodeQL py/test-equals-none) (#11483)
  • b89ce54 ci: remove Datadog CI metrics workflow (#11481)
  • 53efaf3 docs: sync Haystack API reference on Docusaurus (#11479)
  • 6ed5d86 docs: sync Haystack API reference on Docusaurus (#11478)
  • 85e183f fix: better error message for llm metadata extractor (#11477)
  • 1661601 fix: pagination error too many values to unpack (#11475)
  • e8ebfb4 build(deps): bump int128/datadog-actions-metrics from 1.166.0 to 1.167.0 (#11...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [haystack-ai](https://github.com/deepset-ai/haystack) to permit the latest version.
- [Release notes](https://github.com/deepset-ai/haystack/releases)
- [Commits](deepset-ai/haystack@v2.9.0...v2.30.0)

---
updated-dependencies:
- dependency-name: haystack-ai
  dependency-version: 2.30.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants