Update lollms_tti.py

This commit is contained in:
Saifeddine ALOUI 2025-03-06 16:40:11 +01:00 committed by GitHub
parent 241e7e84e5
commit 158862458c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,9 +147,9 @@ async def set_active_ttv_settings(request: Request):
"""
try:
print("- Setting ttv settings")
print("- Setting tti settings")
if lollmsElfServer.ttv is not None:
if lollmsElfServer.tti is not None:
if hasattr(lollmsElfServer.tti,"service_config"):
lollmsElfServer.tti.service_config.update_template(settings)
lollmsElfServer.tti.service_config.config.save_config()
@ -162,4 +162,4 @@ async def set_active_ttv_settings(request: Request):
except Exception as ex:
trace_exception(ex)
lollmsElfServer.error(ex)
return {"status":False,"error":str(ex)}
return {"status":False,"error":str(ex)}