ChatGPT-Next-Web/app
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
..
api Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web 2025-02-17 00:56:31 +00:00
client 3.7 sonnet fix emoji 2025-02-26 19:53:06 -05:00
components feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
config New provider SiliconFlow and Its Latest DeekSeek Models 2025-02-04 16:59:26 +08:00
icons feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
lib merge code and get analyser data 2024-11-08 13:21:40 +08:00
locales danish rewording / improved button label 2025-02-15 13:08:58 +01:00
masks 面具“以文搜图”改成“AI文生图”,微调提示让图片生成更稳定无水印 2024-12-13 22:29:14 +08:00
mcp fix: missing files required for building 2025-01-22 21:28:29 +08:00
store feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
styles fix: 修复多余的查看全部 2024-08-21 10:28:34 +08:00
utils support deepseek-r1@OpenAI's reasoning_content, parse <think></think> from stream 2025-02-11 18:57:16 +08:00
command.ts add fork 2024-09-14 14:19:11 +08:00
constant.ts Update constant.ts 2025-04-13 22:13:52 -04:00
global.d.ts client app tauri updater #2966 2024-10-11 11:29:22 +08:00
layout.tsx feat: add ENABLE_MCP env var to toggle MCP feature globally and in Docker 2025-01-18 21:19:01 +08:00
page.tsx feat: add ENABLE_MCP env var to toggle MCP feature globally and in Docker 2025-01-18 21:19:01 +08:00
polyfill.ts fix: #397 #373 Array.prototype.at polyfill errors 2023-04-03 13:29:37 +08:00
typing.ts feature: support glm Cogview 2024-12-28 20:23:44 +08:00
utils.ts fix bug (trim eats space or \n mistakenly), optimize timeout by model 2025-02-12 17:49:54 +08:00