| 695 | return False |
| 696 | |
| 697 | async def main(): |
| 698 | # Check that API key is set |
| 699 | if not ANTHROPIC_API_KEY: |
| 700 | print("Error: ANTHROPIC_API_KEY not set in .env file") |
| 701 | return |
| 702 | |
| 703 | # Parse command-line arguments |
| 704 | parser = argparse.ArgumentParser(description="Test the Claude-on-OpenAI proxy") |
| 705 | parser.add_argument("--no-streaming", action="store_true", help="Skip streaming tests") |
| 706 | parser.add_argument("--streaming-only", action="store_true", help="Only run streaming tests") |
| 707 | parser.add_argument("--simple", action="store_true", help="Only run simple tests (no tools)") |
| 708 | parser.add_argument("--tools-only", action="store_true", help="Only run tool tests") |
| 709 | args = parser.parse_args() |
| 710 | |
| 711 | # Run tests |
| 712 | success = await run_tests(args) |
| 713 | sys.exit(0 if success else 1) |
| 714 | |
| 715 | if __name__ == "__main__": |
| 716 | asyncio.run(main()) |