mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 20:33:38 +00:00
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
namespace AIStudio.Models.Matching;
|
|
|
|
/// <summary>
|
|
/// How tightly a pattern is bound to the name it matches.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is the first thing that decides which of two rules wins, and it is ordered by how much the
|
|
/// pattern claims to know: naming the whole model says more than naming how the name begins, which
|
|
/// says more than naming a part of it, which says more than appearing somewhere inside it.
|
|
/// </remarks>
|
|
public enum MatchKind
|
|
{
|
|
/// <summary>
|
|
/// The pattern is the whole name.
|
|
/// </summary>
|
|
EXACT,
|
|
|
|
/// <summary>
|
|
/// The name begins with the pattern, and a name part ends where the pattern ends.
|
|
/// </summary>
|
|
PREFIX,
|
|
|
|
/// <summary>
|
|
/// The pattern appears in the name as one or more whole name parts.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is the one to reach for by default. It is what the old rules meant when they said that
|
|
/// a family name counts "only where a name part begins", so that looking for the Yi family does
|
|
/// not answer for every model whose name happens to contain those two letters.
|
|
/// </remarks>
|
|
SEGMENT,
|
|
|
|
/// <summary>
|
|
/// The pattern appears anywhere in the name, boundaries or not.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The last resort, for the names where a vendor glues things together, such as a version
|
|
/// number sitting inside a name part. It claims the least and therefore loses against every
|
|
/// other kind, which is what keeps it from swallowing families it was never meant for.
|
|
/// </remarks>
|
|
SUBSTRING,
|
|
} |