the unique id for this language model. It will be used to identify the model in the UI.
the model id as it is used by the OpenAI API
whether the streaming API shall be used
a function that returns the API key to use for this model, called on each request
a function that returns the OpenAPI version to use for this model, called on each request
the OpenAI API compatible endpoint where the model is hosted. If not provided the default OpenAI endpoint will be used.
how to handle system messages
the maximum number of retry attempts when a request fails
whether to use the newer OpenAI Response API instead of the Chat Completion API
OptionaltokenUsageService: TokenUsageServiceOptionalproxy: stringa function that returns the API key to use for this model, called on each request
a function that returns the OpenAPI version to use for this model, called on each request
how to handle system messages
whether the streaming API shall be used
Readonlyidthe unique id for this language model. It will be used to identify the model in the UI.
the maximum number of retry attempts when a request fails
the model id as it is used by the OpenAI API
Protected OptionalproxyProtectedrunnerThe options for the OpenAI runner.
Protected Optional Readonlytokenthe OpenAI API compatible endpoint where the model is hosted. If not provided the default OpenAI endpoint will be used.
whether to use the newer OpenAI Response API instead of the Chat Completion API
ProtectedcreateProtectedgetGets the settings for a request, optionally including reasoning parameters.
The language model request
Whether the settings are for the Response API (true) or Chat Completions API (false). GPT-5 reasoning parameters are only supported with the Response API.
ProtectedhandleOptionalcancellationToken: CancellationTokenProtectedhandleProtectedhandleOptionalcancellationToken: CancellationTokenProtectedhandleProtectedinitializeProtectedisProtectedprocessOptionalcancellationToken: CancellationTokenProtectedsupportsChecks if the model is a GPT-5 series model (gpt-5, gpt-5.1, gpt-5.2). These models use a different reasoning parameter format: reasoning: { effort: 'none' | 'low' | 'medium' | 'high' }
ProtectedsupportsChecks if the model is an o-series model that supports reasoning. Models like o1, o1-mini, o1-preview, o3, o3-mini, o4-mini support the reasoning_effort parameter. These models use: reasoning_effort: 'low' | 'medium' | 'high'
See also VS Code
ILanguageModelChatMetadata