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

Class LLMApiError

web/pgadmin/llm/utils.py:17–24  ·  view source on GitHub ↗

User-facing error from LLM API operations. Only messages explicitly constructed for user display should be wrapped in this exception. Endpoints catch LLMApiError to show the message; all other exceptions get a generic error.

Source from the content-addressed store, hash-verified

15
16
17class LLMApiError(Exception):
18 """User-facing error from LLM API operations.
19
20 Only messages explicitly constructed for user display should be
21 wrapped in this exception. Endpoints catch LLMApiError to show
22 the message; all other exceptions get a generic error.
23 """
24 pass
25
26
27def _get_user_storage_dirs():

Callers 4

_fetch_anthropic_modelsFunction · 0.90
_fetch_openai_modelsFunction · 0.90
_fetch_ollama_modelsFunction · 0.90
_fetch_docker_modelsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected