From e0fbd2b0a0488569ac1d5e89a6363d11a00c2b25 Mon Sep 17 00:00:00 2001 From: ntohidi Date: Thu, 15 May 2025 10:45:23 +0200 Subject: [PATCH] fix(schema): update `f` parameter description to use lowercase enum values. REF: #1070 Revised the description for the `f` parameter in the `/mcp/md` tool schema to use lowercase enum values (`raw`, `fit`, `bm25`, `llm`) for consistency with the actual `enum` definition. This change prevents LLM-based clients (e.g., Gemini via LibreChat) from generating uppercase values like `"FIT"`, which caused 422 validation errors due to strict case-sensitive matching. --- deploy/docker/schemas.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy/docker/schemas.py b/deploy/docker/schemas.py index ea32b6c6..611e17e9 100644 --- a/deploy/docker/schemas.py +++ b/deploy/docker/schemas.py @@ -12,8 +12,7 @@ class CrawlRequest(BaseModel): class MarkdownRequest(BaseModel): """Request body for the /md endpoint.""" url: str = Field(..., description="Absolute http/https URL to fetch") - f: FilterType = Field(FilterType.FIT, - description="Content‑filter strategy: FIT, RAW, BM25, or LLM") + f: FilterType = Field(FilterType.FIT, description="Content‑filter strategy: fit, raw, bm25, or llm") q: Optional[str] = Field(None, description="Query string used by BM25/LLM filters") c: Optional[str] = Field("0", description="Cache‑bust / revision counter")