支持在会话输入框直接进行文件/图片的拖拽和粘贴

This commit is contained in:
xintaofei
2026-03-08 10:54:06 +08:00
parent 68e2c7f989
commit 7a4cbcb73e
24 changed files with 1335 additions and 78 deletions

View File

@@ -16,6 +16,12 @@ pub enum ContentBlock {
Text {
text: String,
},
Image {
data: String,
mime_type: String,
#[serde(skip_serializing_if = "Option::is_none")]
uri: Option<String>,
},
ToolUse {
tool_use_id: Option<String>,
tool_name: String,