MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / getChat

Function getChat

ui/node-react/client/src/api.js:58–62  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

56}
57
58export async function getChat(id) {
59 const res = await fetch(`${API_BASE}/chats/${id}`, { headers: getHeaders() });
60 if (!res.ok) throw new Error('Failed to fetch chat');
61 return res.json();
62}
63
64export async function sendMessage(chatId, query, history, docs, datasets, messageOffset) {
65 const res = await fetch(`${API_BASE}/chats/${chatId}/message`, {

Callers 1

ChatView.jsFile · 0.90

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected