Class LMStudioNativeChatRequest
Request model for LM Studio native /api/v1/chat endpoint (Track B).
Supports stateful chat via conversation_id and MCP tool integrations.
IMPORTANT: Do NOT confuse with ChatCompletionRequest ??kept separate
to avoid contaminating the unified API surface with native-only fields.
Inheritance
LMStudioNativeChatRequest
Assembly: Glitch9.AIDevKit.Provider.LMStudio.dll
Syntax
public class LMStudioNativeChatRequest
Properties
|
Edit this page
View Source
ConversationId
Omit on first request. Include on subsequent requests to continue the same conversation.
Declaration
[JsonProperty("conversation_id")]
public string ConversationId { get; set; }
Property Value
|
Edit this page
View Source
EphemeralMcp
Inline MCP server definitions. Opt-in; requires explicit user approval.
Declaration
[JsonProperty("ephemeral_mcp")]
public LMStudioEphemeralMcp EphemeralMcp { get; set; }
Property Value
|
Edit this page
View Source
MaxTokens
Declaration
[JsonProperty("max_tokens")]
public int? MaxTokens { get; set; }
Property Value
|
Edit this page
View Source
Messages
Declaration
[JsonProperty("messages")]
public List<NativeChatMessage> Messages { get; set; }
Property Value
|
Edit this page
View Source
Model
Declaration
[JsonProperty("model")]
public string Model { get; set; }
Property Value
|
Edit this page
View Source
Plugins
Plugin references for native MCP tool access. Opt-in.
Declaration
[JsonProperty("plugin")]
public List<LMStudioPlugin> Plugins { get; set; }
Property Value
|
Edit this page
View Source
Stream
Declaration
[JsonProperty("stream")]
public bool? Stream { get; set; }
Property Value
|
Edit this page
View Source
Temperature
Declaration
[JsonProperty("temperature")]
public float? Temperature { get; set; }
Property Value
Extension Methods