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

Function _rejected_key_file_error

web/pgadmin/llm/client.py:199–208  ·  view source on GitHub ↗
(prov)

Source from the content-addressed store, hash-verified

197 ))
198
199 def _rejected_key_file_error(prov):
200 return LLMClientError(LLMError(
201 message=(
202 f"The configured {prov} API key file is not within "
203 "your private user storage. Move the key file to "
204 "your private storage directory, or clear the API "
205 "Key File preference to use the system default."
206 ),
207 provider=prov,
208 ))
209
210 if provider == 'anthropic':
211 from pgadmin.llm.providers.anthropic import AnthropicClient

Callers 1

get_llm_clientFunction · 0.85

Calls 2

LLMErrorClass · 0.90
LLMClientErrorClass · 0.85

Tested by

no test coverage detected