From df65ea0a62d2542d7d17c06e90627e9348895361 Mon Sep 17 00:00:00 2001 From: Soumyadas15 Date: Fri, 6 Jun 2025 21:05:06 +0530 Subject: [PATCH 1/2] fix(ui): display attachments in ask tool --- frontend/src/components/thread/content/ThreadContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/thread/content/ThreadContent.tsx b/frontend/src/components/thread/content/ThreadContent.tsx index e41e5ea4..0bca2a65 100644 --- a/frontend/src/components/thread/content/ThreadContent.tsx +++ b/frontend/src/components/thread/content/ThreadContent.tsx @@ -243,7 +243,7 @@ export function renderMarkdownContent( {paramDisplay && {paramDisplay}} - ); + ); } lastIndex = xmlRegex.lastIndex; } From c00497865f4b725795e132e6c4102ca5df5ea522 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Fri, 6 Jun 2025 18:48:55 +0000 Subject: [PATCH 2/2] fix(thread_manager): adjust max_tokens calculation for deepseek model --- backend/agentpress/thread_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/agentpress/thread_manager.py b/backend/agentpress/thread_manager.py index 644a90d5..f9f19700 100644 --- a/backend/agentpress/thread_manager.py +++ b/backend/agentpress/thread_manager.py @@ -178,7 +178,7 @@ class ThreadManager: elif 'gemini' in llm_model.lower(): max_tokens = 1000 * 1000 - 300000 elif 'deepseek' in llm_model.lower(): - max_tokens = 163 * 1000 - 32000 + max_tokens = 128 * 1000 - 28000 else: max_tokens = 41 * 1000 - 10000