Credential

org.llm4s.llmconnect.provider.OpenAICompatibleClient.Credential
enum Credential

How a request authenticates.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Anonymous extends Credential

No Authorization header, for servers that need none.

No Authorization header, for servers that need none.

Attributes

final case class Dynamic(provider: AccessTokenProvider)

Authorization: Bearer <token>, the token fetched per request from provider and refreshed once on a 401. The caller owns provider.

Authorization: Bearer <token>, the token fetched per request from provider and refreshed once on a 401. The caller owns provider.

Attributes

final case class Exchange(config: TokenExchangeConfig)

Authorization: Bearer <token>, the token obtained by the RFC 8693 exchange config describes, cached until shortly before it expires and refreshed once on a 401. The exchange goes through the client's own HTTP client, closed with the client.

Authorization: Bearer <token>, the token obtained by the RFC 8693 exchange config describes, cached until shortly before it expires and refreshed once on a 401. The exchange goes through the client's own HTTP client, closed with the client.

Attributes

final case class Static(key: String)

Authorization: Bearer <key>; key must not be blank - the client refuses an empty bearer.

Authorization: Bearer <key>; key must not be blank - the client refuses an empty bearer.

Attributes