OpenRouterConfig
Scoped HTTP client customization for OpenRouter requests.
Configuration
withClientTransform
Added in v4.0.0
Source
Transforms the HTTP client for generated methods and alpha Decisions requests made by the supplied effect. Streaming chat completions ignore this transform. Replaces any existing scoped transform; compose them manually to apply both.
Signature
declare const withClientTransform: { (transform: (client: HttpClient) => HttpClient): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>; <A, E, R>(self: Effect<A, E, R>, transform: (client: HttpClient) => HttpClient): Effect<A, E, R>;}Other
OpenRouterConfig
Added in v4.0.0
Source
Types associated with the OpenRouterConfig context service.
Services
OpenRouterConfig
Added in v4.0.0
Source
Scoped configuration read when executing OpenRouter requests.
See
- withClientTransform for scoping an HTTP client transformation
Signature
declare class OpenRouterConfig extends Shape<"@effect/ai-openrouter/OpenRouterConfig", Service, this> { constructor(_: never); static readonly getOrUndefined: Effect<Service | undefined>;}