ChatGPT-Next-Web/app/store
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
..
access.ts New provider SiliconFlow and Its Latest DeekSeek Models 2025-02-04 16:59:26 +08:00
chat.ts feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
config.ts feature: support glm Cogview 2024-12-28 20:23:44 +08:00
index.ts stash code 2024-08-29 19:55:09 +08:00
mask.ts 支持前端使能/禁用代码折叠 2024-10-11 11:19:36 +00:00
plugin.ts update 2024-09-30 00:38:30 +08:00
prompt.ts Merge branch 'main' of https://github.com/ConnectAI-E/ChatGPT-Next-Web into feature/jest 2024-10-08 10:30:47 +08:00
sd.ts hotfix: ts check 2024-07-25 12:34:35 +08:00
sync.ts fix ts error 2024-09-30 01:30:20 +08:00
update.ts client app tauri updater #2966 2024-10-11 11:29:22 +08:00