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

Function get_docker_model

web/pgadmin/llm/utils.py:489–504  ·  view source on GitHub ↗

Get the Docker Model Runner model to use. Checks user preferences first, then falls back to system configuration. Returns: The model name string, or empty string if not configured.

()

Source from the content-addressed store, hash-verified

487
488
489def get_docker_model():
490 """
491 Get the Docker Model Runner model to use.
492
493 Checks user preferences first, then falls back to system configuration.
494
495 Returns:
496 The model name string, or empty string if not configured.
497 """
498 # Check user preference first
499 pref_model = _get_preference_value('docker_api_model')
500 if pref_model:
501 return pref_model
502
503 # Fall back to system configuration
504 return config.DOCKER_API_MODEL or ''
505
506
507def get_default_provider():

Callers 3

get_llm_clientFunction · 0.90
get_llm_statusFunction · 0.90
get_llm_configFunction · 0.85

Calls 1

_get_preference_valueFunction · 0.85

Tested by

no test coverage detected