the unique id for this language model. It will be used to identify the model in the UI.
the unique model name as used in the Ollama environment.
OptionaltokenUsageService: TokenUsageServiceProtected ReadonlyDEFAULT_ProtectedhostReadonlyidthe unique id for this language model. It will be used to identify the model in the UI.
Protected Readonlymodelthe unique model name as used in the Ollama environment.
ReadonlyproviderProtected Optional ReadonlytokenReadonlyvendorProtectedbudgetMaps budget tokens to Ollama effort levels.
Optional budget tokens from thinking mode settings.
The effort level ('low', 'medium', or 'high').
ProtectedcheckCheck if the Ollama server supports thinking.
Use the Ollama 'show' request to get information about the model, so we can check the capabilities for the 'thinking' capability.
The Ollama client instance.
The name of the Ollama model.
A boolean indicating whether the Ollama model supports thinking.
ProtecteddispatchOptionalcancellation: CancellationTokenOptionalthinkingMode: ThinkingModeSettingsProtectedgetRetrieves the settings for the chat request, merging the request-specific settings with the default settings.
The language model request containing specific settings.
A partial ChatRequest object containing the merged settings.
ProtectedgetDetermines the value for Ollama's 'think' parameter based on the request's thinking mode settings.
Note: Most models support boolean values for 'think', but some models (e.g., GPT-OSS) require effort levels ('low', 'medium', 'high') and ignore boolean values.
The thinking mode settings from the request.
The model name to check for special handling.
The appropriate 'think' parameter value for the model.
ProtectedhandleOptionalcancellation: CancellationTokenOptionalthinkingMode: ThinkingModeSettingsProtectedhandleOptionalcancellation: CancellationTokenOptionalthinkingMode: ThinkingModeSettingsProtectedhandleProtectedinitializeOptionalcancellationToken: CancellationTokenProtectedrequiresChecks if the model requires effort levels instead of boolean for the 'think' parameter.
The model name to check.
true if the model requires effort levels.
ProtectedtoProtectedtoProtectedto
See also VS Code
ILanguageModelChatMetadata