Skip to content

Deprecations

Namespace: Vercel.AI.Util

public static class Deprecations

Stable codes for deprecation warnings.

Inheritance: object

View source

public static string GetDeprecationCode(string setting, string? provider)

Returns the stable code for a deprecated <code class=“paramref”>setting</code>. A <code class=“paramref”>provider</code> scopes the code to that provider, but not to a model or message.

Parameters

Name Type Description
setting string
provider string

Returns: string

View source

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