[READ-ONLY] Mirror of https://github.com/just-cameron/letta-libre. A fork of libre chat for Letta.
0

Configure Feed

Select the types of activity you want to include in your feed.

✅ fix: Parse Letta response format correctly

Letta API response structure:
- messages[].message_type === 'assistant_message' (not role)
- messages[].content is direct string (not nested)

UI now displays Letta agent responses correctly!

Phase 4 COMPLETE: Full Letta integration working end-to-end
- Agent selection ✅
- Message interception ✅
- API calls ✅
- Response display ✅

Next: Add streaming support

🐾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

+2 -2
+2 -2
client/src/hooks/Letta/useLettaMessageHandler.ts
··· 80 80 logger.log('letta', 'Received Letta response:', response); 81 81 82 82 // Extract response text from Letta API response 83 - // Letta API returns: { messages: [...], usage: {...} } 83 + // Letta API returns: { messages: [{content: "...", message_type: "assistant_message"}], usage: {...} } 84 84 const responseMessages = response.messages || []; 85 85 const assistantResponses = responseMessages.filter( 86 - (msg: any) => msg.role === 'assistant', 86 + (msg: any) => msg.message_type === 'assistant_message', 87 87 ); 88 88 89 89 let responseText = '';