MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / api_with_port

Function api_with_port

tests/models/test_openai_api.py:45–55  ·  view source on GitHub ↗

Create an OpenAIAPI instance using api_base + port pattern.

()

Source from the content-addressed store, hash-verified

43
44@pytest.fixture
45def api_with_port():
46 """Create an OpenAIAPI instance using api_base + port pattern."""
47 return OpenAIAPI(
48 model="test-model",
49 key="test-key",
50 api_base="http://localhost",
51 port=8000,
52 retry=2,
53 wait=0.01,
54 timeout=(5, 30),
55 )
56
57
58@pytest.fixture

Callers

nothing calls this directly

Calls 1

OpenAIAPIClass · 0.90

Tested by

no test coverage detected