ChatGPT-Next-Web/app/icons
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
..
llm-icons Fix: Set consistent fill color for OpenAI/MoonShot/Grok SVG to prevent color inversion in dark mode 2025-02-07 11:13:22 +08:00
add.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
arrow.svg add fanyi add top tip 2024-09-19 16:58:51 +08:00
auto.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
black-bot.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
bot.png chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
bot.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
bottom.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
brain.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
break.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
cancel.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
chat-settings.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
chat.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
chatgpt.png chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
chatgpt.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
clear.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
close.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
cloud-fail.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
cloud-success.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
config.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
confirm.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
connection.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
copy.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
dark.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
delete.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
discovery.svg feat: discovery icon 2024-07-24 20:41:41 +08:00
down.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
download.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
drag.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
edit.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
export.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
eye-off.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
eye.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
fire.svg chore: add setting 2024-09-19 12:38:46 +08:00
github.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
hd.svg dall-e-3 adds 'quality' and 'style' options 2024-08-10 11:09:07 +08:00
headphone.svg feat: realtime chat ui 2024-11-06 21:14:45 +08:00
history.svg fix: sd mobile 2024-07-23 20:24:56 +08:00
image.svg Add vision support (#4076) 2024-02-20 18:04:32 +08:00
left.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
light.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
lightning.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
loading.svg Add vision support (#4076) 2024-02-20 18:04:32 +08:00
logo.svg add top tip 2024-09-19 18:21:26 +08:00
mask.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
max.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
mcp.svg feat: MCP market 2025-01-09 19:51:01 +08:00
menu.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
min.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
palette.svg dall-e-3 adds 'quality' and 'style' options 2024-08-10 11:09:07 +08:00
paste-question.svg feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
paste-response.svg feat: Add paste question/response feature 2025-06-19 03:04:20 +00:00
pause.svg feat: support stop/start MCP servers 2025-01-16 08:52:54 +08:00
pin.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
play.svg feat: support stop/start MCP servers 2025-01-16 08:52:54 +08:00
plugin.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
power.svg wip 2024-11-06 22:07:33 +08:00
prompt.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
reload.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
rename.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
return.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
robot.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
sd.svg refator: sd 2024-07-23 00:51:58 +08:00
send-white.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
settings.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
share.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
shortcutkey.svg chore: 更换icon 2024-09-10 14:30:51 +08:00
size.svg add dalle3 model 2024-08-02 18:03:19 +08:00
speak-stop.svg feat: add tts stt 2024-08-27 16:21:02 +08:00
speak.svg feat: add tts stt 2024-08-27 16:21:02 +08:00
three-dots.svg chore: optimize images (#1) 2023-05-23 13:57:26 +08:00
tool.svg chore: update icon 2025-01-15 17:31:18 +08:00
upload.svg [ImgBot] Optimize images (#3941) 2024-01-29 14:10:07 +08:00
voice-off.svg feat: realtime chat ui 2024-11-06 21:14:45 +08:00
voice-white.svg feat: add voice action 2024-08-27 19:50:16 +08:00
voice.svg feat: realtime chat ui 2024-11-06 21:14:45 +08:00
zoom.svg 优化搜索算法,更新图标 2024-08-15 12:38:20 +08:00