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:
Danny Avila 2025-12-18 09:52:27 -05:00
parent 6aebccd20a
commit dc81abcc01
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 54 additions and 1 deletions

View file

@ -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';