Skip to content

AnthropicModelSettings

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicModelSettings

Optional settings that let a Messages-compatible provider adjust the shared Anthropic adapter.

Inheritance: object

View source

public string? CacheControlProviderOptionsName { get; init; }

Provider-options namespace read for cache control before anthropic. Defaults to anthropic.

Value: string

View source

public AnthropicMediaPartConverter? ConvertMediaPart { get; init; }

Custom media conversion. <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null"&gt;null&lt;/a> uses the default.

Value: AnthropicMediaPartConverter

View source

public double? MaxTemperature { get; init; }

Maximum temperature. Defaults to 1.

Value: double?

View source

public bool SupportsTemperatureAndTopPWithThinking { get; init; }

Keeps temperature and topP when thinking is on.

Value: bool

View source

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