feat: Add default external tools (#1899)

Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
This commit is contained in:
Matthew Zhou
2024-10-17 10:26:37 -07:00
committed by GitHub
parent ff36e1b258
commit c9701f490c
10 changed files with 1162 additions and 960 deletions

View File

@@ -188,7 +188,7 @@ class ChatMLInnerMonologueWrapper(LLMChatCompletionWrapper):
try:
# indent the function replies
function_return_dict = json_loads(message["content"])
function_return_str = json_dumps(function_return_dict, indent=self.json_indent)
function_return_str = json_dumps(function_return_dict, indent=0)
except:
function_return_str = message["content"]

View File

@@ -183,7 +183,7 @@ class ConfigurableJSONWrapper(LLMChatCompletionWrapper):
try:
# indent the function replies
function_return_dict = json_loads(message["content"])
function_return_str = json_dumps(function_return_dict, indent=self.json_indent)
function_return_str = json_dumps(function_return_dict, indent=0)
except:
function_return_str = message["content"]