EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /embedding-model /v3 /embedding-model-v3.ts
| import { EmbeddingModelV3CallOptions } from './embedding-model-v3-call-options'; | |
| import { EmbeddingModelV3Result } from './embedding-model-v3-result'; | |
| /** | |
| * Specification for an embedding model that implements the embedding model | |
| * interface version 3. | |
| * | |
| * It is specific to text embeddings. | |
| */ | |
| export type EmbeddingModelV3 = { | |
| /** | |
| * The embedding model must specify which embedding model interface | |
| * version it implements. This will allow us to evolve the embedding | |
| * model interface and retain backwards compatibility. The different | |
| * implementation versions can be handled as a discriminated union | |
| * on our side. | |
| */ | |
| readonly specificationVersion: 'v3'; | |
| /** | |
| * Name of the provider for logging purposes. | |
| */ | |
| readonly provider: string; | |
| /** | |
| * Provider-specific model ID for logging purposes. | |
| */ | |
| readonly modelId: string; | |
| /** | |
| * Limit of how many embeddings can be generated in a single API call. | |
| * | |
| * Use Infinity for models that do not have a limit. | |
| */ | |
| readonly maxEmbeddingsPerCall: | |
| | PromiseLike<number | undefined> | |
| | number | |
| | undefined; | |
| /** | |
| * True if the model can handle multiple embedding calls in parallel. | |
| */ | |
| readonly supportsParallelCalls: PromiseLike<boolean> | boolean; | |
| /** | |
| * Generates a list of embeddings for the given input text. | |
| * | |
| * Naming: "do" prefix to prevent accidental direct usage of the method | |
| * by the user. | |
| */ | |
| doEmbed( | |
| options: EmbeddingModelV3CallOptions, | |
| ): PromiseLike<EmbeddingModelV3Result>; | |
| }; | |
Xet Storage Details
- Size:
- 1.54 kB
- Xet hash:
- 3013ff46689945f7444024b6a70f550d7c25fcdf2e0b5337460f3814a96a3fb6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.