claudex/scripts/run_proxy.py
Nenad Ilic 57dac558f4 Prepare project for GitHub publishing
- Update README with detailed usage instructions
- Add GitHub community files (CONTRIBUTING, CODE_OF_CONDUCT, etc.)
- Set up CI workflows for automated testing
- Create CHANGELOG for version tracking
- Add SECURITY guidelines
- Update licensing and author information
2025-04-26 14:42:48 +02:00

22 lines
725 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
# Get directory containing this script
script_dir = os.path.dirname(os.path.abspath(__file__))
# Get project root directory (parent of script directory)
project_dir = os.path.abspath(os.path.join(script_dir, ".."))
# Add project directory to path to ensure module can be found
sys.path.insert(0, project_dir)
# Set environment variables for testing
os.environ.setdefault("TARGET_API_BASE", "https://api.example.com")
os.environ.setdefault("TARGET_API_KEY", "mock-api-key")
os.environ.setdefault("BIG_MODEL_TARGET", "model-large")
os.environ.setdefault("SMALL_MODEL_TARGET", "model-small")
# Now import and run
from claudex.main import main
if __name__ == "__main__":
main()