Skip to content

Commit 54ccd3a

Browse files
committed
Include query_parameters in internal recommend handler response
Match the public /v1/recommend endpoint's HueyOutput contract so response_mapping for "query" works via both HTTP and direct paths.
1 parent 212407a commit 54ccd3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/services/internal_api_handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ async def handle_recommend(
6363

6464
return {
6565
"count": len(recommended_books),
66+
"query": query_parameters,
6667
"books": [book.model_dump(mode="json") for book in recommended_books],
6768
}

0 commit comments

Comments
 (0)