feat: add custom hook useAIChat for managing AI chat interactions

- Implemented useAIChat hook to handle chat messages, input state, and streaming responses.
- Added types for ChatMessage and ChatContext to ensure type safety.
- Integrated TRPC mutation for sending messages and handling responses.
- Included functionality for clearing messages and managing streaming content.
This commit is contained in:
Roberto Musso
2026-02-26 23:31:41 +01:00
parent e19582201f
commit a16e1cc42a
2 changed files with 1360 additions and 0 deletions

File diff suppressed because it is too large Load Diff