Constructs an instead of the EmbeddingAPIKeyHeaderProvider.
The api-key/token to regurgitate in getTokenAsString
Private
Readonly
#headersStatic
parseInternal
Turns a string embedding api key into an EmbeddingAPIKeyHeaderProvider if necessary. Throws an error if
it's not a string, nullish, or a EmbeddingHeadersProvider
already.
Not intended for external use.
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