mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-18 16:38:10 +01:00
refactor: useResumableStreamToggle hook to manage resumable streams for legacy/assistants endpoints
- Introduced a new hook, useResumableStreamToggle, to automatically toggle resumable streams off for assistants endpoints and restore the previous value when switching away. - Updated ChatView component to utilize the new hook, enhancing the handling of streaming behavior based on endpoint type. - Refactored imports in ChatView for better organization.
This commit is contained in:
parent
6aebccd20a
commit
dc81abcc01
3 changed files with 54 additions and 1 deletions
|
|
@ -5,3 +5,4 @@ export { default as useResumeOnLoad } from './useResumeOnLoad';
|
|||
export { default as useStepHandler } from './useStepHandler';
|
||||
export { default as useContentHandler } from './useContentHandler';
|
||||
export { default as useAttachmentHandler } from './useAttachmentHandler';
|
||||
export { default as useResumableStreamToggle } from './useResumableStreamToggle';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue