mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 01:55:58 +08:00
支持 gpt-4o 生图功能
This commit is contained in:
@@ -233,6 +233,8 @@ const isExternalImg = (link, files) => {
|
||||
border 1px solid #e3e3e3
|
||||
border-radius 10px
|
||||
margin-bottom 10px
|
||||
max-width 150px
|
||||
max-height 150px
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,6 +368,8 @@ const isExternalImg = (link, files) => {
|
||||
border 1px solid #e3e3e3
|
||||
border-radius 10px
|
||||
margin-bottom 10px
|
||||
max-width 150px
|
||||
max-height 150px
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -751,12 +751,13 @@ const sendMessage = function () {
|
||||
}
|
||||
// 如果携带了文件,则串上文件地址
|
||||
let content = prompt.value;
|
||||
if (files.value.length === 1) {
|
||||
if (files.value.length > 0) {
|
||||
content += files.value.map((file) => file.url).join(" ");
|
||||
} else if (files.value.length > 1) {
|
||||
showMessageError("当前只支持上传一个文件!");
|
||||
return false;
|
||||
}
|
||||
// else if (files.value.length > 1) {
|
||||
// showMessageError("当前只支持上传一个文件!");
|
||||
// return false;
|
||||
// }
|
||||
// 追加消息
|
||||
chatData.value.push({
|
||||
type: "prompt",
|
||||
|
||||
Reference in New Issue
Block a user