mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-20 23:26:01 +08:00
支持 gpt-4o 生图功能
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- 功能优化:开启图形验证码功能的时候现检查是否配置了 API 服务,防止开启之后没法登录的 Bug。
|
- 功能优化:开启图形验证码功能的时候现检查是否配置了 API 服务,防止开启之后没法登录的 Bug。
|
||||||
- 功能优化:支持原生的 DeepSeek 推理模型 API,聊天 API KEY 支持设置完整的 API 路径,比如 https://api.geekai.pro/v1/chat/completions
|
- 功能优化:支持原生的 DeepSeek 推理模型 API,聊天 API KEY 支持设置完整的 API 路径,比如 https://api.geekai.pro/v1/chat/completions
|
||||||
|
- 功能优化:支持 GPT-4o 图片编辑功能。
|
||||||
- 功能新增:对话页面支持AI输出语音播报(TTS)。
|
- 功能新增:对话页面支持AI输出语音播报(TTS)。
|
||||||
- 功能新增:支持 Goole 账号登录。
|
- 功能新增:支持 Goole 账号登录。
|
||||||
|
|
||||||
|
|||||||
@@ -233,6 +233,8 @@ const isExternalImg = (link, files) => {
|
|||||||
border 1px solid #e3e3e3
|
border 1px solid #e3e3e3
|
||||||
border-radius 10px
|
border-radius 10px
|
||||||
margin-bottom 10px
|
margin-bottom 10px
|
||||||
|
max-width 150px
|
||||||
|
max-height 150px
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -366,6 +368,8 @@ const isExternalImg = (link, files) => {
|
|||||||
border 1px solid #e3e3e3
|
border 1px solid #e3e3e3
|
||||||
border-radius 10px
|
border-radius 10px
|
||||||
margin-bottom 10px
|
margin-bottom 10px
|
||||||
|
max-width 150px
|
||||||
|
max-height 150px
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -751,12 +751,13 @@ const sendMessage = function () {
|
|||||||
}
|
}
|
||||||
// 如果携带了文件,则串上文件地址
|
// 如果携带了文件,则串上文件地址
|
||||||
let content = prompt.value;
|
let content = prompt.value;
|
||||||
if (files.value.length === 1) {
|
if (files.value.length > 0) {
|
||||||
content += files.value.map((file) => file.url).join(" ");
|
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({
|
chatData.value.push({
|
||||||
type: "prompt",
|
type: "prompt",
|
||||||
|
|||||||
Reference in New Issue
Block a user