diff --git a/dotnet/global.json b/dotnet/global.json index 4f9e9b79a15a..2bc13e80ad83 100644 --- a/dotnet/global.json +++ b/dotnet/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.401", + "version": "9.0.100", "rollForward": "latestMinor" } } diff --git a/dotnet/src/AutoGen/LMStudioConfig.cs b/dotnet/src/AutoGen/LMStudioConfig.cs index 2601b7b6ddc1..29c60ff13f39 100644 --- a/dotnet/src/AutoGen/LMStudioConfig.cs +++ b/dotnet/src/AutoGen/LMStudioConfig.cs @@ -19,7 +19,9 @@ public LMStudioConfig(string host, int port, string modelName) this.Port = port; this.Uri = new Uri($"http://{host}:{port}/v1"); if (modelName == null) + { throw new ArgumentNullException("modelName is a required property for LMStudioConfig and cannot be null"); + } this.ModelName = modelName; } @@ -29,7 +31,9 @@ public LMStudioConfig(Uri uri, string modelName) this.Host = uri.Host; this.Port = uri.Port; if (modelName == null) + { throw new ArgumentNullException("modelName is a required property for LMStudioConfig and cannot be null"); + } this.ModelName = modelName; }