diff --git a/CHANGELOG.md b/CHANGELOG.md
index 766c900..e1ef55f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,10 @@ and this project adheres to
- 🐛(back) fix system prompt compatibility with self-hosted models #200
- ⚰️(back) remove dead code and unused files
+### Removed
+
+- 🔥(chat) remove thinking part from frontend #227
+
## [0.0.10] - 2025-12-15
### Added
diff --git a/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx b/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx
index 0efdbcb..a620c48 100644
--- a/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx
+++ b/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx
@@ -1,9 +1,4 @@
-import {
- Message,
- ReasoningUIPart,
- SourceUIPart,
- ToolInvocationUIPart,
-} from '@ai-sdk/ui-utils';
+import { Message, SourceUIPart, ToolInvocationUIPart } from '@ai-sdk/ui-utils';
import { Modal, ModalSize } from '@openfun/cunningham-react';
import 'katex/dist/katex.min.css'; // `rehype-katex` does not import the CSS for you
import { useRouter } from 'next/router';
@@ -816,30 +811,12 @@ export const Chat = ({
)}
{message.parts
- ?.filter(
- (part) =>
- part.type === 'reasoning' ||
- part.type === 'tool-invocation',
- )
+ ?.filter((part) => part.type === 'tool-invocation')
.map(
- (
- part: ReasoningUIPart | ToolInvocationUIPart,
- partIndex: number,
- ) =>
- part.type === 'reasoning' ? (
-
- {part.reasoning}
-
- ) : part.type === 'tool-invocation' &&
- isCurrentlyStreaming &&
- isLastAssistantMessageInConversation ? (
+ (part: ToolInvocationUIPart, partIndex: number) =>
+ part.type === 'tool-invocation' &&
+ isCurrentlyStreaming &&
+ isLastAssistantMessageInConversation ? (
{
const messageContent = page.getByTestId('assistant-message-content');
await expect(messageContent).toBeVisible();
- await expect(messageContent).not.toBeEmpty();
+ await expect(messageContent).not.toBeEmpty();
// Check history
const chatHistoryLink = page