execute function added

This commit is contained in:
Saifeddine ALOUI 2024-06-09 01:42:06 +02:00
parent 0ec3d99a85
commit 7c237c7080
4 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 111
version: 112
binding_name: null
model_name: null
model_variant: null
@ -239,6 +239,8 @@ audio_auto_send_input: true
audio_silenceTimer: 5000
# Data vectorization
data_sources: [] # This is the list of paths to database sources. Each database is a folder containing data
activate_skills_lib: false # Activate vectorizing previous conversations
skills_lib_database_name: "default" # Default skills database

View File

@ -94,9 +94,12 @@ async def execute_code(request: CodeRequest):
if language=="function":
ASCIIColors.info("Executing function call:")
ASCIIColors.yellow(code)
lollmsElfServer.personality.execute_function()
return execute_python(code, client, message_id)
try:
out = lollmsElfServer.personality.execute_function(code)
return out if type(out)==str else out[0] if type(out) is tuple and type(out[0])==str else "Done"
except Exception as ex:
trace_exception(ex)
return ex
if language=="python":
ASCIIColors.info("Executing python code:")
ASCIIColors.yellow(code)

@ -1 +1 @@
Subproject commit 747221cea82f1c817e0a46a11cbc60c92087756c
Subproject commit a52db1fb9fc9ca430ea2c1f6e54d542410b7f215

@ -1 +1 @@
Subproject commit 40efd8ae6689aace038bf0af647039427dde712c
Subproject commit e9b780b28183ed94fe509723c6da44f7a0f871f4