From 376284f90ec5abbcaddf52b6b54e20f700500bab Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Tue, 16 Dec 2025 09:31:23 +0100 Subject: [PATCH] fix: add content_extractor to smart-create endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The POST /wiki/pages/smart-create endpoint was failing with 500 Internal Server Error because HybridRAGService.__init__() was missing the required content_extractor parameter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- src/routers/wiki.py | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca5d87c..8c4498c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to Library Desk will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.1] - 2025-12-16 + +### Fixed + +- Smart create endpoint missing `content_extractor` dependency causing 500 errors on `POST /wiki/pages/smart-create` + ## [1.3.0] - 2025-12-15 ### Changed diff --git a/pyproject.toml b/pyproject.toml index 5e88845..6209483 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "library-desk" -version = "1.3.0" +version = "1.3.1" description = "Coordination service for The Library system - HybridRAG queries, document ingestion, entity extraction, and knowledge consolidation" readme = "README.md" requires-python = ">=3.12" diff --git a/src/routers/wiki.py b/src/routers/wiki.py index b225c67..ab0c255 100644 --- a/src/routers/wiki.py +++ b/src/routers/wiki.py @@ -24,7 +24,7 @@ from src.clients.neo4j_client import Neo4jClient from src.clients.qdrant_client import QdrantClientWrapper from src.clients.ollama_client import OllamaClient from src.core.dependencies import ( - WikiJSDep, Neo4jDep, QdrantDep, OllamaDep, SearXNGDep, + WikiJSDep, Neo4jDep, QdrantDep, OllamaDep, SearXNGDep, ContentExtractorDep, verify_api_key, get_settings, get_hybrid_rag_service, get_ingestion_service ) from src.core.multi_tenancy import DEFAULT_USER @@ -180,6 +180,7 @@ async def smart_create_page( qdrant_client: QdrantDep, ollama_client: OllamaDep, searxng_client: SearXNGDep, + content_extractor: ContentExtractorDep, settings: Settings = Depends(get_settings), api_key: str = Depends(verify_api_key) ): @@ -225,6 +226,7 @@ async def smart_create_page( graph_service=graph_service, searxng_client=searxng_client, ollama_client=ollama_client, + content_extractor=content_extractor, settings=settings ) wiki_page_writer = WikiPageWriter(ollama_client=ollama_client)