effect-io-ai

Package: @effect/ai-openrouter
Module: OpenRouterClient

OpenRouterClient.layer

Creates a layer for the OpenRouter client with the given options.

When to use

Use when you already have the OpenRouter client options in code and want to provide OpenRouterClient as a layer.

See

Signature

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

Source

Since v4.0.0