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

Function api

tests/models/test_openai_api.py:30–41  ·  view source on GitHub ↗

Create an OpenAIAPI instance with test defaults.

()

Source from the content-addressed store, hash-verified

28
29@pytest.fixture
30def api():
31 """Create an OpenAIAPI instance with test defaults."""
32 return OpenAIAPI(
33 model="test-model",
34 key="test-key",
35 api_base="http://localhost:8000/v1/chat/completions",
36 retry=3,
37 wait=0.01,
38 timeout=(5, 30),
39 max_tokens=1024,
40 thread_num=4,
41 )
42
43
44@pytest.fixture

Callers

nothing calls this directly

Calls 1

OpenAIAPIClass · 0.90

Tested by

no test coverage detected