Deprecations
Namespace: Vercel.AI.Util
public static class DeprecationsStable codes for deprecation warnings.
Inheritance: object
Methods
Section titled “Methods”GetDeprecationCode(string, string?)
Section titled “GetDeprecationCode(string, string?)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product