effect-io-ai

Package: @effect/ai-openai-compat
Module: OpenAiEmbeddingModel

OpenAiEmbeddingModel.withConfigOverride

Provides scoped request config overrides for OpenAI-compatible embedding model operations.

When to use

Use to apply embedding request options to one effect without changing the model’s default configuration.

Details

The overrides are merged with any existing Config service for the duration of the supplied effect. Fields in overrides take precedence over existing config, and the helper supports both effect.pipe(withConfigOverride(overrides)) and withConfigOverride(effect, overrides).

See

Signature

declare const withConfigOverride: { (overrides: typeof Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Config>>; <A, E, R>(self: Effect.Effect<A, E, R>, overrides: typeof Config.Service): Effect.Effect<A, E, Exclude<R, Config>>; }

Source

Since v4.0.0