Building AI agents, atomically
Correct deprecation warning text
Michael Crawfordcfb5c77f24c7
diff --git a/atomic-agents/atomic_agents/agents/base_agent.py b/atomic-agents/atomic_agents/agents/base_agent.pyindex 6a9e1d3..4d83ba2 100644--- a/atomic-agents/atomic_agents/agents/base_agent.py+++ b/atomic-agents/atomic_agents/agents/base_agent.py@@ -122,11 +122,17 @@ class BaseAgent:self.current_user_input = Noneself.model_api_parameters = config.model_api_parameters or {}if config.temperature is not None:- warnings.warn("The 'temperature' parameter is deprecated. Use 'model_api_parameters' instead.", DeprecationWarning)+ warnings.warn(+ "'temperature' is deprecated and will soon be removed. Please use 'model_api_parameters' instead.",+ DeprecationWarning,+ )if "temperature" not in self.model_api_parameters:self.model_api_parameters["temperature"] = config.temperatureif config.max_tokens is not None:- warnings.warn("The 'max_tokens' parameter is deprecated. Use 'model_api_parameters' instead.", DeprecationWarning)+ warnings.warn(+ "'max_tokens' is deprecated and will soon be removed. Please use 'model_api_parameters' instead.",+ DeprecationWarning,+ )self.model_api_parameters["max_tokens"] = config.max_tokensdef reset_memory(self):