()
| 15 | |
| 16 | |
| 17 | def test_base_llm_config(): |
| 18 | check_config_base_class( |
| 19 | BaseLLMConfig, |
| 20 | required_fields=[ |
| 21 | "model_name_or_path", |
| 22 | ], |
| 23 | optional_fields=[ |
| 24 | "temperature", |
| 25 | "max_tokens", |
| 26 | "top_p", |
| 27 | "top_k", |
| 28 | "remove_think_prefix", |
| 29 | "default_headers", |
| 30 | ], |
| 31 | ) |
| 32 | |
| 33 | check_config_instantiation_valid( |
| 34 | BaseLLMConfig, |
| 35 | { |
| 36 | "model_name_or_path": "test-model", |
| 37 | "temperature": 0.7, |
| 38 | "max_tokens": 1024, |
| 39 | "top_p": 0.9, |
| 40 | "top_k": 50, |
| 41 | }, |
| 42 | ) |
| 43 | |
| 44 | check_config_instantiation_invalid(BaseLLMConfig) |
| 45 | |
| 46 | |
| 47 | def test_openai_llm_config(): |
nothing calls this directly
no test coverage detected