Skip to content

GatewayServiceCollectionExtensions

Namespace: Vercel.AI.Gateway

public static class GatewayServiceCollectionExtensions

Registers the Gateway provider.

Inheritance: object

View source

AddGateway(IServiceCollection, Action<GatewayOptions>?)

Section titled “AddGateway(IServiceCollection, Action<GatewayOptions>?)”
public static IServiceCollection AddGateway(this IServiceCollection services, Action<GatewayOptions>? configure = null)

Registers GatewayProvider.

Parameters

Name Type Description
services IServiceCollection
configure Action<GatewayOptions>

Returns: IServiceCollection

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product