Get or create the default LLM client.
()
| 163 | |
| 164 | |
| 165 | def get_default_client() -> LLMClient: |
| 166 | """Get or create the default LLM client.""" |
| 167 | global _default_client |
| 168 | if _default_client is None: |
| 169 | _default_client = LLMClient() |
| 170 | return _default_client |
| 171 | |
| 172 | |
| 173 | def completion(model: str, messages: List[Dict[str, Any]], **kwargs) -> Any: |