MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / is_llm_enabled_system

Function is_llm_enabled_system

web/pgadmin/llm/utils.py:543–553  ·  view source on GitHub ↗

Check if LLM features are enabled at the system level. This checks the config.LLM_ENABLED setting which cannot be overridden by user preferences. Returns: True if LLM is enabled in system config, False otherwise.

()

Source from the content-addressed store, hash-verified

541
542
543def is_llm_enabled_system():
544 """
545 Check if LLM features are enabled at the system level.
546
547 This checks the config.LLM_ENABLED setting which cannot be
548 overridden by user preferences.
549
550 Returns:
551 True if LLM is enabled in system config, False otherwise.
552 """
553 return getattr(config, 'LLM_ENABLED', False)
554
555
556def is_llm_enabled():

Callers 1

get_llm_statusFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected