org.llm4s.error.AuthenticationError
See theAuthenticationError companion object
final case class AuthenticationError extends LLMError, NonRecoverableError
Raised when the LLM provider rejects the request due to authentication failures.
This is a NonRecoverableError: it cannot be fixed by retrying. The user must provide valid credentials (e.g., API key, token) to resolve this error. Examples include invalid API keys, expired tokens, or unauthorized access to a model.
Value parameters
- code
-
optional error code returned by the provider (e.g., "401", "INVALID_KEY")
- message
-
human-readable description of the authentication failure
- provider
-
the name of the LLM provider (e.g., "openai", "anthropic")
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait NonRecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article