Method FromApiKey
- Namespace
- MailFathom.AI.Embeddings
- Assembly
- MailFathom.AI.dll
FromApiKey(string, IDisposable?)
Builds a credential that presents a provider-issued key.
public static EmbeddingEndpointCredential FromApiKey(string apiKey, IDisposable? resolvedMaterial)
Parameters
apiKeystringThe resolved key.
resolvedMaterialIDisposableThe secret material the key was read from, released when this credential is, or null when the caller holds none.
Returns
- EmbeddingEndpointCredential
The credential.
Exceptions
- ArgumentException
Thrown when the key is blank.