mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-05 05:35:22 +00:00
feat: Add url field to PaginatedResponse and populate it using route path
Resolves: https://github.com/meta-llama/llama-stack/issues/1847 Changes: - responses.py: added optional `url` field to PaginatedResponse - server.py: automatically populate the URL field with route path
This commit is contained in:
parent
33ecefd284
commit
e28a57ad76
4 changed files with 14 additions and 1 deletions
|
@ -23,7 +23,9 @@ class PaginatedResponse(BaseModel):
|
|||
|
||||
:param data: The list of items for the current page
|
||||
:param has_more: Whether there are more items available after this set
|
||||
:param url: The URL for accessing this list
|
||||
"""
|
||||
|
||||
data: list[dict[str, Any]]
|
||||
has_more: bool
|
||||
url: str | None = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue