Tell whether to enable the debug mode for LLM class.
()
| 337 | |
| 338 | |
| 339 | def enable_llm_debug() -> bool: |
| 340 | ''' Tell whether to enable the debug mode for LLM class. ''' |
| 341 | global _enable_llm_debug_ |
| 342 | if _enable_llm_debug_ is None: |
| 343 | _enable_llm_debug_ = os.environ.get("TLLM_LLM_ENABLE_DEBUG", "0") == "1" |
| 344 | return _enable_llm_debug_ |
| 345 | |
| 346 | |
| 347 | _enable_llmapi_debug_ = None |
no test coverage detected