Update route examples and compress_context call

Update doc examples in admin/llm_routes.py to use the new /api/llm/admin/... path. Change compress_context invocation in blocks/llm.py to pass client=None (truncation-only, no LLM summarization) instead of using the lossy_ok parameter.
This commit is contained in:
Bentlybro
2026-02-12 09:07:24 +00:00
parent 8b2b0c853a
commit 8e6bc5eb48
2 changed files with 3 additions and 3 deletions

View File

@@ -256,8 +256,8 @@ async def delete_llm_model(
3. Deletes the model record
4. Refreshes all caches and notifies executors
Example: DELETE /admin/llm/models/{id}?replacement_model_slug=gpt-4o
Example (no usage): DELETE /admin/llm/models/{id}
Example: DELETE /api/llm/admin/models/{id}?replacement_model_slug=gpt-4o
Example (no usage): DELETE /api/llm/admin/models/{id}
"""
try:
result = await llm_db.delete_model(

View File

@@ -457,7 +457,7 @@ async def llm_call(
result = await compress_context(
messages=prompt,
target_tokens=context_window // 2,
lossy_ok=True,
client=None, # Truncation-only, no LLM summarization
)
if result.error:
logger.warning(