Check if LLM features are enabled for the current user. This checks both the system-level config (LLM_ENABLED) and whether a valid provider is configured in user preferences. Returns: True if LLM is enabled and a provider is configured, False otherwise.
()
| 554 | |
| 555 | |
| 556 | def is_llm_enabled(): |
| 557 | """ |
| 558 | Check if LLM features are enabled for the current user. |
| 559 | |
| 560 | This checks both the system-level config (LLM_ENABLED) and |
| 561 | whether a valid provider is configured in user preferences. |
| 562 | |
| 563 | Returns: |
| 564 | True if LLM is enabled and a provider is configured, False otherwise. |
| 565 | """ |
| 566 | return get_default_provider() is not None |
| 567 | |
| 568 | |
| 569 | def get_max_tool_iterations(): |
no test coverage detected