Skip to content

CohereServiceCollectionExtensions

Namespace: Vercel.AI.Cohere

public static class CohereServiceCollectionExtensions

Registers Cohere.

Inheritance: object

View source

AddCohere(IServiceCollection, Action<CohereOptions>?)

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

Adds CohereProvider.

Parameters

Name Type Description
services IServiceCollection
configure Action<CohereOptions>

Returns: IServiceCollection

View source

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