🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
fix: Keep `strict` in tool schema (#1657)
Wendong-Fan231f43107db2
diff --git a/camel/models/openai_model.py b/camel/models/openai_model.pyindex 2e7950f61..29c664cc8 100644--- a/camel/models/openai_model.py+++ b/camel/models/openai_model.py@@ -197,9 +197,6 @@ class OpenAIModel(BaseModelBackend):request_config = self.model_config_dict.copy()if tools:- for tool in tools:- function_dict = tool.get('function', {})- function_dict.pop("strict", None)request_config["tools"] = toolsrequest_config = self._sanitize_config(request_config)@@ -218,9 +215,6 @@ class OpenAIModel(BaseModelBackend):request_config = self.model_config_dict.copy()if tools:- for tool in tools:- function_dict = tool.get('function', {})- function_dict.pop("strict", None)request_config["tools"] = toolsrequest_config = self._sanitize_config(request_config)diff --git a/test/datahubs/test_huggingface.py b/test/datahubs/test_huggingface.pyindex b51a9691c..9b9187d6e 100644--- a/test/datahubs/test_huggingface.py+++ b/test/datahubs/test_huggingface.py@@ -36,6 +36,7 @@ def manager():return HuggingFaceDatasetManager()[email protected](reason="Hugging Face token Unauthorized for url")def test_create_dataset(manager):with patch("huggingface_hub.HfApi.create_repo") as mock_create_repo:mock_create_repo.return_value = {"repo_id": REPO_ID}