Universal.Operative.Sdk.Discrete.LMStudio
2.1.3
See the version list below for details.
dotnet add package Universal.Operative.Sdk.Discrete.LMStudio --version 2.1.3
NuGet\Install-Package Universal.Operative.Sdk.Discrete.LMStudio -Version 2.1.3
<PackageReference Include="Universal.Operative.Sdk.Discrete.LMStudio" Version="2.1.3" />
<PackageVersion Include="Universal.Operative.Sdk.Discrete.LMStudio" Version="2.1.3" />
<PackageReference Include="Universal.Operative.Sdk.Discrete.LMStudio" />
paket add Universal.Operative.Sdk.Discrete.LMStudio --version 2.1.3
#r "nuget: Universal.Operative.Sdk.Discrete.LMStudio, 2.1.3"
#:package Universal.Operative.Sdk.Discrete.LMStudio@2.1.3
#addin nuget:?package=Universal.Operative.Sdk.Discrete.LMStudio&version=2.1.3
#tool nuget:?package=Universal.Operative.Sdk.Discrete.LMStudio&version=2.1.3
Universal.Operative.Sdk.Discrete.LMStudio
LM Studio adapters for Universal.Operative.Sdk, including tool use through Chat Completions, Responses, and Messages compatibility endpoints.
Quick start
using Universal.Operative.Sdk.Discrete.LMStudio;
IModel model = new ChatCompletionsModel(new ChatCompletionsModel.Options
{
ModelId = "qwen3.5-2b",
MaximumOutputTokens = 512,
});
ChatCompletionsModel is the recommended default and supports custom tool definitions. The same local model can instead use the Responses or Messages compatibility surface:
IModel responses = new ResponsesModel(new ResponsesModel.Options
{
ModelId = "qwen3.5-2b",
MaxOutputTokens = 512,
});
IModel messages = new MessagesModel(new MessagesModel.Options
{
ModelId = "qwen3.5-2b",
MaxTokens = 512,
});
To override the default http://localhost:1234 endpoint or provide an LM Studio API token, pass LMStudioClientOptions as the first constructor argument.
The older Model adapter for /api/v1/chat remains for native server tools, reasoning, stateful continuation, and plugin/MCP integrations, but is obsolete because that endpoint cannot accept custom tool definitions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Universal.Common.Formats.Gif (>= 2.1.0)
- Universal.Common.Formats.Jpeg (>= 2.1.3)
- Universal.Common.Formats.Png (>= 2.2.0)
- Universal.Common.Formats.WebP (>= 2.0.0)
- Universal.Common.Image (>= 2.0.0)
- Universal.LMStudio.Client (>= 2.0.0)
- Universal.Operative.Sdk (>= 6.0.2)
- Universal.Operative.Sdk.Discrete (>= 2.1.0)
-
net8.0
- Universal.Common.Formats.Gif (>= 2.1.0)
- Universal.Common.Formats.Jpeg (>= 2.1.3)
- Universal.Common.Formats.Png (>= 2.2.0)
- Universal.Common.Formats.WebP (>= 2.0.0)
- Universal.Common.Image (>= 2.0.0)
- Universal.LMStudio.Client (>= 2.0.0)
- Universal.Operative.Sdk (>= 6.0.2)
- Universal.Operative.Sdk.Discrete (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Preserves empty signed thinking blocks and filters incompatible reasoning when switching Messages-compatible models.