added dall-e

This commit is contained in:
Saifeddine ALOUI 2024-05-13 23:58:19 +02:00
parent 2edabe56b5
commit d93ffd7041
10 changed files with 242 additions and 194 deletions

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file =========================== # =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 95 version: 96
binding_name: null binding_name: null
model_name: null model_name: null
model_variant: null model_variant: null
@ -105,6 +105,11 @@ xtts_enable_text_splitting: true
enable_sd_service: false enable_sd_service: false
sd_base_url: http://localhost:7860 sd_base_url: http://localhost:7860
# Dall e service key
dall_e_key: ""
dall_e_generation_engine: "dall-e-3"
# Image generation service comfyui # Image generation service comfyui
enable_comfyui_service: false enable_comfyui_service: false
comfyui_base_url: http://127.0.0.1:8188/ comfyui_base_url: http://127.0.0.1:8188/

@ -1 +1 @@
Subproject commit 4155243cbcd8e7c0280dc9fddf0a6433e24ace39 Subproject commit c84eda3993bdd57b9b01a65caa289cb28afba916

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title> <title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-265392b1.js"></script> <script type="module" crossorigin src="/assets/index-135719ee.js"></script>
<link rel="stylesheet" href="/assets/index-31a33d12.css"> <link rel="stylesheet" href="/assets/index-ee73ff6c.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -101,6 +101,9 @@ export default {
let validLanguage; let validLanguage;
if (this.language === 'vue' || this.language === 'vue.js') { if (this.language === 'vue' || this.language === 'vue.js') {
validLanguage = 'javascript'; validLanguage = 'javascript';
} else
if (this.language === 'function') {
validLanguage = 'json';
} else { } else {
validLanguage = hljs.getLanguage(this.language) ? this.language : 'plaintext'; validLanguage = hljs.getLanguage(this.language) ? this.language : 'plaintext';
} }

View File

@ -1499,6 +1499,46 @@
</tr> </tr>
</table> </table>
</Card> </Card>
<Card title="Dall-E" :is_subcard="true" class="pb-2 m-2">
<table class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<tr>
<td style="min-width: 200px;">
<label for="dall_e_key" class="text-sm font-bold" style="margin-right: 1rem;">dall e key:</label>
</td>
<td>
<div class="flex flex-row">
<input
type="text"
id="dall_e_key"
required
v-model="configFile.dall_e_key"
@change="settingsChanged=true"
class="mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
</div>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="dall_e_generation_engine" class="text-sm font-bold" style="margin-right: 1rem;">dall e generation engine:</label>
</td>
<td>
<div class="flex flex-row">
<select v-model="configFile.dall_e_generation_engine" @change="settingsChanged=true">
<option>
dall-e-2
</option>
<option>
dall-e-3
</option>
</select>
</div>
</td>
</tr>
</table>
</Card>
<Card title="ComfyUI service" :is_subcard="true" class="pb-2 m-2"> <Card title="ComfyUI service" :is_subcard="true" class="pb-2 m-2">
<table class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"> <table class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<tr> <tr>
@ -3426,7 +3466,7 @@ export default {
}, },
reinstallAudioService(){ reinstallAudioService(){
axios.get('install_xtts') axios.post('install_xtts',{client_id:this.$store.state.client_id})
.then(response => { .then(response => {
}) })

@ -1 +1 @@
Subproject commit 6ce4d3a38295f0b3df14d62073807ac370129902 Subproject commit 9c47cf7ca7dd908747886685a38e7715177d4b5e

@ -1 +1 @@
Subproject commit 0d74ef621db4aa5b12df282361267b1bed672e8e Subproject commit 6adb176f463971674ee0dd8e9cade9e9a9c33ca1

@ -1 +1 @@
Subproject commit 9cab56f8c7f7e08480c9f036ca552d4844a538fb Subproject commit e44b4539a114e2aee0ac15edc46f0cafc95a178d