🐫 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
chore: windows compactibility flag for mypy (#1891)
JINO ROHIT4a55d98045c2
diff --git a/camel/models/sglang_model.py b/camel/models/sglang_model.pyindex 597f196ee..06bac8867 100644--- a/camel/models/sglang_model.py+++ b/camel/models/sglang_model.py@@ -324,7 +324,10 @@ def _kill_process_tree(# Sometime processes cannot be killed with SIGKILL# so we send an additional signal to kill them.- itself.send_signal(signal.SIGQUIT)+ if hasattr(signal, "SIGQUIT"):+ itself.send_signal(signal.SIGQUIT)+ else:+ itself.send_signal(signal.SIGTERM)except psutil.NoSuchProcess:passdiff --git a/camel/toolkits/github_toolkit.py b/camel/toolkits/github_toolkit.pyindex 793f04746..4d0ccd3d7 100644--- a/camel/toolkits/github_toolkit.py+++ b/camel/toolkits/github_toolkit.py@@ -111,6 +111,7 @@ class GithubToolkit(BaseToolkit):"""sb = self.repo.get_branch(self.repo.default_branch)from github import GithubException+try:self.repo.create_git_ref(ref=f"refs/heads/{branch_name}", sha=sb.commit.sha