feat: gpt-4-gizmo-g-* model is supported

This commit is contained in:
RockYang
2024-01-15 15:03:05 +08:00
parent 059f57db2d
commit 9f57fb1421
14 changed files with 86 additions and 31 deletions

View File

@@ -93,7 +93,7 @@ const afterRead = (file) => {
formData.append('file', result, result.name);
// 执行上传操作
httpPost('/api/upload', formData).then((res) => {
user.value.avatar = res.data
user.value.avatar = res.data.url
ElMessage.success({message: "上传成功", duration: 500})
}).catch((e) => {
ElMessage.error('图片上传失败:' + e.message)