Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9cad4d60
authored
May 27, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】AI Image 增加获取 image list 接口
parent
d9ebb61d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
src/api/ai/image/index.ts
+3
-13
No files found.
src/api/ai/image/index.ts
View file @
9cad4d60
...
...
@@ -29,20 +29,9 @@ export interface ImageDallReqVO {
// AI API 密钥 API
export
const
ImageApi
=
{
// 获取 image 列表
getImageList
:
async
(
params
:
ImagePageReqVO
)
=>
{
return
[
{
id
:
1
,
prompt
:
'童话里的小屋是什么样子?'
,
status
:
'todo'
,
errorMessage
:
'error 未登录'
,
type
:
'qinxi'
,
taskId
:
111
,
imageUrl
:
'https://img.bigpt8.com/uploads/thumbnail/20240509/b7802797e5f709f35a451a1591d4d495.png'
,
platform
:
'dr'
,
model
:
'dr'
}
]
as
ImageDetailVO
[]
return
await
request
.
get
({
url
:
`/ai/image/list`
,
params
})
},
// 获取 image 详细信息
getImageDetail
:
async
(
id
:
number
)
=>
{
...
...
@@ -59,6 +48,7 @@ export const ImageApi = {
model
:
'dr'
}
as
ImageDetailVO
},
// dall2、dall3 调用
dall
:
async
(
data
:
ImageDallReqVO
)
=>
{
return
await
request
.
post
({
url
:
`/ai/image/dall`
,
data
})
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment