@semiont/jobs 0.5.11 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/worker-main.js +2 -3
- package/dist/worker-main.js.map +1 -1
- package/package.json +9 -9
package/dist/worker-main.js
CHANGED
|
@@ -10495,10 +10495,9 @@ async function processGenerationJob(inferenceClient, params, onProgress, logger2
|
|
|
10495
10495
|
`Unsupported outputMediaType for generation: ${outputMediaType}. Generation produces ${GENERATABLE_MEDIA_TYPES.join(" or ")}.`
|
|
10496
10496
|
);
|
|
10497
10497
|
}
|
|
10498
|
-
onProgress(20, "Fetching context...", "fetching");
|
|
10499
10498
|
const title = params.title ?? "Untitled";
|
|
10500
10499
|
const entityTypes = (params.entityTypes ?? []).map(String);
|
|
10501
|
-
onProgress(
|
|
10500
|
+
onProgress(5, "Generating resource...", "generating");
|
|
10502
10501
|
const generated = await generateResourceFromTopic(
|
|
10503
10502
|
title,
|
|
10504
10503
|
entityTypes,
|
|
@@ -10522,7 +10521,7 @@ async function processGenerationJob(inferenceClient, params, onProgress, logger2
|
|
|
10522
10521
|
content = resolved.content;
|
|
10523
10522
|
citations = resolved.citations;
|
|
10524
10523
|
}
|
|
10525
|
-
onProgress(
|
|
10524
|
+
onProgress(95, "Creating resource...", "creating");
|
|
10526
10525
|
return {
|
|
10527
10526
|
content,
|
|
10528
10527
|
title: generated.title ?? title,
|