From 3b71e2d37793233862b3701d99bb579da2407c82 Mon Sep 17 00:00:00 2001 From: JeffJiang Date: Sun, 26 Apr 2026 12:36:05 +0800 Subject: [PATCH] feat: add request parameter to generate_suggestions endpoint for enhanced context Co-authored-by: Copilot --- backend/app/gateway/routers/suggestions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/gateway/routers/suggestions.py b/backend/app/gateway/routers/suggestions.py index 4936a450c..fe61c9c5e 100644 --- a/backend/app/gateway/routers/suggestions.py +++ b/backend/app/gateway/routers/suggestions.py @@ -100,7 +100,7 @@ def _format_conversation(messages: list[SuggestionMessage]) -> str: description="Generate short follow-up questions a user might ask next, based on recent conversation context.", ) @require_permission("threads", "read", owner_check=True) -async def generate_suggestions(thread_id: str, body: SuggestionsRequest) -> SuggestionsResponse: +async def generate_suggestions(thread_id: str, body: SuggestionsRequest, request: Request) -> SuggestionsResponse: if not body.messages: return SuggestionsResponse(suggestions=[])