mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-05-11 04:04:29 +08:00
param builder component is ready
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
// * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
import { checkSession } from '@/store/cache'
|
||||
import { JimengParams } from '@/store/data'
|
||||
import { useSharedStore } from '@/store/sharedata'
|
||||
import { showMessageError, showMessageOK } from '@/utils/dialog'
|
||||
import { httpDownload, httpGet, httpPost } from '@/utils/http'
|
||||
@@ -44,224 +45,7 @@ export const useJimengStore = defineStore('jimeng', () => {
|
||||
// 登录弹窗
|
||||
const shareStore = useSharedStore()
|
||||
|
||||
const paramsMap = {
|
||||
image: [
|
||||
{
|
||||
name: '图片 2.1',
|
||||
version: '2.1',
|
||||
label: '平面绘感强,可生成文字海报',
|
||||
key: 'jimeng_high_aes_general_v21_L',
|
||||
params: [
|
||||
{
|
||||
name: 'prompt',
|
||||
label: '提示词',
|
||||
type: 'text',
|
||||
required: true,
|
||||
placeholder: '请输入提示词',
|
||||
info: '用于生成图像的提示词 ,中英文均可输入',
|
||||
},
|
||||
{
|
||||
name: 'size',
|
||||
type: 'select',
|
||||
required: true,
|
||||
placeholder: '请选择尺寸',
|
||||
label: '图片尺寸',
|
||||
options: [
|
||||
{
|
||||
label: '21:9 (1195x512)',
|
||||
value: '1195x512',
|
||||
},
|
||||
{
|
||||
label: '16:9 (1024x576)',
|
||||
value: '1024x576',
|
||||
},
|
||||
{
|
||||
label: '3:2 (1024x682)',
|
||||
value: '1024x682',
|
||||
},
|
||||
{
|
||||
label: '4:3 (1024x768)',
|
||||
value: '1024x768',
|
||||
},
|
||||
{
|
||||
label: '1:1 (1024x1024)',
|
||||
value: '1024x1024',
|
||||
},
|
||||
{
|
||||
label: '3:4 (768x1024)',
|
||||
value: '768x1024',
|
||||
},
|
||||
{
|
||||
label: '2:3 (682x1024)',
|
||||
value: '682x1024',
|
||||
},
|
||||
{
|
||||
label: '9:16 (576x1024)',
|
||||
value: '576x1024',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'use_pre_llm',
|
||||
type: 'boolean',
|
||||
required: true,
|
||||
label: '开启文本扩写',
|
||||
info: '开启后,系统会自动扩写提示词,提高生成质量',
|
||||
value: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: '图片 3.0 文生图',
|
||||
version: '3.0',
|
||||
label: '影视质感,文字更准,直出2k高清图',
|
||||
key: 'jimeng_t2i_v30',
|
||||
params: [
|
||||
{
|
||||
name: 'prompt',
|
||||
label: '提示词',
|
||||
type: 'text',
|
||||
required: true,
|
||||
placeholder: '请输入提示词',
|
||||
info: '用于生成图像的提示词 ,中英文均可输入',
|
||||
},
|
||||
{
|
||||
name: 'size',
|
||||
type: 'select',
|
||||
required: true,
|
||||
placeholder: '请选择尺寸',
|
||||
label: '图片尺寸',
|
||||
|
||||
options: [
|
||||
{
|
||||
label: '1:1 (1328x1328)',
|
||||
value: '1328x1328',
|
||||
},
|
||||
{
|
||||
label: '4:3 (1472x1104)',
|
||||
value: '1472x1104',
|
||||
},
|
||||
{
|
||||
label: '3:2 (1584x1056)',
|
||||
value: '1584x1056',
|
||||
},
|
||||
{
|
||||
label: '16:9 (1664x936)',
|
||||
value: '1664x936',
|
||||
},
|
||||
{
|
||||
label: '21:9 (2016x864)',
|
||||
value: '2016x864',
|
||||
},
|
||||
{
|
||||
label: '1:1 高清2K (2048x2048)',
|
||||
value: '2048x2048',
|
||||
},
|
||||
{
|
||||
label: '4:3 高清2K (2304x1728)',
|
||||
value: '2304x1728',
|
||||
},
|
||||
{
|
||||
label: '3:2 高清2K (2496x1664)',
|
||||
value: '2496x1664',
|
||||
},
|
||||
{
|
||||
label: '16:9 高清2K (2560x1440)',
|
||||
value: '2560x1440',
|
||||
},
|
||||
{
|
||||
label: '21:9 高清2K (3024x1296)',
|
||||
value: '3024x1296',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'use_pre_llm',
|
||||
type: 'boolean',
|
||||
required: true,
|
||||
label: '开启文本扩写',
|
||||
info: '开启后,系统会自动扩写提示词,提高生成质量',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: '图片 3.1',
|
||||
version: '3.1',
|
||||
label: '文生图3.0',
|
||||
key: 'jimeng_t2i_v31',
|
||||
params: [
|
||||
{
|
||||
name: 'prompt',
|
||||
label: '提示词',
|
||||
type: 'text',
|
||||
required: true,
|
||||
placeholder: '请输入提示词',
|
||||
info: '用于生成图像的提示词 ,中英文均可输入',
|
||||
},
|
||||
{
|
||||
name: 'size',
|
||||
type: 'select',
|
||||
required: true,
|
||||
placeholder: '请选择尺寸',
|
||||
label: '图片尺寸',
|
||||
|
||||
options: [
|
||||
{
|
||||
label: '1:1 (1328x1328)',
|
||||
value: '1328x1328',
|
||||
},
|
||||
{
|
||||
label: '4:3 (1472x1104)',
|
||||
value: '1472x1104',
|
||||
},
|
||||
{
|
||||
label: '3:2 (1584x1056)',
|
||||
value: '1584x1056',
|
||||
},
|
||||
{
|
||||
label: '16:9 (1664x936)',
|
||||
value: '1664x936',
|
||||
},
|
||||
{
|
||||
label: '21:9 (2016x864)',
|
||||
value: '2016x864',
|
||||
},
|
||||
{
|
||||
label: '1:1 高清2K (2048x2048)',
|
||||
value: '2048x2048',
|
||||
},
|
||||
{
|
||||
label: '4:3 高清2K (2304x1728)',
|
||||
value: '2304x1728',
|
||||
},
|
||||
{
|
||||
label: '3:2 高清2K (2496x1664)',
|
||||
value: '2496x1664',
|
||||
},
|
||||
{
|
||||
label: '16:9 高清2K (2560x1440)',
|
||||
value: '2560x1440',
|
||||
},
|
||||
{
|
||||
label: '21:9 高清2K (3024x1296)',
|
||||
value: '3024x1296',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'use_pre_llm',
|
||||
type: 'boolean',
|
||||
required: true,
|
||||
label: '开启文本扩写',
|
||||
info: '开启后,系统会自动扩写提示词,提高生成质量',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
video: [],
|
||||
virtualHuman: [],
|
||||
actionTransfer: [],
|
||||
}
|
||||
const paramsMap = JimengParams
|
||||
|
||||
// 功能分类配置
|
||||
const categories = [
|
||||
|
||||
Reference in New Issue
Block a user