[pull] master from AstrBotDevs:master#453
Merged
pull[bot] merged 2 commits intoSXP-Simon:masterfrom Apr 26, 2026
Merged
Conversation
* feat: add Firecrawl web search and extract tools, update configuration and tests * feat: implement Firecrawl API integration and error handling in web search tools * feat: enhance Firecrawl web search with session management and payload validation * feat: Firecrawl web search to use aiohttp.ClientSession directly for improved session management as it was * feat: update Firecrawl search to handle grouped web data response and add corresponding tests * feat: refactor Firecrawl web search to use aiohttp.ClientSession for improved error handling and session management * feat: remove unused coercion function and update Firecrawl search to use default limit in payload
) (#7758) PR #7202 added empty-assistant filtering in `_query` so strict providers (Moonshot, etc.) wouldn't 400 on history with blank assistant entries. The streaming sibling `_query_stream` was never updated, so DeepSeek Reasoner — which returns reasoning only during tool calls, leaving serialized content as `""` — blew up with `Invalid assistant message: content or tool_calls must be set` on the next turn. Hoisted the filter into a `_sanitize_assistant_messages` helper and called it from both paths. Also widened the empty check to cover `content == []`, which the original filter missed and which shows up with providers that emit content as a list of parts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )