Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: bug fixing for #1455 - not able to serialize json for Azure (#1495)
Kimi8cb69964d27d
diff --git a/memgpt/llm_api/llm_api_tools.py b/memgpt/llm_api/llm_api_tools.pyindex a26721d47..bb0d7e61b 100644--- a/memgpt/llm_api/llm_api_tools.py+++ b/memgpt/llm_api/llm_api_tools.py@@ -231,7 +231,7 @@ def create(data = dict(# NOTE: don't pass model to Azure calls, that is the deployment_id# model=agent_config.model,- messages=messages,+ messages=[m.to_openai_dict() for m in messages],tools=[{"type": "function", "function": f} for f in functions] if functions else None,tool_choice=function_call,user=str(user_id),@@ -240,7 +240,7 @@ def create(data = dict(# NOTE: don't pass model to Azure calls, that is the deployment_id# model=agent_config.model,- messages=messages,+ messages=[m.to_openai_dict() for m in messages],functions=functions,function_call=function_call,user=str(user_id),