diff options
Diffstat (limited to 'apps/workers')
| -rw-r--r-- | apps/workers/workers/inference/summarize.ts | 2 | ||||
| -rw-r--r-- | apps/workers/workers/inference/tagging.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/workers/workers/inference/summarize.ts b/apps/workers/workers/inference/summarize.ts index 0fa24869..23636961 100644 --- a/apps/workers/workers/inference/summarize.ts +++ b/apps/workers/workers/inference/summarize.ts @@ -105,7 +105,7 @@ URL: ${link.url ?? ""} }, }); - const summaryPrompt = buildSummaryPrompt( + const summaryPrompt = await buildSummaryPrompt( serverConfig.inference.inferredTagLang, prompts.map((p) => p.text), textToSummarize, diff --git a/apps/workers/workers/inference/tagging.ts b/apps/workers/workers/inference/tagging.ts index 50a03b00..5a79fd22 100644 --- a/apps/workers/workers/inference/tagging.ts +++ b/apps/workers/workers/inference/tagging.ts @@ -94,7 +94,7 @@ async function buildPrompt( ); return null; } - return buildTextPrompt( + return await buildTextPrompt( serverConfig.inference.inferredTagLang, prompts, `URL: ${bookmark.link.url} @@ -106,7 +106,7 @@ Content: ${content ?? ""}`, } if (bookmark.text) { - return buildTextPrompt( + return await buildTextPrompt( serverConfig.inference.inferredTagLang, prompts, bookmark.text.text ?? "", @@ -215,7 +215,7 @@ async function inferTagsFromPDF( inferenceClient: InferenceClient, abortSignal: AbortSignal, ) { - const prompt = buildTextPrompt( + const prompt = await buildTextPrompt( serverConfig.inference.inferredTagLang, await fetchCustomPrompts(bookmark.userId, "text"), `Content: ${bookmark.asset.content}`, |
