Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
209ccdf6
Commit
209ccdf6
authored
Aug 04, 2024
by
Timothy J. Baek
Browse files
refac
parent
e5dd7e65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
backend/apps/webui/routers/chats.py
backend/apps/webui/routers/chats.py
+1
-1
src/lib/utils/index.ts
src/lib/utils/index.ts
+0
-2
No files found.
backend/apps/webui/routers/chats.py
View file @
209ccdf6
...
@@ -46,7 +46,7 @@ async def get_session_user_chat_list(
...
@@ -46,7 +46,7 @@ async def get_session_user_chat_list(
user
=
Depends
(
get_verified_user
),
page
:
Optional
[
int
]
=
None
user
=
Depends
(
get_verified_user
),
page
:
Optional
[
int
]
=
None
):
):
if
page
is
not
None
:
if
page
is
not
None
:
limit
=
2
0
limit
=
6
0
skip
=
(
page
-
1
)
*
limit
skip
=
(
page
-
1
)
*
limit
return
Chats
.
get_chat_title_id_list_by_user_id
(
user
.
id
,
skip
=
skip
,
limit
=
limit
)
return
Chats
.
get_chat_title_id_list_by_user_id
(
user
.
id
,
skip
=
skip
,
limit
=
limit
)
...
...
src/lib/utils/index.ts
View file @
209ccdf6
import
{
v4
as
uuidv4
}
from
'
uuid
'
;
import
{
v4
as
uuidv4
}
from
'
uuid
'
;
import
sha256
from
'
js-sha256
'
;
import
sha256
from
'
js-sha256
'
;
import
{
WEBUI_BASE_URL
}
from
'
$lib/constants
'
;
import
{
WEBUI_BASE_URL
}
from
'
$lib/constants
'
;
import
{
scrollPaginationEnabled
,
chats
,
currentChatPage
}
from
'
$lib/stores
'
;
import
{
getChatList
}
from
'
$lib/apis/chats
'
;
//////////////////////////
//////////////////////////
// Helper functions
// Helper functions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment