Repository navigation
SN-2a: web search through Gecko Suite behind AI_BACKEND - #214
Merged
Merged
Conversation
search_web_for_user and the settings test route call the suite's POST /search/web in suite mode and keep their response shapes. The suite picks the backend and records the search; Notes writes no usage. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1geD2ELWgL2sDpxYbx3Aw
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
First piece of SN-2 (speech and image generation follow as their own PRs). With
AI_BACKEND=suite, the assistant's web search (search_web_for_user, used by both the browser route and the assistant worker) calls the suite'sPOST /api/v1/search/weband returns the same shape as before (provider,provider_label,query,results).localis unchanged.{code, message}, which the assistant already turns into a failed-search note. The suite being down is a 503suite_unavailable.suite.request_jsoninapp/suite.pyfor the speech and image pieces to reuse.Test plan
pytest -qinbackend/: 1365 passed, 1 skipped (Python 3.13 locally; CI is 3.11). 4 new tests intests/test_suite_proxy.py: forwarded request and credentials, shape and count clamp, no usage written, suite refusal, empty query, test button.Deployment
Nothing changes unless
AI_BACKEND=suiteis already set (from #213).notes.AI_BACKEND=localanddocker compose up -d.Generated by Claude Code