支持 gpt-4o 生图功能

This commit is contained in:
RockYang
2025-03-29 13:38:00 +08:00
parent cd31333d0c
commit 2a71d5d557
3 changed files with 10 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
- 功能优化:开启图形验证码功能的时候现检查是否配置了 API 服务,防止开启之后没法登录的 Bug。
- 功能优化:支持原生的 DeepSeek 推理模型 API聊天 API KEY 支持设置完整的 API 路径,比如 https://api.geekai.pro/v1/chat/completions
- 功能优化:支持 GPT-4o 图片编辑功能。
- 功能新增对话页面支持AI输出语音播报TTS
- 功能新增:支持 Goole 账号登录。

View File

@@ -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
}
}

View File

@@ -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",