Syntax changes in front and back end dirs. These do not affect functionality and are purely intended to better capture and describe the app's functionality and purpose
This commit is contained in:
@@ -5,11 +5,11 @@ import { handleResponse } from './client.js';
|
||||
const BASE = '/api/query';
|
||||
const CITATION_DETAIL_BASE = '/api/citation-detail';
|
||||
|
||||
export async function sendQuery(notebookId, question, onCitationDetails) {
|
||||
export async function sendQuery(sourceCorpusId, question, onCitationDetails) {
|
||||
const res = await fetch(BASE, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ notebookId, question }),
|
||||
body: JSON.stringify({ sourceCorpusId, question }),
|
||||
});
|
||||
const data = await handleResponse(res);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user