MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / get_test_client

Function get_test_client

tests/test_utils.py:25–27  ·  view source on GitHub ↗

Get OpenAI client configured for local optillm

(base_url: str = "http://localhost:8000/v1")

Source from the content-addressed store, hash-verified

23 return TEST_MODEL
24
25def get_test_client(base_url: str = "http://localhost:8000/v1") -> OpenAI:
26 """Get OpenAI client configured for local optillm"""
27 return OpenAI(api_key="optillm", base_url=base_url)
28
29def is_mlx_available():
30 """Check if MLX is available (macOS only)"""

Callers 5

clientFunction · 0.90
setUpMethod · 0.90
setUpMethod · 0.90
test_n_parameterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected