From 8e6bc5eb48b850f14f6ac596b974747a0b58a8f0 Mon Sep 17 00:00:00 2001 From: Bentlybro Date: Thu, 12 Feb 2026 09:07:24 +0000 Subject: [PATCH] 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. --- .../backend/backend/api/features/admin/llm_routes.py | 4 ++-- autogpt_platform/backend/backend/blocks/llm.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/admin/llm_routes.py b/autogpt_platform/backend/backend/api/features/admin/llm_routes.py index 73f0d7a0a3..dd87547cee 100644 --- a/autogpt_platform/backend/backend/api/features/admin/llm_routes.py +++ b/autogpt_platform/backend/backend/api/features/admin/llm_routes.py @@ -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( diff --git a/autogpt_platform/backend/backend/blocks/llm.py b/autogpt_platform/backend/backend/blocks/llm.py index 71e21ddfea..7cc03e5bf9 100644 --- a/autogpt_platform/backend/backend/blocks/llm.py +++ b/autogpt_platform/backend/backend/blocks/llm.py @@ -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(