Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Fix function documentation in wrapper (#901)
Maximilian Winter93ac6d39ef2e
diff --git a/memgpt/local_llm/llm_chat_completion_wrappers/chatml.py b/memgpt/local_llm/llm_chat_completion_wrappers/chatml.pyindex 7dd9d583e..461169832 100644--- a/memgpt/local_llm/llm_chat_completion_wrappers/chatml.py+++ b/memgpt/local_llm/llm_chat_completion_wrappers/chatml.py@@ -101,6 +101,8 @@ class ChatMLInnerMonologueWrapper(LLMChatCompletionWrapper):prompt += system_messageprompt += "\n"if function_documentation is not None:+ prompt += f"Please select the most suitable function and parameters from the list of available functions below, based on the ongoing conversation. Provide your response in JSON format."+ prompt += f"\nAvailable functions:\n"prompt += function_documentationelse:prompt += self._compile_function_block(functions)