Constructs an instead of the RerankingAPIKeyHeaderProvider.
The api-key/token to regurgitate in getToken
Private
Readonly
#headersReadonly
_phantStatic
Internal
optsStatic
parseInternal
Turns a string embedding api key into an HeadersProvider<'reranking'>
if necessary.
Throws an error if it's not a string, nullish, or a HeadersProvider
already.
Not intended for external use.
Optional
field: string
Overview
The most basic reranking header provider, used for the vast majority of providers.
Generally, anywhere this can be used in the public
astra-db-ts
interfaces, you may also pass in a plain string or null/undefined, which is transformed into an RerankingAPIKeyHeaderProvider under the hood.Example
See
RerankingHeadersProvider