[PR #4777] [CLOSED] feat: display LLM model name and timestamp on chat responses #4762

Closed
opened 2026-02-22 18:36:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4777
Author: @nathannewyen
Created: 12/13/2025
Status: Closed

Base: masterHead: feat/display-llm-name-timestamp


📝 Commits (1)

  • 6ad60e6 feat: display LLM model name and timestamp on chat responses

📊 Changes

5 files changed (+44 additions, -6 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/RenderMetrics/index.jsx (+35 -5)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx (+2 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx (+2 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx (+1 -0)
📝 server/utils/chats/stream.js (+4 -0)

📄 Description

Summary

  • Adds LLM model name display to chat message metrics
  • Adds timestamp display showing when each response was generated
  • Display format: gpt-4 · 1.234s (45.67 tok/s) · Dec 12, 3:45 PM

Changes

  • server/utils/chats/stream.js: Add model name to metrics object
  • frontend: Pass sentAt timestamp through component chain and update RenderMetrics to display model and timestamp

Screenshot

The metrics now show: {model} · {duration} ({tokens/s} tok/s) · {timestamp}

image

Test Plan

  • Frontend builds successfully
  • Backend starts without errors
  • Manually verify metrics display in chat UI

Fixes #4601


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4777 **Author:** [@nathannewyen](https://github.com/nathannewyen) **Created:** 12/13/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/display-llm-name-timestamp` --- ### 📝 Commits (1) - [`6ad60e6`](https://github.com/Mintplex-Labs/anything-llm/commit/6ad60e6f5d39beae9cc08d51777090be6eb7c87c) feat: display LLM model name and timestamp on chat responses ### 📊 Changes **5 files changed** (+44 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/RenderMetrics/index.jsx` (+35 -5) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx` (+2 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx` (+2 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx` (+1 -0) 📝 `server/utils/chats/stream.js` (+4 -0) </details> ### 📄 Description ## Summary - Adds LLM model name display to chat message metrics - Adds timestamp display showing when each response was generated - Display format: `gpt-4 · 1.234s (45.67 tok/s) · Dec 12, 3:45 PM` ## Changes - **server/utils/chats/stream.js**: Add model name to metrics object - **frontend**: Pass `sentAt` timestamp through component chain and update `RenderMetrics` to display model and timestamp ## Screenshot The metrics now show: `{model} · {duration} ({tokens/s} tok/s) · {timestamp}` <img width="1512" height="823" alt="image" src="https://github.com/user-attachments/assets/14fd7fbd-e00a-414a-ad10-f6d9d6270f36" /> ## Test Plan - [x] Frontend builds successfully - [x] Backend starts without errors - [ ] Manually verify metrics display in chat UI Fixes #4601 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:29 -05:00
yindo closed this issue 2026-02-22 18:36:29 -05:00
yindo changed title from [PR #4777] feat: display LLM model name and timestamp on chat responses to [PR #4777] [CLOSED] feat: display LLM model name and timestamp on chat responses 2026-06-05 15:20:15 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4762