diff --git a/apps/api/src/lib/LLM-extraction/models.ts b/apps/api/src/lib/LLM-extraction/models.ts index 177fe64..df1b6d1 100644 --- a/apps/api/src/lib/LLM-extraction/models.ts +++ b/apps/api/src/lib/LLM-extraction/models.ts @@ -29,7 +29,7 @@ function prepareOpenAIDoc( throw new Error("Markdown content is missing in the document."); } - return [{ type: 'text', text: document.html}] + return [{ type: 'text', text: document.markdown}] } export async function generateOpenAICompletions({