effect-io-ai

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

OpenAiClient.layer

Creates a layer that provides an OpenAI-compatible client from explicit options.

When to use

Use to install OpenAiClient in an application layer when the client options are already available as values rather than loaded from Config.

See

Signature

declare const layer: (options: Options) => Layer.Layer<OpenAiClient, never, HttpClient.HttpClient>

Source

Since v4.0.0