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

Function get_anthropic_api_key

web/pgadmin/llm/utils.py:391–398  ·  view source on GitHub ↗

Get the Anthropic API key. See :func:`_resolve_pref_key_file` for resolution and rejection rules.

()

Source from the content-addressed store, hash-verified

389
390
391def get_anthropic_api_key():
392 """
393 Get the Anthropic API key. See :func:`_resolve_pref_key_file`
394 for resolution and rejection rules.
395 """
396 return _resolve_pref_key_file(
397 'anthropic_api_key_file', config.ANTHROPIC_API_KEY_FILE
398 )
399
400
401def get_anthropic_model():

Callers 3

get_llm_clientFunction · 0.90
get_anthropic_modelsFunction · 0.90
get_llm_configFunction · 0.85

Calls 1

_resolve_pref_key_fileFunction · 0.85

Tested by

no test coverage detected