mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
execute function added
This commit is contained in:
parent
0ec3d99a85
commit
7c237c7080
@ -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
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user