AccessTokenProvider
org.llm4s.llmconnect.auth.AccessTokenProvider
@Stable
trait AccessTokenProvider
Supplies the bearer token for each request, refreshing it as needed.
Stable since #1818: OpenAICompatibleClient.Credential.Dynamic takes one. An implementation should return a failure as a Left rather than throw; a client that calls it turns a thrown exception into an AuthenticationError all the same.
Attributes
- Source
- AccessTokenProvider.scala
- Graph
-
- Supertypes
- Known subtypes
Members list
In this article
