MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / chat

Function chat

ui/src/api/application/application.ts:270–273  ·  view source on GitHub ↗
(chat_id, data)

Source from the content-addressed store, hash-verified

268 * @param data
269 */
270const chat: (chat_id: string, data: any) => Promise<any> = (chat_id, data) => {
271 const prefix = (window.MaxKB?.prefix ? window.MaxKB?.prefix : '/admin') + '/api'
272 return postStream(`${prefix}/chat_message/${chat_id}`, data)
273}
274/**
275 * 获取对话用户认证类型
276 * @param loading 加载器

Callers

nothing calls this directly

Calls 1

postStreamFunction · 0.90

Tested by

no test coverage detected