summaries chat client
This commit is contained in:
@@ -204,4 +204,11 @@ export async function getModelProps() {
|
||||
const res = await fetch(`${BASE_URL}/models/props`);
|
||||
if (!res.ok) throw new Error('Failed to fetch model props');
|
||||
return res.json();
|
||||
}
|
||||
}
|
||||
|
||||
export async function fetchSessionSummaries(sessionId) {
|
||||
const res = await fetch(`${BASE_URL}/summaries/session/${sessionId}`);
|
||||
if (!res.ok) throw new Error(`Failed to fetch summaries: ${res.status}`);
|
||||
return res.json();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user