Skip to content

MoonshotServiceCollectionExtensions

Namespace: Vercel.AI.Moonshot

public static class MoonshotServiceCollectionExtensions

Registers MoonshotProvider.

Inheritance: object

View source

AddMoonshot(IServiceCollection, Action<OpenAICompatibleOptions>?)

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

Adds the provider.

Parameters

Name Type Description
services IServiceCollection
configure Action<OpenAICompatibleOptions>

Returns: IServiceCollection

View source

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