Constructs an instead of the EmbeddingAPIKeyHeaderProvider.
The api-key/token to regurgitate in getToken
Private
Readonly
#headersReadonly
_phantStatic
Internal
optsStatic
parseInternal
Turns a string embedding api key into a HeadersProvider<'embedding'>
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 embedding 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 EmbeddingAPIKeyHeaderProvider under the hood.Example
See
EmbeddingHeadersProvider