mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-11 04:33:47 +00:00
Fixing some things left over
This commit is contained in:
1 parent
bbbcdddc91
commit
b28f2bcf6c
7 files changed
+147
-18
No files matched your search
@@ -1,3 +1,5 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
using AIStudio.Tools.PluginSystem;
|
||||
|
||||
namespace AIStudio.Provider;
|
||||
@@ -20,6 +22,12 @@ public readonly record struct Model(string Id, string? DisplayName)
|
||||
/// </summary>
|
||||
public static readonly Model SYSTEM_MODEL = new(SYSTEM_MODEL_ID, null);
|
||||
|
||||
/// <summary>
|
||||
/// The provider-reported default reasoning behavior, when the model catalog supplies it.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public ModelReasoningBehavior ReasoningBehavior { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Checks if this model is the system-configured placeholder.
|
||||
/// </summary>
|
||||
@@ -71,4 +79,15 @@ public readonly record struct Model(string Id, string? DisplayName)
|
||||
public override int GetHashCode() => this.Id?.GetHashCode(StringComparison.Ordinal) ?? 0;
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Describes the default reasoning behavior reported by a provider's model catalog.
|
||||
/// </summary>
|
||||
public enum ModelReasoningBehavior
|
||||
{
|
||||
UNKNOWN,
|
||||
OPTIONAL,
|
||||
DEFAULT_ON,
|
||||
ALWAYS_ON,
|
||||
}
|
||||
Reference in new issue
Block a user