MCPcopy Create free account
hub / github.com/PromtEngineer/localGPT / getSessionIndexes

Method getSessionIndexes

src/lib/api.ts:529–533  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

527 }
528
529 async getSessionIndexes(sessionId: string): Promise<{ indexes: any[]; total: number }> {
530 const resp = await fetch(`${API_BASE_URL}/sessions/${sessionId}/indexes`);
531 if (!resp.ok) throw new Error(`Failed to get session indexes: ${resp.status}`);
532 return resp.json();
533 }
534
535 async deleteIndex(indexId: string): Promise<{ message: string }> {
536 const resp = await fetch(`${API_BASE_URL}/indexes/${indexId}`, {

Callers 3

SessionIndexInfoFunction · 0.80
session-chat.tsxFile · 0.80
sendMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected