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:
2026-09-17 22:29:52 -04:00
parent 4c0d161f10
commit 69bf5edefe
2 changed files with 25 additions and 1 deletions
+2
View File
@@ -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: