fix: add content_extractor to smart-create endpoint
Build and Push / build (release) Successful in 30s

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 <noreply@anthropic.com>
This commit is contained in:
2025-12-16 09:31:23 +01:00
co-authored by Claude Opus 4.5
parent f095de1162
commit 376284f90e
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -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/), 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). 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 ## [1.3.0] - 2025-12-15
### Changed ### Changed
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "library-desk" 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" description = "Coordination service for The Library system - HybridRAG queries, document ingestion, entity extraction, and knowledge consolidation"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
+3 -1
View File
@@ -24,7 +24,7 @@ from src.clients.neo4j_client import Neo4jClient
from src.clients.qdrant_client import QdrantClientWrapper from src.clients.qdrant_client import QdrantClientWrapper
from src.clients.ollama_client import OllamaClient from src.clients.ollama_client import OllamaClient
from src.core.dependencies import ( 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 verify_api_key, get_settings, get_hybrid_rag_service, get_ingestion_service
) )
from src.core.multi_tenancy import DEFAULT_USER from src.core.multi_tenancy import DEFAULT_USER
@@ -180,6 +180,7 @@ async def smart_create_page(
qdrant_client: QdrantDep, qdrant_client: QdrantDep,
ollama_client: OllamaDep, ollama_client: OllamaDep,
searxng_client: SearXNGDep, searxng_client: SearXNGDep,
content_extractor: ContentExtractorDep,
settings: Settings = Depends(get_settings), settings: Settings = Depends(get_settings),
api_key: str = Depends(verify_api_key) api_key: str = Depends(verify_api_key)
): ):
@@ -225,6 +226,7 @@ async def smart_create_page(
graph_service=graph_service, graph_service=graph_service,
searxng_client=searxng_client, searxng_client=searxng_client,
ollama_client=ollama_client, ollama_client=ollama_client,
content_extractor=content_extractor,
settings=settings settings=settings
) )
wiki_page_writer = WikiPageWriter(ollama_client=ollama_client) wiki_page_writer = WikiPageWriter(ollama_client=ollama_client)