Merge pull request #1705 from NousResearch/fix/dingtalk-requirements-check

fix(dingtalk): requirements check passes with only one credential set
This commit is contained in:
Teknium 2026-03-17 03:53:51 -07:00 committed by GitHub
commit abdb4660d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ def check_dingtalk_requirements() -> bool:
"""Check if DingTalk dependencies are available and configured.""" """Check if DingTalk dependencies are available and configured."""
if not DINGTALK_STREAM_AVAILABLE or not HTTPX_AVAILABLE: if not DINGTALK_STREAM_AVAILABLE or not HTTPX_AVAILABLE:
return False return False
if not os.getenv("DINGTALK_CLIENT_ID") and not os.getenv("DINGTALK_CLIENT_SECRET"): if not os.getenv("DINGTALK_CLIENT_ID") or not os.getenv("DINGTALK_CLIENT_SECRET"):
return False return False
return True return True