mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 02:27:21 +00:00
Adopted further C# 14 and .NET 10 features (#1158)
This commit is contained in:
1 parent
f649febf88
commit
f0fa1411c8
40 files changed
+545
-56
No files matched your search
@@ -14,12 +14,20 @@ internal sealed class LauncherTextsResponse
|
||||
{
|
||||
public const string SCHEMA_VERSION_VALUE = "assistant_builder_launcher_texts_v1";
|
||||
|
||||
/// <summary>
|
||||
/// How the answer of the model is read.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// An answer which names a field twice leaves open which of the values the model meant, so it is
|
||||
/// refused like any other invalid JSON.
|
||||
/// </remarks>
|
||||
internal static readonly JsonSerializerOptions JSON_OPTIONS = new JsonSerializerOptions
|
||||
{
|
||||
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
|
||||
AllowTrailingCommas = false,
|
||||
ReadCommentHandling = JsonCommentHandling.Disallow,
|
||||
MaxDepth = 8,
|
||||
AllowDuplicateProperties = false,
|
||||
TypeInfoResolver = LauncherTextsResponseJsonContext.Default,
|
||||
}.AsReadOnly();
|
||||
|
||||
|
||||
Reference in new issue
Block a user