partners: add xAI chat integration (#28032)

This commit is contained in:
Vadym Barda
2024-11-12 15:11:29 -05:00
committed by GitHub
parent 2898b95ca7
commit 48ee322a78
26 changed files with 3378 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"""This module checks if the given python files can be imported without error."""
import sys
import traceback
from importlib.machinery import SourceFileLoader
if __name__ == "__main__":
files = sys.argv[1:]
has_failure = False
for file in files:
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_failure = True
print(file)
traceback.print_exc()
print()
sys.exit(1 if has_failure else 0)