Skip to content

fix: add auto-fallback for search providers without templates - #286

Merged
pancacake merged 1 commit into
HKUDS:devfrom
OlegSob-glitch:fix/searxng-template-fallback
Apr 11, 2026
Merged

fix: add auto-fallback for search providers without templates#286
pancacake merged 1 commit into
HKUDS:devfrom
OlegSob-glitch:fix/searxng-template-fallback

Conversation

@OlegSob-glitch

Copy link
Copy Markdown
Contributor

Bug:
[info] Preparing configuration snapshot.
[config] Using active profile.
[info] Resolved search provider searxng.
[info] Running search query: DeepTutor configuration health check
[failed] No template consolidation available for provider 'searxng'. Template consolidation only works with: ['serper', 'jina', 'serper_scholar']. Use consolidation='llm' or provide a custom_template for other providers.

  • Modified _get_template_for_provider() to return None instead of raising ValueError
  • Added _format_simple_results() as provider-agnostic fallback formatter
  • Modified _consolidate_with_template() to use fallback when no template exists
  • Fixes searxng (and other providers) failing with 'no template consolidation available' error

Description

A clear and concise description of the changes.

Related Issues

  • Closes #...
  • Related to #...

Module(s) Affected

  • agents
  • api
  • config
  • core
  • knowledge
  • logging
  • services
  • tools
  • utils
  • web (Frontend)
  • docs (Documentation)
  • scripts
  • tests
  • Other: ...

Checklist

  • I have read and followed the contribution guidelines.
  • My code follows the project's coding standards.
  • I have run pre-commit run --all-files and fixed any issues.
  • I have added relevant tests for my changes.
  • I have updated the documentation (if necessary).
  • My changes do not introduce any new security vulnerabilities.

Additional Notes

Add any other context or screenshots about the pull request here.

- Modified _get_template_for_provider() to return None instead of raising ValueError
- Added _format_simple_results() as provider-agnostic fallback formatter
- Modified _consolidate_with_template() to use fallback when no template exists
- Fixes searxng (and other providers) failing with 'no template consolidation available' error
@pancacake

Copy link
Copy Markdown
Collaborator

Thanks for your contribution! We'll take that into consideration

@pancacake
pancacake merged commit d94119b into HKUDS:dev Apr 11, 2026
4 checks passed
@pancacake pancacake mentioned this pull request Apr 11, 2026
@OlegSob-glitch
OlegSob-glitch deleted the fix/searxng-template-fallback branch April 11, 2026 13:34
vaskoyudha added a commit to vaskoyudha/deeptutor-for-programmer-fork that referenced this pull request Jul 25, 2026
…-fallback

fix: add auto-fallback for search providers without templates
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