Skip to content

OpenAILanguageModelCapabilities

Namespace: Vercel.AI.OpenAI

public sealed class OpenAILanguageModelCapabilities

Request limits derived from an OpenAI model id.

Inheritance: object

View source

public bool IsReasoningModel { get; }

Whether sampling parameters such as temperature are limited.

Value: bool

View source

public IReadOnlyList<string>? SupportedReasoningEfforts { get; }

Allowed reasoning efforts. Null when the family does not constrain them.

Value: IReadOnlyList<string>

View source

public bool SupportsAsyncToolCalling { get; }

Whether async tool calling is accepted.

Value: bool

View source

public bool SupportsConfigurationUpdate { get; }

Whether GPT-6 configuration updates are accepted.

Value: bool

View source

public bool SupportsFlexProcessing { get; }

Whether service_tier: flex is accepted.

Value: bool

View source

public bool SupportsNonReasoningParameters { get; }

Whether temperature and top_p stay when reasoning effort is none.

Value: bool

View source

public bool SupportsPriorityProcessing { get; }

Whether service_tier priority or fast is accepted.

Value: bool

View source

public string SystemMessageMode { get; }

system, developer, or remove.

Value: string

View source

public static OpenAILanguageModelCapabilities ForModel(string modelId)

Classifies <code class=“paramref”>modelId</code> the way the OpenAI provider does.

Parameters

Name Type Description
modelId string

Returns: OpenAILanguageModelCapabilities

View source

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