Repository navigation
Search the web when signed out - #284
Merged
Merged
Conversation
The hosted /v1/websearch is open to anonymous callers now, but the client still refused to call it without credentials, so a signed-out user got "not signed in" instead of results. Drop the credential gate from the search and status calls; a signed-in caller still sends its token, which keeps its searches in its access log.
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.
The hosted
/v1/websearchserves anonymous callers since smartloop-labs/api#201, but the client still refused to call it without credentials. A signed-out user'sweb_searchcame back "not signed in to Smartloop" instead of results.search/providers.rs: drop the credential gate from the search call and the availability check. A signed-in caller still sends its token, which keeps its searches in its access log.web_tools.rs/web_search_agent.rs: drop the now-unreachableNoSearchCredentialscase; the 401/403 message no longer mentions a monthly allowance.cargo test --test unit -- web_search platform_client: 140 passed.