(chatId: string, messageId: string)
| 679 | |
| 680 | // 自定义 hook 用于订阅流式消息状态 |
| 681 | export const useStreamingMessage = (chatId: string, messageId: string) => { |
| 682 | return useMessagesStore((state) => state.streamingMessages[chatId]?.[messageId]) |
| 683 | } |
| 684 | |
| 685 | // 自定义 hook 用于订阅整个聊天的流式消息状态 |
| 686 | export const useStreamingMessages = (chatId: string) => { |
no outgoing calls
no test coverage detected