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

Function get_anthropic_model

web/pgadmin/llm/utils.py:401–416  ·  view source on GitHub ↗

Get the Anthropic 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

399
400
401def get_anthropic_model():
402 """
403 Get the Anthropic model to use.
404
405 Checks user preferences first, then falls back to system configuration.
406
407 Returns:
408 The model name string, or empty string if not configured.
409 """
410 # Check user preference first
411 pref_model = _get_preference_value('anthropic_api_model')
412 if pref_model:
413 return pref_model
414
415 # Fall back to system configuration
416 return config.ANTHROPIC_API_MODEL or ''
417
418
419def get_openai_api_url():

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