(chat_id, data)
| 40 | * data |
| 41 | */ |
| 42 | const chat: (chat_id: string, data: any) => Promise<any> = (chat_id, data) => { |
| 43 | const prefix = (window.MaxKB?.prefix ? window.MaxKB?.prefix : '/chat') + '/api' |
| 44 | return postStream(`${prefix}/chat_message/${chat_id}`, data) |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * 应用认证信息 |
nothing calls this directly
no test coverage detected