MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / chat

Function chat

ui/src/api/chat/chat.ts:42–45  ·  view source on GitHub ↗
(chat_id, data)

Source from the content-addressed store, hash-verified

40 * data
41 */
42const 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 * 应用认证信息

Callers

nothing calls this directly

Calls 1

postStreamFunction · 0.90

Tested by

no test coverage detected