ChatGPT-Next-Web/app/components
google-labs-jules[bot] 57fab4de93 feat: Add paste question/response feature
This commit introduces a feature that allows you to paste questions and responses directly into the chat application.

Key changes:
- Added new icons for pasting questions and responses.
- Modified `app/components/chat.tsx`:
    - Imported new icons.
    - Added `ChatAction` buttons for paste actions.
    - Implemented `handlePasteQuestion` and `handlePasteResponse` to take content from the main input area.
    - Your pasted messages are marked with `isPasted: true`.
    - Edit button visibility is maintained for all messages, including pasted ones.
- Modified `app/store/chat.ts`:
    - Added `isPasted` field to the `ChatMessage` interface.
    - Ensured `onUserInput` does not make API calls for pasted messages.
    - Verified that `summarizeSession` (for auto title generation) correctly includes pasted content.

The feature allows you to input content into the main text area and then click one of the new paste buttons. This will add the content to the chat as either a user question or an assistant response, styled like other messages but without sending an API request.

Note: I was unable to perform manual UI testing of the latest input method (using the main input area) due to environment limitations. However, I previously confirmed that the core paste functionality (using a prompt) was successfully tested.
2025-06-19 03:04:20 +00:00
..
realtime-chat chore: comment context history 2024-11-09 16:22:01 +08:00
sd style: improve classname by clsx 2024-11-06 16:58:26 +08:00
voice-print feat: voice print 2024-11-08 22:39:17 +08:00
artifacts.module.scss fix: iframe bg 2024-07-26 17:06:10 +08:00
artifacts.tsx chore: remove unused imports 2024-09-15 20:17:02 +08:00
auth.module.scss fex media 2024-09-23 15:12:45 +08:00
auth.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
button.module.scss fix style slect button 2024-09-24 22:25:36 +08:00
button.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
chat-list.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
chat.module.scss feat: realtime chat ui 2024-11-06 21:14:45 +08:00
chat.tsx feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
emoji.tsx fix model icon on siliconflow 2025-02-09 18:49:26 +08:00
error.tsx fix: safaLocalStorage 2024-09-08 13:23:40 +08:00
exporter.module.scss Revert "feat: improve components structure" 2024-07-22 22:18:51 +08:00
exporter.tsx fix avatar for export message preview and saved image 2025-02-09 16:52:46 +08:00
home.module.scss fix: sidebar style 2024-10-12 14:54:22 +08:00
home.tsx feat: add ENABLE_MCP env var to toggle MCP feature globally and in Docker 2025-01-18 21:19:01 +08:00
input-range.module.scss Revert "feat: improve components structure" 2024-07-22 22:18:51 +08:00
input-range.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
markdown.tsx fix: 代码块嵌入小代码块时渲染错误 2024-11-15 11:56:26 +08:00
mask.module.scss Revert "feat: improve components structure" 2024-07-22 22:18:51 +08:00
mask.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
mcp-market.module.scss fix: prevent MCP operations from blocking chat interface 2025-01-19 01:02:01 +08:00
mcp-market.tsx fix: prevent MCP operations from blocking chat interface 2025-01-19 01:02:01 +08:00
message-selector.module.scss Revert "feat: improve components structure" 2024-07-22 22:18:51 +08:00
message-selector.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
model-config.module.scss fix 2024-09-25 14:41:41 +08:00
model-config.tsx Refactor: Replace all provider split occurrences with getModelProvider utility method 2024-11-05 13:52:54 +00:00
new-chat.module.scss Revert "feat: improve components structure" 2024-07-22 22:18:51 +08:00
new-chat.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
plugin.module.scss chore: css 2024-09-23 14:18:32 +08:00
plugin.tsx style: improve classname by clsx 2024-11-06 16:58:26 +08:00
search-chat.tsx wrap doSearch with useCallback 2024-08-20 09:45:34 +08:00
settings.module.scss fix style 2024-09-25 11:15:00 +08:00
settings.tsx New provider SiliconFlow and Its Latest DeekSeek Models 2025-02-04 16:59:26 +08:00
sidebar.tsx Merge branch 'main' into feat-mcp 2025-01-19 23:28:12 +08:00
tts-config.tsx fix: transcription headers 2024-08-28 13:13:41 +08:00
tts.module.scss feat: add tts stt 2024-08-27 16:21:02 +08:00
ui-lib.module.scss fix 2024-09-25 14:35:09 +08:00
ui-lib.tsx feat: add more llm icons 2025-02-05 12:34:00 +08:00