Set up test environment with local inference
()
| 33 | raise RuntimeError(f"Could not find free port in range {start_port}-{start_port + max_tries}") |
| 34 | |
| 35 | def setup_test_env(): |
| 36 | """Set up test environment with local inference""" |
| 37 | os.environ["OPTILLM_API_KEY"] = "optillm" |
| 38 | return TEST_MODEL |
| 39 | |
| 40 | def get_test_client(base_url: str = DEFAULT_BASE_URL) -> OpenAI: |
| 41 | """Get OpenAI client configured for local optillm""" |
nothing calls this directly
no outgoing calls
no test coverage detected