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

Method test_init_basic

tests/models/test_openai_api.py:101–107  ·  view source on GitHub ↗
(self, api)

Source from the content-addressed store, hash-verified

99 """Tests for OpenAIAPI initialization."""
100
101 def test_init_basic(self, api):
102 assert api.model == "test-model"
103 assert api.key == "test-key"
104 assert api.temperature == 0.6
105 assert api.max_tokens == 1024
106 assert api.concurrency_limit == 4
107 assert api.return_dict is False
108
109 def test_init_with_port(self, api_with_port):
110 assert "8000" in api_with_port.api_base

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected