(self)
| 626 | |
| 627 | class TestAPIServerCommon(VLLMTestBase): |
| 628 | async def asyncSetUp(self): |
| 629 | self.config = get_template_config() |
| 630 | self.config.mode = "explore" |
| 631 | self.config.model.model_path = get_model_path() |
| 632 | self.config.explorer.rollout_model.engine_type = "vllm" |
| 633 | self.config.explorer.rollout_model.engine_num = 1 |
| 634 | self.config.explorer.rollout_model.chat_template = CHAT_TEMPLATE |
| 635 | self.config.explorer.rollout_model.tensor_parallel_size = 1 |
| 636 | self.config.explorer.rollout_model.enable_openai_api = True |
| 637 | self.config.explorer.rollout_model.enable_auto_tool_choice = True |
| 638 | self.config.explorer.rollout_model.tool_call_parser = "qwen3_coder" |
| 639 | self.config.explorer.rollout_model.enable_history = True |
| 640 | |
| 641 | self.config.check_and_update() |
| 642 | self.engines, self.auxiliary_engines = await create_test_models(self.config) |
| 643 | self.model_wrapper = self.engines[0] |
| 644 | self.model_wrapper_no_history = clone_wrapper(self.model_wrapper, enable_history=False) |
| 645 | |
| 646 | async def test_api(self): |
| 647 | openai_client = self.model_wrapper.get_openai_client() |
nothing calls this directly
no test coverage detected