Package: @effect/ai-openai-compat
Module: OpenAiEmbeddingModel
Creates a layer for an OpenAI-compatible embedding model service.
When to use
Use when composing application layers and you want an OpenAI-compatible
embeddings endpoint to satisfy EmbeddingModel.EmbeddingModel while
supplying OpenAiClient from another layer.
See
make for constructing the embedding model service effectfullymodel for creating an AiModel with configured dimensionsSignature
declare const layer: (options: { readonly model: string; readonly config?: ModelConfig | undefined; }) => Layer.Layer<EmbeddingModel.EmbeddingModel, never, OpenAiClient>
Since v4.0.0