Frontend Feature add on Dagster
This commit is contained in:
@@ -385,10 +385,17 @@ export const api = {
|
||||
// calls - a colleague hits it with an X-API-Key from a script.
|
||||
listInbox: () => request('/api/admin/catalog-batch/inbox'),
|
||||
|
||||
startBatchFromInbox: (fileIds, { use_llm = false, fetch_images = false } = {}) =>
|
||||
// `runner` picks the executor: 'inprocess' (this container's worker thread,
|
||||
// the default and the only one that exists in production) or 'dagster'
|
||||
// (staged and left for the orchestrator to claim). See InboxStartRequest in
|
||||
// app/api/routers/batch_catalog.py.
|
||||
startBatchFromInbox: (
|
||||
fileIds,
|
||||
{ use_llm = false, fetch_images = false, runner = 'inprocess' } = {},
|
||||
) =>
|
||||
request('/api/admin/catalog-batch/from-inbox', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ file_ids: fileIds, use_llm, fetch_images }),
|
||||
body: JSON.stringify({ file_ids: fileIds, use_llm, fetch_images, runner }),
|
||||
}),
|
||||
|
||||
dismissInboxFiles: (fileIds) =>
|
||||
|
||||
Reference in New Issue
Block a user