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

Class LLMError

web/pgadmin/llm/models.py:191–201  ·  view source on GitHub ↗

Represents an error from an LLM operation.

Source from the content-addressed store, hash-verified

189
190@dataclass
191class LLMError:
192 """Represents an error from an LLM operation."""
193 message: str
194 code: Optional[str] = None
195 provider: Optional[str] = None
196 retryable: bool = False
197
198 def __str__(self) -> str:
199 if self.code:
200 return f"[{self.code}] {self.message}"
201 return self.message

Callers 15

_rejected_url_errorFunction · 0.90
_rejected_key_file_errorFunction · 0.90
get_llm_clientFunction · 0.90
chatMethod · 0.90
_chat_responsesMethod · 0.90
_make_requestMethod · 0.90
_parse_responseMethod · 0.90
chat_streamMethod · 0.90
_process_streamMethod · 0.90
_read_openai_streamMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected