mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 08:14:13 +00:00
Fixed warnings
This commit is contained in:
6 files changed
+14
-9
No files matched your search
@@ -28,13 +28,12 @@ public readonly struct ModelId(string modelId) : IEquatable<ModelId>
|
||||
/// </summary>
|
||||
private const int MAX_STACK_ALLOCATED_MODEL_ID_LENGTH = 256;
|
||||
|
||||
private readonly string originalId = modelId ?? string.Empty;
|
||||
private readonly string normalizedId = Normalize(modelId);
|
||||
|
||||
/// <summary>
|
||||
/// The ID exactly as the provider reported it. This is what a person sees.
|
||||
/// </summary>
|
||||
public string Original => this.originalId ?? string.Empty;
|
||||
public string Original => modelId ?? string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The ID in lowercase, with every separator written as a single hyphen.
|
||||
|
||||
@@ -53,7 +53,6 @@ public readonly record struct RuleSpecificity(int ExplicitRank, int Kind, int Pa
|
||||
MatchKind.EXACT => 3,
|
||||
MatchKind.PREFIX => 2,
|
||||
MatchKind.SEGMENT => 1,
|
||||
MatchKind.SUBSTRING => 0,
|
||||
|
||||
_ => 0,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user