effect-io-ai

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

OpenAiConfig.withClientTransform

Provides an HTTP client transform for the supplied effect.

When to use

Use to add provider-specific OpenAI-compatible HTTP behavior, such as headers, retries, instrumentation, or proxy routing.

Details

OpenAI-compatible provider services read the transform from the OpenAiConfig context.

Signature

declare const withClientTransform: { (transform: (client: HttpClient) => HttpClient): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>; <A, E, R>(self: Effect.Effect<A, E, R>, transform: (client: HttpClient) => HttpClient): Effect.Effect<A, E, R>; }

Source

Since v4.0.0