Skip to content

Commit

Permalink
issue #1155: rename range in paginationFrom, rename size in paginatio…
Browse files Browse the repository at this point in the history
…nSize
  • Loading branch information
Luca Callocchia committed Dec 13, 2024
1 parent 7898b2b commit bcb20a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ai-packages/rag-module/app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ class UserChats(BaseModel):

userId: str
chatSequenceNumber: int = 1
range: int = 0
size: int = 10
paginationFrom: int = 0
paginationSize: int = 10


@app.post("/api/rag/user_chats")
Expand All @@ -222,8 +222,8 @@ async def get_user_chats(
):
user_id = user_chats.userId
chat_sequence_number = user_chats.chatSequenceNumber
chats_range = user_chats.range
chats_size = user_chats.size
pagination_from = user_chats.paginationFrom
pagination_size = user_chats.paginationSize
virtual_host = urlparse(str(request.base_url)).hostname
token = authorization.replace(TOKEN_PREFIX, "")

Expand All @@ -235,8 +235,8 @@ async def get_user_chats(
)

query = {
"from": chats_range,
"size": chats_size,
"from": pagination_from,
"size": pagination_size,
"query": {
"bool": {
"must": [
Expand Down

0 comments on commit bcb20a6

Please sign in to comment.