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

Function _rejected_url_error

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

Source from the content-addressed store, hash-verified

186 provider = provider.lower()
187
188 def _rejected_url_error(prov):
189 return LLMClientError(LLMError(
190 message=(
191 f"The configured {prov} API URL is not in the "
192 "allowed list (ALLOWED_LLM_API_URLS). Add it to "
193 "config_local.py, or clear the API URL preference "
194 "to use the system default."
195 ),
196 provider=prov,
197 ))
198
199 def _rejected_key_file_error(prov):
200 return LLMClientError(LLMError(

Callers 1

get_llm_clientFunction · 0.85

Calls 2

LLMErrorClass · 0.90
LLMClientErrorClass · 0.85

Tested by

no test coverage detected