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(