()
| 156 | |
| 157 | |
| 158 | def test_client(): |
| 159 | llm_instance_config = { |
| 160 | "model": "moonshot-v1-8k", |
| 161 | "base_url": "https://api.moonshot.cn/v1", |
| 162 | "moonshot_api_key": "xxx", |
| 163 | } |
| 164 | |
| 165 | from langchain_community.chat_models.moonshot import MoonshotChat |
| 166 | |
| 167 | llm_model_instance = MoonshotChat(**llm_instance_config) |
| 168 | copy_obj = safe_deepcopy(llm_model_instance) |
| 169 | |
| 170 | assert copy_obj |
| 171 | assert hasattr(copy_obj, "callbacks") |
| 172 | |
| 173 | |
| 174 | def test_circular_reference_in_dict(): |
nothing calls this directly
no test coverage detected