mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 10:57:59 +00:00
Improved the start of configuration plugins with tokenizers (#1039)
This commit is contained in:
1 parent
5c319c45a0
commit
3d847555d7
8 files changed
+714
-28
No files matched your search
@@ -0,0 +1,15 @@
|
||||
namespace AIStudio.Tools.PluginSystem;
|
||||
|
||||
/// <summary>
|
||||
/// The tokenizer a provider of a configuration plugin points to: the copy stored below the data
|
||||
/// directory, along with the fingerprint of its content.
|
||||
/// </summary>
|
||||
/// <param name="Path">The stored copy, or an empty string when no tokenizer is stored.</param>
|
||||
/// <param name="Fingerprint">The fingerprint of the stored content, or an empty string when no file could be read.</param>
|
||||
internal readonly record struct StoredTokenizer(string Path, string Fingerprint)
|
||||
{
|
||||
/// <summary>
|
||||
/// No tokenizer is stored.
|
||||
/// </summary>
|
||||
public static readonly StoredTokenizer NONE = new(string.Empty, string.Empty);
|
||||
}
|
||||
Reference in new issue
Block a user