Check if optillm server is running on the given port
(port: int = DEFAULT_PORT)
| 103 | proc.wait() |
| 104 | |
| 105 | def is_server_running(port: int = DEFAULT_PORT) -> bool: |
| 106 | """Check if optillm server is running on the given port""" |
| 107 | try: |
| 108 | response = requests.get(f"http://localhost:{port}/health", timeout=2) |
| 109 | return response.status_code == 200 |
| 110 | except: |
| 111 | return False |
| 112 | |
| 113 | def get_integration_config(port: int = DEFAULT_PORT) -> Config: |
| 114 | """Get config for integration tests with optillm""" |