Get OpenAI client configured for local optillm
(base_url: str = DEFAULT_BASE_URL)
| 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""" |
| 42 | return OpenAI(api_key="optillm", base_url=base_url) |
| 43 | |
| 44 | def start_test_server(model: str = TEST_MODEL, port: Optional[int] = None) -> Tuple[subprocess.Popen, int]: |
| 45 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected