MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_base_llm_config

Function test_base_llm_config

tests/configs/test_llm.py:17–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def 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
47def test_openai_llm_config():

Callers

nothing calls this directly

Tested by

no test coverage detected