Add manual friend refresh endpoint and fix category filter guidance
POST /api/beli/profiles/<id>/refresh-friends triggers friend ranking sampling on demand without waiting for the nightly cron. Also tightens the beli_search_restaurants docstring so the LLM passes category=restaurant when the user asks for restaurants, preventing bars/bakeries from appearing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1335,6 +1335,8 @@ async def beli_search_restaurants(
|
||||
cuisine: Filter by cuisine type (partial match). Leave blank for all cuisines.
|
||||
name: Filter by place name (partial match). Leave blank for all.
|
||||
category: Filter by type — 'restaurant', 'bar', 'cafe', 'bakery', 'dessert'. Leave blank for all.
|
||||
IMPORTANT: When the user asks for "restaurants", "top restaurants", or "places to eat",
|
||||
always pass category='restaurant'. Only leave blank when the user explicitly wants all types.
|
||||
include_friends: Include friends' rankings (default True). Set False for own lists only.
|
||||
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user