upgraded modules

This commit is contained in:
Saifeddine ALOUI 2025-03-08 00:32:16 +01:00
parent 4e9a06cc85
commit 3e53eb6964
3 changed files with 14 additions and 9 deletions

View File

@ -195,10 +195,7 @@ class LollmsContextDetails:
full_context+=custom_entries
# Build the final prompt
if self.model is None:
prompt = template.separator_template.join(full_context)
else:
prompt = template.separator_template.join(full_context)
prompt = template.separator_template.join(full_context)
# Debugging information
if self.debug and self.model:

View File

@ -219,7 +219,7 @@ async def toggle_function_call(request: Request):
async def get_function_call_settings(request: Request):
data = await request.json()
client = check_access(lollmsElfServer,data["client_id"])
fn_dir = data.get("dir")
fn_dir = data.get("category")
function_name = data.get("name")
# Add new entry
@ -251,7 +251,7 @@ async def set_function_call_settings(request: Request):
try:
print("- Setting function call settings")
fn_dir = data.get("dir")
fn_dir = data.get("category")
function_name = data.get("name")
# Add new entry

View File

@ -37,11 +37,19 @@ class LollmsLumaLabs(LollmsTTV):
"api_key": "", # use avx2
})
)
super().__init__("lumalabs", app, service_config, output_folder, api_key)
self.client = LumaAI(auth_token=api_key)
super().__init__("lumalabs", app, service_config, output_folder)
try:
self.client = LumaAI(auth_token=self.service_config.api_key)
except:
ASCIIColors.error("Couldn't create a client")
self.client = None
def settings_updated(self):
self.client = LumaAI(auth_token=self.service_config.api_key)
try:
self.client = LumaAI(auth_token=self.service_config.api_key)
except:
ASCIIColors.error("Couldn't create a client")
self.client = None
def generate_video(