feat(fetch-requests): support llama_parse pipeline

- Fix PipelineType union: "llama_parser" → "llama_parse" (matches backend enum)
- Add "llama_extract" to SSEEventStep union
- PipelineStepper: advance Extract stage on llama_extract events

Dropdown/badge rendering is OpenAPI-spec-driven and picks the new value up
automatically; no other changes required.
This commit is contained in:
2026-08-23 01:39:56 +05:30
parent 2add23efe7
commit 22e6603924
2 changed files with 9 additions and 3 deletions

View File

@@ -29,7 +29,13 @@ function computeProgressPercent(
let pct = 0;
if (seenSteps.has("raw_lines") || seenSteps.has("txn_blocks")) pct += 10;
if (
seenSteps.has("raw_lines") ||
seenSteps.has("txn_blocks") ||
seenSteps.has("llama_extract")
) {
pct += 10;
}
if (txnBlockCount > 0) {
const current = Math.max(liveCount, stepStats.txn_dicts ?? 0);

View File

@@ -26,7 +26,7 @@ export interface EmailSource {
txn_dicts_count?: number;
}
export type PipelineType = "heuristic" | "llm" | "llama_parser";
export type PipelineType = "heuristic" | "llm" | "llama_parse";
export interface FetchRequestCreate {
source: FileSource | EmailSource;
@@ -90,7 +90,7 @@ export interface ResolveAmbiguityPayload {
export type SSEEventStep =
| "load_content" | "raw_lines" | "txn_blocks" | "txn_dicts"
| "resume_extract" | "extract" | "paused" | "complete" | "enrich"
| "save_expenses" | "pipeline";
| "save_expenses" | "pipeline" | "llama_extract";
export type SSEEventStatus =
| "started" | "completed" | "skipped" | "paused" | "progress" | "failed";