mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-22 10:16:13 +01:00
🌡️ feat: Periodic Health Check to prevent UI Inactivity Connection Errors (#3589)
* 🌡️ feat: Periodic Health Check to prevent UI Inactivity Connection Errors
* feat: Add refetchOnWindowFocus option for health check
* feat: programmatically scroll to end when a chat request is initiated (and messages have rendered)
This commit is contained in:
parent
cf393b1308
commit
6ea2628b56
12 changed files with 81 additions and 14 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import type { AssistantsEndpoint } from './schemas';
|
||||
|
||||
export const health = () => '/api/health';
|
||||
export const user = () => '/api/user';
|
||||
|
||||
export const balance = () => '/api/balance';
|
||||
|
|
|
|||
|
|
@ -573,3 +573,7 @@ export function addTagToConversation(
|
|||
export function rebuildConversationTags(): Promise<t.TConversationTagsResponse> {
|
||||
return request.post(endpoints.conversationTags('rebuild'));
|
||||
}
|
||||
|
||||
export function healthCheck(): Promise<string> {
|
||||
return request.get(endpoints.health());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ export enum QueryKeys {
|
|||
randomPrompts = 'randomPrompts',
|
||||
roles = 'roles',
|
||||
conversationTags = 'conversationTags',
|
||||
health = 'health',
|
||||
}
|
||||
|
||||
export enum MutationKeys {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue