1. 支持自定义MJ API,接口格式必须满足 Midjourney-proxy-plus 接口,https://apiai.apifox.cn/folder-31977042 2. 支持自定义生图包。生图包的格式必须满足 Midjourney-proxy-plus 接口,https://apiai.apifox.cn/folder-31977042 3. 修改软件机器码生成方式 4. 新增推理模式(聚合推文,配合人物提取可以做到人物统一) 5. 修改软件内置人物提取提示词
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
import { resolve } from 'path'
|
|
import { defineConfig, externalizeDepsPlugin, bytecodePlugin } from 'electron-vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin(), bytecodePlugin(), tsconfigPaths()]
|
|
},
|
|
discord: {
|
|
plugins: [externalizeDepsPlugin(), bytecodePlugin(), tsconfigPaths()]
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin(), bytecodePlugin(), tsconfigPaths()]
|
|
},
|
|
renderer: {
|
|
resolve: {
|
|
alias: {
|
|
'@renderer': resolve('src/renderer/src'),
|
|
'@': resolve('src/')
|
|
}
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
AutoImport({
|
|
imports: [
|
|
'vue',
|
|
{
|
|
'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar']
|
|
}
|
|
]
|
|
}),
|
|
Components({
|
|
resolvers: [NaiveUiResolver()],
|
|
// 不自动导入自己添加的组件
|
|
dirs: [] // 清空自动导入的目录,所有的自动导入都通过 resolvers 进行
|
|
})
|
|
]
|
|
}
|
|
})
|