feat: refactor frontend and fix LLM extraction

- Fix critical await bug in extract-stream endpoint
- Add comprehensive logging to LLM and parser modules
- Implement fallback to standard completion for incompatible models
- Create enhanced v2.0 prompts with social media handling and few-shot examples
- Add LLM health check endpoint
- Decompose share page into 6 focused Svelte 5 snippets

Resolves LM Studio integration issues and improves code maintainability
This commit is contained in:
Giancarmine Salucci
2025-12-21 03:49:33 +01:00
parent 377bdbf6d7
commit da58263aba
9 changed files with 2104 additions and 56 deletions

View File

@@ -40,7 +40,7 @@ export const POST: RequestHandler = async ({ request }) => {
timestamp: new Date().toISOString()
});
const recipe = extractRecipe(extracted.bodyText);
const recipe = await extractRecipe(extracted.bodyText);
// Send final result
const completeEvent: ProgressEvent = {