mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-24 06:46:40 +00:00
enhanced
This commit is contained in:
parent
d40cce3cbe
commit
89c2d84f6c
@ -1,5 +1,5 @@
|
||||
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
||||
version: 124
|
||||
version: 125
|
||||
binding_name: null
|
||||
model_name: null
|
||||
model_variant: null
|
||||
@ -188,6 +188,8 @@ dall_e_generation_engine: "dall-e-3"
|
||||
|
||||
# Midjourney service key
|
||||
midjourney_key: ""
|
||||
midjourney_timeout: 300
|
||||
midjourney_retries: 1
|
||||
|
||||
# Image generation service comfyui
|
||||
enable_comfyui_service: false
|
||||
|
@ -389,7 +389,7 @@ class LollmsApplication(LoLLMsCom):
|
||||
self.tti = LollmsDalle(self, self.config.dall_e_key)
|
||||
elif self.config.active_tti_service == "midjourney":
|
||||
from lollms.services.midjourney.lollms_midjourney import LollmsMidjourney
|
||||
self.tti = LollmsMidjourney(self, self.config.midjourney_key)
|
||||
self.tti = LollmsMidjourney(self, self.config.midjourney_key, self.config.midjourney_timeout, self.config.midjourney_retries)
|
||||
elif self.config.active_tti_service == "comfyui" and (self.tti is None or self.tti.name!="comfyui"):
|
||||
if self.comfyui:
|
||||
self.tti = self.comfyui
|
||||
@ -507,7 +507,7 @@ class LollmsApplication(LoLLMsCom):
|
||||
self.tti = LollmsDalle(self, self.config.dall_e_key)
|
||||
elif self.config.active_tti_service == "midjourney" and (self.tti is None or self.tti.name!="midjourney"):
|
||||
from lollms.services.midjourney.lollms_midjourney import LollmsMidjourney
|
||||
self.tti = LollmsMidjourney(self, self.config.midjourney_key)
|
||||
self.tti = LollmsMidjourney(self, self.config.midjourney_key, self.config.midjourney_timeout, self.config.midjourney_retries)
|
||||
elif self.config.active_tti_service == "comfyui" and (self.tti is None or self.tti.name!="comfyui"):
|
||||
if self.comfyui:
|
||||
self.tti = self.comfyui
|
||||
|
@ -1,5 +1,5 @@
|
||||
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
||||
version: 124
|
||||
version: 125
|
||||
binding_name: null
|
||||
model_name: null
|
||||
model_variant: null
|
||||
@ -188,6 +188,8 @@ dall_e_generation_engine: "dall-e-3"
|
||||
|
||||
# Midjourney service key
|
||||
midjourney_key: ""
|
||||
midjourney_timeout: 300
|
||||
midjourney_retries: 1
|
||||
|
||||
# Image generation service comfyui
|
||||
enable_comfyui_service: false
|
||||
|
@ -232,6 +232,7 @@ class LollmsMidjourney(LollmsTTI):
|
||||
except Exception as e:
|
||||
trace_exception(e)
|
||||
ASCIIColors.error(f"An error occurred: {e}")
|
||||
return "", {"prompt":positive_prompt, "negative_prompt":negative_prompt}
|
||||
|
||||
@staticmethod
|
||||
def get(app:LollmsApplication):
|
||||
|
Loading…
Reference in New Issue
Block a user