Documentation
Table of Contents

Method EmbedAsync

Namespace
IntentSharp.Providers
Assembly
IntentSharp.dll

EmbedAsync(string, CancellationToken)

Always throws: Anthropic has no embeddings endpoint. Use another provider, such as OpenAI, for embeddings.

public override Task<float[]> EmbedAsync(string text, CancellationToken cancellationToken = default)

Parameters

text string
cancellationToken CancellationToken

Returns

Task<float[]>

Exceptions

NotSupportedException

Always.