diff --git a/lollms_core b/lollms_core index 593cb246..971b4e89 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 593cb246715c4f7c7db189530c3db527e015f705 +Subproject commit 971b4e89cd40fba2f6d1f46e2d4428ae193bb10b diff --git a/utilities/execution_engines/graphviz_execution_engine.py b/utilities/execution_engines/graphviz_execution_engine.py index cc966249..0c1b84b2 100644 --- a/utilities/execution_engines/graphviz_execution_engine.py +++ b/utilities/execution_engines/graphviz_execution_engine.py @@ -106,7 +106,7 @@ def execute_graphviz(code, client:Client, message_id, build_file=False): tmp_file = root_folder/f"ai_code_{message_id}.html" with open(tmp_file,"w",encoding="utf8") as f: f.write(build_graphviz_output(code)["output"]) - link = f"{host}:{lollmsElfServer.config.port}/{discussion_path_to_url(tmp_file)}" + link = f"{host}:{lollmsElfServer.config.port}{discussion_path_to_url(tmp_file)}" execution_time = time.time() - start_time output_json = {"output": f'Page built successfully
Press here to view the page', "execution_time": execution_time} return output_json diff --git a/utilities/execution_engines/html_execution_engine.py b/utilities/execution_engines/html_execution_engine.py index 8c09c13d..a351d7eb 100644 --- a/utilities/execution_engines/html_execution_engine.py +++ b/utilities/execution_engines/html_execution_engine.py @@ -56,7 +56,7 @@ def execute_html(code, client:Client, message_id, build_file=False): tmp_file = root_folder/f"ai_code_{message_id}.html" with open(tmp_file,"w",encoding="utf8") as f: f.write(code) - link = f"{host}:{lollmsElfServer.config.port}/{discussion_path_to_url(tmp_file)}" + link = f"{host}:{lollmsElfServer.config.port}{discussion_path_to_url(tmp_file)}" # Stop the timer. execution_time = time.time() - start_time output_json = {"output": f'Page built successfully
Press here to view the page', "execution_time": execution_time} diff --git a/utilities/execution_engines/javascript_execution_engine.py b/utilities/execution_engines/javascript_execution_engine.py index 5fa9994d..4370c7e9 100644 --- a/utilities/execution_engines/javascript_execution_engine.py +++ b/utilities/execution_engines/javascript_execution_engine.py @@ -75,7 +75,7 @@ def execute_javascript(code, client:Client, message_id, build_file=False): tmp_file = root_folder/f"ai_code_{message_id}.html" with open(tmp_file,"w",encoding="utf8") as f: f.write(build_javascript_output(code)["output"]) - link = f"{host}:{lollmsElfServer.config.port}/{discussion_path_to_url(tmp_file)}" + link = f"{host}:{lollmsElfServer.config.port}{discussion_path_to_url(tmp_file)}" execution_time = time.time() - start_time output_json = {"output": f'Page built successfully
Press here to view the page', "execution_time": execution_time} return output_json diff --git a/utilities/execution_engines/latex_execution_engine.py b/utilities/execution_engines/latex_execution_engine.py index 786f8434..4cb6f283 100644 --- a/utilities/execution_engines/latex_execution_engine.py +++ b/utilities/execution_engines/latex_execution_engine.py @@ -105,6 +105,6 @@ def execute_latex(code, client:Client, message_id): else: host = lollmsElfServer.config.host - url = f"{host}:{lollmsElfServer.config.port}/{discussion_path_to_url(pdf_file)}" + url = f"{host}:{lollmsElfServer.config.port}{discussion_path_to_url(pdf_file)}" output_json = {"output": f"Pdf file generated at: {pdf_file}\nClick here to show", "execution_time": execution_time} return output_json diff --git a/utilities/execution_engines/mermaid_execution_engine.py b/utilities/execution_engines/mermaid_execution_engine.py index 6f036099..0af43631 100644 --- a/utilities/execution_engines/mermaid_execution_engine.py +++ b/utilities/execution_engines/mermaid_execution_engine.py @@ -139,7 +139,7 @@ def execute_mermaid(code, client:Client, message_id, build_file=False): tmp_file = root_folder/f"ai_code_{message_id}.html" with open(tmp_file,"w",encoding="utf8") as f: f.write(build_mermaid_output(code)["output"]) - link = f"{host}:{lollmsElfServer.config.port}/{discussion_path_to_url(tmp_file)}" + link = f"{host}:{lollmsElfServer.config.port}{discussion_path_to_url(tmp_file)}" # Stop the timer. execution_time = time.time() - start_time output_json = {"output": f'Page built successfully
Press here to view the page', "execution_time": execution_time} diff --git a/utilities/execution_engines/svg_execution_engine.py b/utilities/execution_engines/svg_execution_engine.py index ab11c614..2ab6889f 100644 --- a/utilities/execution_engines/svg_execution_engine.py +++ b/utilities/execution_engines/svg_execution_engine.py @@ -139,7 +139,7 @@ def execute_svg(code, client:Client, message_id, build_file=False): tmp_file = root_folder/f"ai_svg_{message_id}.svg" with open(tmp_file,"w",encoding="utf8") as f: f.write(code) - link = f"{host}:{lollmsElfServer.config.port}/{discussion_path_to_url(tmp_file)}" + link = f"{host}:{lollmsElfServer.config.port}{discussion_path_to_url(tmp_file)}" # Stop the timer. execution_time = time.time() - start_time output_json = {"output": f'Page built successfully
Press here to view the page', "execution_time": execution_time} diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 08e1f607..d036a6c6 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 08e1f607cf439a509dc4742b5b32cacdbe2cff3e +Subproject commit d036a6c69c35dbb1487857151a53a4c890a17a0d