effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicLanguageModel

AnthropicLanguageModel.withConfigOverride

Provides config overrides for Anthropic language model operations.

When to use

Use to apply Anthropic request configuration 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