Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: respect strict mode for temporal with fallback on client (#8839)
jnjpng21c70323dfea
diff --git a/letta/llm_api/openai_client.py b/letta/llm_api/openai_client.pyindex 311a73799..c1cb1f5b5 100644--- a/letta/llm_api/openai_client.py+++ b/letta/llm_api/openai_client.py@@ -569,6 +569,10 @@ class OpenAIClient(LLMClientBase):tool.function = FunctionSchema(**structured_output_version)except ValueError as e:logger.warning(f"Failed to convert tool function to structured output, tool={tool}, error={e}")+ else:+ # Ensure strict is False when not using structured output+ # This overrides any strict: True that may have been set by enable_strict_mode()+ tool.function.strict = False if not supports_structured_output(llm_config) else tool.function.strictrequest_data = data.model_dump(exclude_unset=True)# If Ollama