This commit is contained in:
Timothy Jaeryang Baek
2024-12-23 00:31:33 -07:00
parent 4c756b5501
commit 76c8602324
3 changed files with 9 additions and 14 deletions
+2 -2
View File
@@ -166,10 +166,10 @@ export const deleteChannelById = async (token: string = '', channel_id: string)
}
export const getChannelMessages = async (token: string = '', channel_id: string, page: number = 1) => {
export const getChannelMessages = async (token: string = '', channel_id: string, skip: number = 0, limit: number = 50) => {
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/channels/${channel_id}/messages?page=${page}`, {
const res = await fetch(`${WEBUI_API_BASE_URL}/channels/${channel_id}/messages?skip=${skip}&limit=${limit}`, {
method: 'GET',
headers: {
Accept: 'application/json',